-
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.
Next.js Layout Structure, Loading.js, and Global Components
- Loading branch information
Showing
5 changed files
with
49 additions
and
33 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
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,16 @@ | ||
export const metadata = { title: 'Connect with David Kando' }; | ||
|
||
export default function Layout({ children }) { | ||
return ( | ||
<div | ||
className={ | ||
`w-full flex flex-col justify-center items-center | ||
p-5 p-10 lg:p-10 text-md lg:text-xl | ||
bg-gradient-to-b from-slate-100 to-pink-100` | ||
} | ||
> | ||
<div className="title">Let's hang around</div> | ||
<div>{children}</div> | ||
</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,9 @@ | ||
import Spinner from 'components/spinner'; | ||
|
||
export default function Loading() { | ||
return ( | ||
<div className="min-h-screen p-5"> | ||
<Spinner /> | ||
</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 |
---|---|---|
|
@@ -3,39 +3,30 @@ import Followers from './followers'; | |
|
||
export default function Page() { | ||
return ( | ||
<div | ||
className={ | ||
`w-full flex flex-col justify-center items-center | ||
p-5 p-10 lg:p-10 text-md lg:text-xl | ||
bg-gradient-to-b from-slate-100 to-pink-100` | ||
} | ||
> | ||
<div className="title">Let's hang around</div> | ||
<> | ||
<div> | ||
<div> | ||
Find my latest projects, upcoming live events, and releases! | ||
</div> | ||
<br /> | ||
<div> | ||
1. Support me with a follow on{' '} | ||
<a className="font-bold link" href="https://open.spotify.com/artist/6ep6Hvwexmaa5IqcPxMxqC?si=t24Vsf6LRsKSIy5lV0wvNw" target="_blank">Spotify</a>. | ||
</div> | ||
<Followers /> | ||
<br /> | ||
<div> | ||
2. Follow me on{' '} | ||
<a className="font-bold link" href="https://www.instagram.com/davidkandomusic/" target="_blank">instagram</a>. | ||
</div> | ||
<br /> | ||
<div> | ||
3. Join my email list. | ||
</div> | ||
<Form /> | ||
<br /> | ||
<div> | ||
Reach out for inquiries at <span className="underline">[email protected]</span> | ||
</div> | ||
Find my latest projects, upcoming live events, and releases! | ||
</div> | ||
</div> | ||
<br /> | ||
<div> | ||
1. Support me with a follow on{' '} | ||
<a className="font-bold link" href="https://open.spotify.com/artist/6ep6Hvwexmaa5IqcPxMxqC?si=t24Vsf6LRsKSIy5lV0wvNw" target="_blank">Spotify</a>. | ||
</div> | ||
<Followers /> | ||
<br /> | ||
<div> | ||
2. Follow me on{' '} | ||
<a className="font-bold link" href="https://www.instagram.com/davidkandomusic/" target="_blank">instagram</a>. | ||
</div> | ||
<br /> | ||
<div> | ||
3. Join my email list. | ||
</div> | ||
<Form /> | ||
<br /> | ||
<div> | ||
Reach out for inquiries at <span className="underline">[email protected]</span> | ||
</div> | ||
</> | ||
) | ||
} |
File renamed without changes.