-
Notifications
You must be signed in to change notification settings - Fork 1
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
7 changed files
with
121 additions
and
46 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,15 @@ | ||
import Layout from "../../components/Layout" | ||
|
||
interface Props { } | ||
|
||
const Games: React.FC<Props> = (props) => { | ||
return ( | ||
<Layout> | ||
<div className="h-screen text-3xl flex justify-center items-center"> | ||
🚧 🚧 🚧 | ||
</div> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default Games; |
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,21 @@ | ||
import Layout from "../../components/Layout" | ||
import SpotifyIframePlaylist from "../../components/SpotifyIframePlaylist"; | ||
|
||
interface Props { } | ||
|
||
const NowPlaying: React.FC<Props> = (props) => { | ||
return ( | ||
<Layout> | ||
<div className="grid grid-cols-3 gap-4"> | ||
<SpotifyIframePlaylist src="https://open.spotify.com/embed/playlist/1bUUPhe0zP9FgrsqYjxbTp?theme=0" /> | ||
<SpotifyIframePlaylist src="https://open.spotify.com/embed/playlist/1cUbQxIOFcxeL5oUheu85i?theme=0" /> | ||
<SpotifyIframePlaylist src="https://open.spotify.com/embed/playlist/3xx5COLUZ7Xwvyfg8MF4Nb?theme=0" /> | ||
<SpotifyIframePlaylist src="https://open.spotify.com/embed/playlist/4LddzZkIk08J3IwqXladlJ?theme=0" /> | ||
<SpotifyIframePlaylist src="https://open.spotify.com/embed/playlist/1aQK4Hz4Xmz3Y4NEhz9ReT?theme=0" /> | ||
<SpotifyIframePlaylist src="https://open.spotify.com/embed/playlist/26ItkYptyl56YEIYQDQs7r?theme=0" /> | ||
</div> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default NowPlaying; |
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,15 @@ | ||
import Layout from "../../components/Layout" | ||
|
||
interface Props { } | ||
|
||
const Photos: React.FC<Props> = (props) => { | ||
return ( | ||
<Layout> | ||
<div className="h-screen text-3xl flex justify-center items-center"> | ||
🚧 🚧 🚧 | ||
</div> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default Photos; |
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,15 @@ | ||
import Layout from "../../components/Layout" | ||
|
||
interface Props { } | ||
|
||
const Visualizers: React.FC<Props> = (props) => { | ||
return ( | ||
<Layout> | ||
<div className="h-screen text-3xl flex justify-center items-center"> | ||
🚧 🚧 🚧 | ||
</div> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default Visualizers; |
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,38 @@ | ||
import React from "react" | ||
import { GetStaticProps } from "next" | ||
import Layout from "../../components/Layout" | ||
import Post, { PostProps } from "../../components/Post" | ||
import prisma from "../../lib/prisma"; | ||
|
||
export const getStaticProps: GetStaticProps = async () => { | ||
const feed = await prisma.post.findMany({ | ||
where: { published: true }, | ||
include: { | ||
author: { | ||
select: { name: true }, | ||
}, | ||
}, | ||
}); | ||
|
||
return { | ||
props: { feed }, | ||
revalidate: 10 | ||
} | ||
} | ||
|
||
type Props = { | ||
feed: PostProps[] | ||
} | ||
|
||
const Blog: React.FC<Props> = (props) => { | ||
return ( | ||
<Layout> | ||
<h2 className="underline mb-2">Recent Posts</h2> | ||
{props.feed.map((post, i) => ( | ||
<Post key={i} post={post} /> | ||
))} | ||
</Layout> | ||
); | ||
} | ||
|
||
export default Blog |
fd39a0c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
setsun-xyz – ./
setsun-xyz-git-main-setsun.vercel.app
setsun.xyz
setsun-xyz-setsun.vercel.app
www.setsun.xyz