generated from BlossomLabs/web3-turbo-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
6,072 additions
and
1,376 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,23 @@ | ||
{ | ||
"plugins": [ | ||
"@ianvs/prettier-plugin-sort-imports", | ||
"prettier-plugin-tailwindcss" | ||
], | ||
"tailwindConfig": "./packages/config/tailwind", | ||
"importOrder": [ | ||
"^(react/(.*)$)|^(react$)|^(react-native(.*)$)", | ||
"^(next/(.*)$)|^(next$)", | ||
"^(expo(.*)$)|^(expo$)", | ||
"<THIRD_PARTY_MODULES>", | ||
"", | ||
"^@blobscan/(.*)$", | ||
"", | ||
"^~/utils/(.*)$", | ||
"^~/components/(.*)$", | ||
"^~/styles/(.*)$", | ||
"^~/(.*)$", | ||
"^[./]" | ||
], | ||
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"], | ||
"importOrderTypeScriptVersion": "4.4.0" | ||
} |
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,4 +1,12 @@ | ||
/** | ||
* @type {import('eslint').Linter.Config} | ||
*/ | ||
module.exports = { | ||
root: true, | ||
extends: ["custom"], | ||
}; | ||
extends: ['next/core-web-vitals', 'turbo', 'prettier'], | ||
ignorePatterns: ['node_modules', 'dist'], | ||
parserOptions: { | ||
babelOptions: { | ||
presets: [require.resolve('next/babel')], | ||
}, | ||
}, | ||
}; |
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 @@ | ||
import React from "react"; | ||
|
||
export default function CreateGarden() { | ||
return <div>Create a garden form...</div>; | ||
} |
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 @@ | ||
import React from "react"; | ||
|
||
export default function Docs() { | ||
return <div>Docs...</div>; | ||
} |
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,105 @@ | ||
import React from "react"; | ||
import Image from "next/image"; | ||
import { clouds1, clouds2, gardenHeader } from "@/assets"; | ||
import Link from "next/link"; | ||
import { Button } from "@/components"; | ||
import GardenCard from "@/components/GardenCard"; | ||
import { Key } from "heroicons-react"; | ||
|
||
const gardens = [ | ||
{ | ||
imageSrc: "/blanck", | ||
title: "Garden sample 0", | ||
subtitle: "Lorem ipsum dolor sit amet, consectetur", | ||
description: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor", | ||
link: "/href", | ||
}, | ||
{ | ||
imageSrc: "/blanck", | ||
title: "Garden sample 1", | ||
subtitle: "Lorem ipsum dolor sit amet, consectetur", | ||
description: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor", | ||
link: "/href", | ||
}, | ||
{ | ||
imageSrc: "/blanck", | ||
title: "Garden sample 2", | ||
subtitle: "Lorem ipsum dolor sit amet, consectetur", | ||
description: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor", | ||
link: "/href", | ||
}, | ||
{ | ||
imageSrc: "/blanck", | ||
title: "Garden sample 3", | ||
subtitle: "Lorem ipsum dolor sit amet, consectetur", | ||
description: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor", | ||
link: "/href", | ||
}, | ||
{ | ||
imageSrc: "/blanck", | ||
title: "Garden sample 4", | ||
subtitle: "Lorem ipsum dolor sit amet, consectetur", | ||
description: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor", | ||
link: "/href", | ||
}, | ||
{ | ||
imageSrc: "/blanck", | ||
title: "Garden sample 5", | ||
subtitle: "Lorem ipsum dolor sit amet, consectetur", | ||
description: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor", | ||
link: "/href", | ||
}, | ||
]; | ||
|
||
export default function Gardens() { | ||
return ( | ||
<div className="flex flex-col items-center justify-center gap-12"> | ||
<header className="flex flex-col items-center gap-12"> | ||
<div className="flex items-center text-center"> | ||
<div className="relative flex-1"> | ||
<Image src={clouds1} alt="clouds" /> | ||
</div> | ||
<div className="mx-10 flex flex-col gap-14"> | ||
<div> | ||
<h1 className="text-[#084D21]">Find your tribe</h1> | ||
<p className="text-[18px]"> | ||
Gardens are digital economies that anyone can help shape | ||
</p> | ||
</div> | ||
<div className="flex justify-center gap-6"> | ||
<Link href="/create-garden"> | ||
<Button>Create a Garden</Button> | ||
</Link> | ||
<Link href="/docs"> | ||
<Button type="secondary">Documentation</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
<div className="relative flex-1"> | ||
<Image src={clouds2} alt="clouds" /> | ||
</div> | ||
</div> | ||
<div className="relative"> | ||
<Image src={gardenHeader} alt="gardens" /> | ||
</div> | ||
</header> | ||
{/* <div>search</div> */} | ||
<section className="my-10 flex justify-center"> | ||
{/* <div className="grid max-w-[1216px] grid-cols-[repeat(auto-fit,minmax(310px,1fr))] gap-6 md:grid-cols-[repeat(auto-fit,minmax(360px,1fr))]"> */} | ||
<div className="flex max-w-[1216px] flex-wrap justify-center gap-6"> | ||
{gardens.map((garden, id) => ( | ||
<div key={id}> | ||
<GardenCard garden={garden} /> | ||
</div> | ||
))} | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
} |
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,12 @@ | ||
import React from "react"; | ||
import { NavBar } from "@/components"; | ||
|
||
export default function layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<> | ||
<NavBar /> | ||
<main className="mx-6 my-10">{children}</main> | ||
{/* footer */} | ||
</> | ||
); | ||
} |
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 @@ | ||
import React from "react"; | ||
|
||
export default function Proposals() { | ||
return <div>Proposals...</div>; | ||
} |
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,40 @@ | ||
import "@/styles/globals.css"; | ||
import React from "react"; | ||
import { Press_Start_2P, Chakra_Petch } from "next/font/google"; | ||
import Providers from "@/providers/Providers"; | ||
import { Metadata } from "next"; | ||
|
||
const press = Press_Start_2P({ | ||
variable: "--font-press", | ||
subsets: ["latin"], | ||
weight: ["400"], | ||
}); | ||
|
||
const chakra = Chakra_Petch({ | ||
variable: "--font-chakra", | ||
subsets: ["latin"], | ||
weight: ["400", "500", "700"], | ||
}); | ||
|
||
export const metadata: Metadata = { | ||
title: "Gardens v2", | ||
description: "Gardens description...", | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html | ||
suppressHydrationWarning | ||
lang="en" | ||
className={`${press.variable} ${chakra.variable} font-sans`} | ||
> | ||
<body className="min-h-screen font-chakra"> | ||
<Providers>{children}</Providers> | ||
</body> | ||
</html> | ||
); | ||
} |
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,19 @@ | ||
import { NavBar, ThemeButton } from "@/components"; | ||
import React from "react"; | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<NavBar /> | ||
<main className="flex flex-col items-center justify-center space-y-8"> | ||
<h1 className="text-4xl font-bold">Landing page...</h1> | ||
<ThemeButton /> | ||
<button className="btn btn-primary text-white">primary</button> | ||
<button className="btn btn-secondary w-44">secondary</button> | ||
<button className="btn btn-accent w-44">accent</button> | ||
<button className="btn btn-error w-44">error</button> | ||
<button className="btn btn-warning w-44">warning</button> | ||
</main> | ||
</> | ||
); | ||
} |
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,84 @@ | ||
import React from "react"; | ||
|
||
// logo color #8DE995 | ||
|
||
export const GardensLogo = ({ className }: { className?: string }) => { | ||
return ( | ||
<svg | ||
width="100%" | ||
height="100%" | ||
viewBox="0 0 38 39" | ||
className={className} | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M2.12452 22.5006C2.35388 20.533 2.89708 18.6619 3.75413 16.8995C3.79034 16.8271 3.74206 16.7426 3.66963 16.7305C2.52287 16.4891 1.38818 16.1511 0.277637 15.7286C0.0965693 16.7909 0 17.8894 0 19.012C0 22.3074 0.844981 25.4097 2.31766 28.1136C2.32973 28.1378 2.36595 28.1257 2.36595 28.1016C1.99174 26.2668 1.90724 24.3716 2.12452 22.5006Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M5.49237 15.8373C5.57687 15.8494 5.62516 15.9459 5.57687 16.0184L5.25095 16.6098C4.2249 18.4809 3.57306 20.5088 3.31957 22.6454C3.00571 25.2649 3.34371 27.9205 4.26112 30.371C4.27319 30.4072 4.29733 30.4313 4.33354 30.4434C5.41995 30.8297 6.54256 31.0952 7.70139 31.2039C6.3615 28.4879 5.86658 25.3856 6.31321 22.3678C6.57878 20.5692 7.15819 18.8551 8.03939 17.2738C7.21855 16.0304 6.60292 14.7147 6.1925 13.3506C4.51461 13.1816 2.86086 12.7591 1.29161 12.1073C0.989832 12.8919 0.736338 13.7007 0.531128 14.5336C1.91931 15.0889 3.36785 15.4872 4.82846 15.7286L5.49237 15.8373Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M16.0546 2.19695C17.6238 2.43837 19.1448 2.87294 20.5692 3.50064C20.6416 3.53685 20.7261 3.48856 20.7382 3.41614C20.9313 2.30559 21.209 1.23126 21.559 0.168996C20.7261 0.0603558 19.8691 0 19 0C15.7045 0 12.6143 0.83291 9.91038 2.30559C9.88623 2.31766 9.89831 2.35388 9.92245 2.35388C11.9383 1.95553 14.0146 1.89517 16.0546 2.19695Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M35.7306 15.7046C35.5374 17.3704 35.1149 18.9879 34.4631 20.5089C34.4269 20.5934 34.4752 20.6779 34.5597 20.69C35.6702 20.871 36.7566 21.1487 37.8189 21.4987C37.8309 21.4987 37.843 21.4987 37.843 21.4867C37.9517 20.6779 37.9999 19.845 37.9999 19C37.9999 15.4632 37.0342 12.1436 35.3443 9.30687C35.3322 9.28273 35.296 9.2948 35.296 9.33101C35.8392 11.4073 35.9841 13.568 35.7306 15.7046Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M21.7039 5.21467C21.6919 5.29916 21.6074 5.34745 21.5349 5.31123L20.9314 4.99738C19.3621 4.18862 17.6601 3.64541 15.8856 3.37985C13.0851 2.95736 10.2243 3.27121 7.60483 4.26104C7.20648 5.35952 6.94092 6.50628 6.83228 7.66511C9.56036 6.32521 12.6506 5.84237 15.6684 6.289C17.467 6.55456 19.1811 7.14605 20.7503 8.02724C21.8367 7.30298 22.9956 6.73563 24.2027 6.32521C24.2992 4.53868 24.6855 2.76422 25.3253 1.06219C24.5044 0.77248 23.6474 0.531057 22.7783 0.362061C22.3075 1.71403 21.9816 3.10221 21.8005 4.52661L21.7039 5.21467Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M14.0509 21.052C13.8819 16.3684 15.934 11.8417 19.5915 8.88425C19.6277 8.86011 19.6157 8.79975 19.5794 8.78768C18.2878 8.14791 16.9117 7.71335 15.4752 7.49607C12.5299 7.04944 9.50003 7.59264 6.88059 9.00496C6.79609 9.05325 6.7478 9.13775 6.7478 9.22224C6.78402 12.0107 7.65314 14.7991 9.4276 17.2134C10.6468 18.8671 12.204 20.1949 13.9543 21.1365C14.0026 21.1365 14.0509 21.1003 14.0509 21.052Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M21.8246 22.5127C22.5609 20.6175 22.8869 18.5654 22.742 16.4892C22.7299 16.3564 22.6454 16.2357 22.5127 16.1753C20.6296 15.439 18.5654 15.113 16.4892 15.2579C16.3564 15.27 16.2357 15.3545 16.1753 15.4872C15.439 17.3824 15.113 19.4345 15.2579 21.5108C15.27 21.6435 15.3545 21.7642 15.4872 21.8246C17.3703 22.5609 19.4345 22.8869 21.5108 22.742C21.6556 22.7299 21.7763 22.6454 21.8246 22.5127Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M21.1125 24.0579C21.1366 24.0217 21.1004 23.9613 21.0521 23.9734C20.8832 23.9855 20.7021 23.9855 20.5331 23.9855C16.0305 23.9855 11.7211 21.9455 8.87235 18.4328C8.84821 18.3965 8.78785 18.4086 8.77578 18.4448C8.13601 19.7364 7.70145 21.1126 7.48417 22.549C7.03754 25.5306 7.59281 28.5846 9.04135 31.2161C9.06549 31.2523 9.1017 31.2765 9.14999 31.2765C10.3812 31.2644 11.6366 31.0954 12.8558 30.7333C14.413 30.2746 15.8736 29.5624 17.1894 28.5846C18.8431 27.3654 20.171 25.8082 21.1125 24.0579Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M20.8228 9.43955C19.169 10.6587 17.8533 12.2159 16.8997 13.9662C16.8755 14.0024 16.9117 14.0628 16.96 14.0507C21.5953 13.8817 26.0858 15.8976 29.0432 19.4827C29.0674 19.519 29.1277 19.5069 29.1398 19.4707C29.7675 18.1791 30.19 16.7909 30.3952 15.3544C30.8056 12.397 30.2866 9.48783 28.8742 6.88046C28.826 6.79597 28.7415 6.74768 28.657 6.74768C25.8444 6.80804 23.1284 7.73751 20.8228 9.43955Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M32.7853 21.6677C32.7008 21.6556 32.6525 21.5711 32.6887 21.4987L32.9905 20.8951C33.8114 19.2293 34.3304 17.4428 34.5477 15.5718C34.8736 12.8437 34.4994 10.0673 33.4854 7.54445C33.4734 7.50823 33.4492 7.48409 33.413 7.47202C32.6525 7.21852 31.8679 7.02539 31.0591 6.90467C30.8056 6.86846 30.5521 6.83225 30.2987 6.80811C30.2504 6.80811 30.2142 6.85639 30.2383 6.8926C31.542 9.5724 32.0128 12.5178 31.5903 15.5114C31.3368 17.31 30.7694 19.012 29.9124 20.5813C29.9003 20.6054 29.9003 20.6296 29.9124 20.6417C30.6729 21.7643 31.2523 22.9593 31.6748 24.1906C31.6868 24.1906 31.6868 24.1906 31.6989 24.1906C33.4975 24.2751 35.2599 24.6372 36.9499 25.277C37.2396 24.4441 37.481 23.587 37.65 22.7058C36.2859 22.235 34.8857 21.9212 33.4492 21.7522L32.7853 21.6677Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M23.9733 16.96C24.1302 21.5833 22.1385 26.0617 18.5654 29.0312C18.5292 29.0553 18.5413 29.1157 18.5775 29.1277C19.8691 29.7554 21.2573 30.1779 22.7059 30.3831C25.6512 30.7936 28.5604 30.2624 31.1436 28.8622C31.2281 28.8139 31.2764 28.7294 31.2764 28.6449C31.2039 25.9168 30.3348 23.1887 28.5966 20.8469C27.3774 19.1932 25.8202 17.8654 24.0699 16.9238C24.0095 16.8755 23.9613 16.9117 23.9733 16.96Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M22.3316 35.7186C20.5571 35.5134 18.8309 35.0426 17.2255 34.3304C17.1531 34.2942 17.0686 34.3425 17.0565 34.4149C16.8513 35.5738 16.5616 36.6964 16.1753 37.7949C17.1048 37.9397 18.0463 38.0121 19.012 38.0121C22.573 38.0121 25.9046 37.0344 28.7414 35.3323C28.7655 35.3203 28.7534 35.2841 28.7172 35.2841C26.641 35.8152 24.4802 35.9721 22.3316 35.7186Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M16.1029 32.6163C16.1149 32.5318 16.1994 32.4835 16.2839 32.5197L16.8996 32.8456C18.6378 33.7389 20.5209 34.3062 22.4764 34.5356C25.2166 34.8615 27.993 34.4752 30.54 33.4492C30.9021 32.3869 31.1315 31.2764 31.228 30.1537C29.1639 31.1798 26.9307 31.6988 24.6372 31.6988C23.937 31.6988 23.2369 31.6506 22.5368 31.554C20.7261 31.3005 19.012 30.7332 17.4307 29.8761C16.2477 30.6849 14.9682 31.3126 13.6162 31.7471C13.6162 31.7833 13.6162 31.8316 13.6041 31.8437C13.5076 33.5699 13.1575 35.2598 12.5419 36.8774C13.3265 37.1671 14.1473 37.3964 14.9802 37.5775C15.4752 36.1893 15.8252 34.7649 16.0184 33.2922L16.1029 32.6163Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M11.4314 36.4428C11.9626 35.0426 12.2764 33.594 12.3851 32.0851C11.2745 32.3386 10.164 32.4714 9.05343 32.4714C7.70146 32.4714 6.36156 32.2904 5.06995 31.9282C6.84441 33.8355 9.00514 35.3926 11.4314 36.4428Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M25.4098 5.97523C27.2929 5.51652 29.2605 5.41995 31.2281 5.70966C31.8075 5.79416 32.3748 5.91487 32.9301 6.07179C31.1194 4.12834 28.9104 2.55909 26.4238 1.49683C25.8806 2.95744 25.5305 4.46633 25.4098 5.97523Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M1.76233 11.0088C3.07809 11.552 4.46627 11.9142 5.86652 12.1073C5.76995 11.6486 5.69753 11.1778 5.63717 10.7071C5.41989 8.82397 5.57681 6.90465 6.07173 5.08191C4.27313 6.74773 2.80045 8.76361 1.76233 11.0088Z" | ||
fill="currentColor" | ||
/> | ||
<path | ||
d="M31.9282 32.9422C33.8838 31.1194 35.4651 28.8984 36.5273 26.3876C35.0788 25.8323 33.582 25.5184 32.0248 25.4098C32.6404 27.9085 32.5921 30.5038 31.9282 32.9422Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
); | ||
}; |
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.
Oops, something went wrong.