Skip to content

Commit cad664f

Browse files
created landing page (#18)
* created landing page * remove: extra code and images
1 parent 3c3d398 commit cad664f

File tree

5 files changed

+22
-71
lines changed

5 files changed

+22
-71
lines changed

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/App.css

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/App.tsx

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
import { useState } from 'react'
2-
import reactLogo from './assets/react.svg'
3-
import viteLogo from '/vite.svg'
4-
import './App.css'
5-
import { Button } from "@/components/ui/button"
1+
2+
3+
import LandingPage from './Pages/LandingPage'
4+
65
function App() {
7-
const [count, setCount] = useState(0)
6+
87

98
return (
109
<>
11-
<div>
12-
<a href="https://vitejs.dev" target="_blank">
13-
<img src={viteLogo} className="logo" alt="Vite logo" />
14-
</a>
15-
<a href="https://react.dev" target="_blank">
16-
<img src={reactLogo} className="logo react" alt="React logo" />
17-
</a>
18-
</div>
19-
<h1>Vite + React</h1>
20-
<div className="card">
21-
<button onClick={() => setCount((count) => count + 1)}>
22-
count is {count}
23-
</button>
24-
<p>
25-
Edit <code>src/App.tsx</code> and save to test HMR
26-
</p>
27-
</div>
28-
<p className="read-the-docs">
29-
Click on the Vite and React logos to learn more
30-
</p>
31-
<Button>Click me</Button>
10+
<LandingPage/>
3211
</>
3312
)
3413
}

src/Pages/LandingPage.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Button } from "@/components/ui/button"
2+
3+
const LandingPage = () => {
4+
return (
5+
<div className="h-[100vh] flex flex-col justify-center items-center">
6+
<h1 className="text-[128px] font-medium-">LibraryHub</h1>
7+
<p className="text-[36px] font-medium">Your central place for all library needs</p>
8+
<div className="flex gap-[20px] mt-[50px]">
9+
<Button variant="outline">Create A Library</Button>
10+
<Button >Join A Library</Button>
11+
</div>
12+
</div>
13+
)
14+
}
15+
16+
export default LandingPage

src/assets/react.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)