Created basic layout
This commit is contained in:
parent
f269f1aac1
commit
d29e09a96d
BIN
public/image.png
Normal file
BIN
public/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 MiB |
@ -1,13 +1,23 @@
|
||||
import Image from "next/image";
|
||||
import Tabbar from "@/tabbar";
|
||||
import Navbar from "@/components/tabbar";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div>
|
||||
<Tabbar></Tabbar>
|
||||
<p className="Page content"></p>
|
||||
<main className="min-h-screen bg-white text-black">
|
||||
<Navbar></Navbar>
|
||||
<div className="w-full h-[70vh] relative overflow-hidden">
|
||||
<div className="">
|
||||
<Image height={2000} width={2000} alt="Background Image" src="/image.png"></Image>
|
||||
</div>
|
||||
<div className="absolute inset-0 bg-gradient-to-b from-transparent via-black/50 to-black/80"></div>
|
||||
<div className="flex inset-0 w-full absolute mt-24 float">
|
||||
<p className="mx-auto text-7xl text-white font-bold font-[roboto]">Tremor Tracker</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
)
|
||||
|
||||
// return (
|
||||
// <div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
|
||||
// <main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
|
||||
|
||||
18
src/components/tabbar.tsx
Normal file
18
src/components/tabbar.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
export default function Navbar(){
|
||||
return (
|
||||
<div className="w-full flex h-14 border-b border-neutral-300 text-black">
|
||||
<div className="my-2 w-20 flex border border-neutral-300 rounded-xl ml-2 mr-6">
|
||||
<p className="m-auto text-sm">Logo</p>
|
||||
</div>
|
||||
<div className="flex">
|
||||
<button className="px-6">Earthquake</button>
|
||||
<button className="px-6">Warehouse</button>
|
||||
<button className="px-6">Shop</button>
|
||||
</div>
|
||||
<div className="flex-grow"></div>
|
||||
<div className="my-2 mr-2 w-10 flex border rounded-full">
|
||||
<p className="m-auto text-sm">User</p>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
export default function Tabbar(){
|
||||
return (
|
||||
<div className="w-full h-20">
|
||||
<a className="">Earthquake</a>
|
||||
<a>Wherehouse</a>
|
||||
<a>Shop</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user