-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from nezz0746/feat/add-landing
feat: add landing page & layouts w/ app router
- Loading branch information
Showing
23 changed files
with
288 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"use client"; | ||
|
||
import "@/styles/globals.css"; | ||
import "mapbox-gl/dist/mapbox-gl.css"; | ||
import "@rainbow-me/rainbowkit/styles.css"; | ||
import DappProvider from "@/components/DappProvider"; | ||
|
||
const Layout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<html> | ||
<body> | ||
<DappProvider> | ||
<div className="flex flex-col min-h-screen"> | ||
<main className="flex-grow">{children}</main> | ||
</div> | ||
</DappProvider> | ||
</body> | ||
</html> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"use client"; | ||
|
||
import AppMap from "@/components/Map/Map"; | ||
|
||
const Home = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<div className="h-screen flex flex-row gap-2"> | ||
<div className="w-2/3 relative"> | ||
<AppMap /> | ||
</div> | ||
<div className="w-1/3 p-4"> | ||
<div className="w-full h-full">{children}</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
"use client"; | ||
|
||
import { content } from "@/services/content"; | ||
import bg_image from "public/globe.png"; | ||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
import ConnectButton from "@/components/ConnectButton"; | ||
|
||
const Page = () => { | ||
return ( | ||
<> | ||
<div className="p-3 flex flex-col"> | ||
<nav className="navbar z-10 bg-white bg-opacity-30"> | ||
<div className="bg-opacity-100 flex flex-row justify-between w-full"> | ||
<Link href={"/"}> | ||
<button className="btn">Home</button> | ||
</Link> | ||
<ConnectButton /> | ||
</div> | ||
</nav> | ||
</div> | ||
<div className="absolute top-0 left-0 w-full"> | ||
<div | ||
className="hero min-h-[110vh]" | ||
style={{ | ||
backgroundImage: `url(${bg_image.src})`, | ||
backgroundSize: "cover", | ||
}} | ||
> | ||
<div className="hero-overlay bg-opacity-40"></div> | ||
<div className="hero-content text-center"> | ||
<div className="md:w-3/4 relative p-10"> | ||
<div className="absolute -z-10 top-0 left-0 w-full h-full bg-white opacity-70 blur-xl rounded-full" /> | ||
<h1 className="mb-5 text-black text-5xl z-20 font-bold"> | ||
{content.title} | ||
</h1> | ||
<p className="mb-5 text-neutral">{content.description}</p> | ||
<div className="flex flex-row gap-2 justify-center"> | ||
<Link | ||
href={"https://github.com/nezz0746/ensemble"} | ||
target="_blank" | ||
> | ||
<button className="btn btn-neutral"> | ||
<Image | ||
src="/github-white.png" | ||
height={24} | ||
width={24} | ||
alt="github" | ||
/> | ||
Github | ||
</button> | ||
</Link> | ||
<Link href={"/move"}> | ||
<button className="btn btn-secondary">Launch App</button> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<footer className="footer items-center p-4"> | ||
<aside className="items-center grid-flow-col"> | ||
<svg | ||
width="36" | ||
height="36" | ||
viewBox="0 0 24 24" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
className="fill-current" | ||
> | ||
<path d="M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"></path> | ||
</svg> | ||
<p>Copyright © 2023 - All right reserved</p> | ||
</aside> | ||
<nav className="grid-flow-col gap-4 md:place-self-center md:justify-self-end"> | ||
<a | ||
href="https://github.com/nezz0746/ensemble" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Image src="/github.png" height={24} width={24} alt="github" /> | ||
</a> | ||
</nav> | ||
</footer> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import ConnectButton from "./ConnectButton"; | ||
|
||
const Navbar = () => { | ||
return ( | ||
<nav> | ||
<div className="navbar bg-base-100 px-5 flex flex-row w-full justify-between border"> | ||
<a className="btn btn-outline rounded-none text-xl">Ensemble</a> | ||
<div> | ||
<p className="text-lg font-bold"> | ||
<ConnectButton /> | ||
</p> | ||
</div> | ||
</div> | ||
</nav> | ||
); | ||
}; | ||
|
||
export default Navbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const content = { | ||
title: "Geofencing framework for humans & protocols", | ||
description: | ||
"Tailor you web experience to your location. Build bridges between communities around the globe.", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
module.exports = { | ||
content: [ | ||
"./pages/**/*.{html,js,ts,tsx}", | ||
"./app/**/*.{html,js,ts,tsx}", | ||
"./components/**/*.{html,js,ts,tsx}", | ||
], | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
display: ["Cabin Sketch"], | ||
}, | ||
}, | ||
extend: {}, | ||
}, | ||
plugins: [require("daisyui")], | ||
daisyui: { | ||
themes: ["dim"], | ||
}, | ||
}; |
Oops, something went wrong.