-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create-starknet: update next.js template
- Loading branch information
1 parent
8b3ad82
commit baf4d8c
Showing
34 changed files
with
360 additions
and
347 deletions.
There are no files selected for viewing
File renamed without changes.
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
20 changes: 0 additions & 20 deletions
20
packages/create-starknet/templates/next/components/Header.tsx
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
packages/create-starknet/templates/next/components/starknet/ConnectModal.tsx
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
packages/create-starknet/templates/next/components/ui/Dialog.tsx
This file was deleted.
Oops, something went wrong.
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,6 +1,4 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
}; | ||
const nextConfig = {}; | ||
|
||
module.exports = nextConfig; |
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.
13 changes: 0 additions & 13 deletions
13
packages/create-starknet/templates/next/pages/_document.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
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.
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
packages/create-starknet/templates/next/src/app/globals.css
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,27 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
:root { | ||
--foreground-rgb: 0, 0, 0; | ||
--background-start-rgb: 214, 219, 220; | ||
--background-end-rgb: 255, 255, 255; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
--foreground-rgb: 255, 255, 255; | ||
--background-start-rgb: 0, 0, 0; | ||
--background-end-rgb: 0, 0, 0; | ||
} | ||
} | ||
|
||
body { | ||
color: rgb(var(--foreground-rgb)); | ||
background: linear-gradient( | ||
to bottom, | ||
transparent, | ||
rgb(var(--background-end-rgb)) | ||
) | ||
rgb(var(--background-start-rgb)); | ||
} |
25 changes: 25 additions & 0 deletions
25
packages/create-starknet/templates/next/src/app/layout.tsx
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,25 @@ | ||
import type { Metadata } from 'next' | ||
import { Inter } from 'next/font/google' | ||
import { StarknetProvider } from '@/components/starknet-provider' | ||
import './globals.css' | ||
|
||
const inter = Inter({ subsets: ['latin'] }) | ||
|
||
export const metadata: Metadata = { | ||
title: 'Create Next App', | ||
description: 'Generated by create next app', | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<StarknetProvider>{children}</StarknetProvider> | ||
</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,51 @@ | ||
import WalletBar from "@/components/WalletBar"; | ||
|
||
export default function Home() { | ||
return ( | ||
<main className="flex flex-col items-center justify-center min-h-screen gap-12"> | ||
<WalletBar /> | ||
<p className="mb-2 text-lg"> | ||
Get started by editing | ||
<code className="p-2 bg-gray-600 rounded">pages/index.tsx</code> | ||
</p> | ||
<div className="flex flex-row gap-12"> | ||
<a | ||
className="p-4 rounded-md w-48 bg-black border flex flex-col items-center justify-center gap-6 group" | ||
href="https://starknet.io/docs" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<img | ||
src="https://pbs.twimg.com/profile_images/1656626805816565763/WyFDMG6u_400x400.png" | ||
className="object-contain w-24 h-24" | ||
alt="starknet-icon" | ||
/> | ||
<p className="mb-2 text-lg text-center"> | ||
Starknet Documentation | ||
<span className=" group-hover:font-bold transition-all ml-2 group-hover:ml-4"> | ||
{">"} | ||
</span> | ||
</p> | ||
</a> | ||
<a | ||
className="p-4 rounded-md w-48 bg-black border flex flex-col items-center justify-center gap-6 group" | ||
href="https://starknet-react.com/docs/getting-started" | ||
target="_blank" | ||
rel="norefferer" | ||
> | ||
<img | ||
src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/1150px-React-icon.svg.png" | ||
className="object-contain w-24 h-24" | ||
alt="react-icon" | ||
/> | ||
<p className="mb-2 text-lg text-center"> | ||
Starknet React Documentation | ||
<span className="group-hover:font-bold transition-all ml-2 group-hover:ml-4"> | ||
{">"} | ||
</span> | ||
</p> | ||
</a> | ||
</div> | ||
</main> | ||
); | ||
} |
Oops, something went wrong.