-
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
27 changed files
with
3,924 additions
and
2,467 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,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
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 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ main, master ] | ||
pull_request: | ||
branches: [ main, master ] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: npx playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
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,7 @@ | ||
node_modules/ | ||
.next/ | ||
.DS_STORE | ||
.env | ||
.env | ||
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ |
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,3 +1,3 @@ | ||
# setsun.ai | ||
# setsun.xyz | ||
|
||
〰 consciousness stream 〰 |
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,39 @@ | ||
import {} from '@radix-ui/react-icons'; | ||
|
||
const SOCIAL_LINKS = [ | ||
{ | ||
name: "GitHub", | ||
link: "https://github.com/setsun", | ||
}, | ||
{ | ||
name: "Instagram", | ||
link: "https://instagram.com/i.am.setsun" | ||
}, | ||
{ | ||
name: "Twitter", | ||
link: "https://twitter.com/setsun_" | ||
}, | ||
|
||
{ | ||
name: "Spotify", | ||
link: "https://open.spotify.com/user/3cl7vscgpyz5agjjh7fxg0l1z?si=66806580a1d24d68" | ||
}, | ||
{ | ||
name: "SoundCloud", | ||
link: "https://soundcloud.com/setsun_ai" | ||
} | ||
]; | ||
|
||
const Footer: React.FC = () => { | ||
return ( | ||
<footer className="flex justify-center gap-4 my-8"> | ||
{SOCIAL_LINKS.map(({ name, link }) => ( | ||
<a href={link} key={name} target="_blank" rel="noopener noreferrer"> | ||
{name} | ||
</a> | ||
))} | ||
</footer> | ||
); | ||
} | ||
|
||
export default 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,40 @@ | ||
import { createGlobalStyle } from 'styled-components'; | ||
|
||
const GlobalStyle = createGlobalStyle` | ||
html { | ||
box-sizing: border-box; | ||
} | ||
*, | ||
*:before, | ||
*:after { | ||
box-sizing: inherit; | ||
} | ||
html, | ||
body { | ||
background: ${({ theme }) => theme.colors.primary}; | ||
color: white; | ||
margin: 0; | ||
padding: 0; | ||
font-size: 16px; | ||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, | ||
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; | ||
} | ||
input, | ||
textarea { | ||
font-size: 16px; | ||
} | ||
button { | ||
cursor: pointer; | ||
} | ||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
` | ||
|
||
export default GlobalStyle; |
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,50 +1,30 @@ | ||
import Head from "next/head"; | ||
import React, { ReactNode } from "react"; | ||
import styled from 'styled-components'; | ||
import Footer from "./Footer"; | ||
import Header from "./Header"; | ||
|
||
type Props = { | ||
children: ReactNode; | ||
}; | ||
|
||
const Layout: React.FC<Props> = (props) => ( | ||
<div> | ||
<Header /> | ||
<div className="layout">{props.children}</div> | ||
<style jsx global>{` | ||
html { | ||
box-sizing: border-box; | ||
} | ||
const LayoutContainer = styled.div` | ||
padding: 0 2rem; | ||
`; | ||
|
||
*, | ||
*:before, | ||
*:after { | ||
box-sizing: inherit; | ||
} | ||
const Layout: React.FC<Props> = (props) => ( | ||
<> | ||
<Head> | ||
<title>setsun.xyz</title> | ||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌅</text></svg>" /> | ||
</Head> | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-size: 16px; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", | ||
"Segoe UI Symbol"; | ||
background: rgba(0, 0, 0, 0.05); | ||
} | ||
<Header /> | ||
|
||
input, | ||
textarea { | ||
font-size: 16px; | ||
} | ||
<LayoutContainer>{props.children}</LayoutContainer> | ||
|
||
button { | ||
cursor: pointer; | ||
} | ||
`}</style> | ||
<style jsx>{` | ||
.layout { | ||
padding: 0 2rem; | ||
} | ||
`}</style> | ||
</div> | ||
<Footer /> | ||
</> | ||
); | ||
|
||
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
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 @@ | ||
|
||
type Props = Pick<React.IframeHTMLAttributes<HTMLIFrameElement>, "src" | "className"> | ||
|
||
const SpotifyIframePlaylist = (props: Props) => { | ||
return ( | ||
<iframe | ||
{...props} | ||
style={{ borderRadius: '12px' }} | ||
width="100%" | ||
height="352" | ||
frameBorder="0" | ||
allowFullScreen | ||
allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" | ||
loading="lazy" | ||
/> | ||
); | ||
} | ||
|
||
export default SpotifyIframePlaylist; |
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 { test, expect } from '@playwright/test'; | ||
|
||
test('has title', async ({ page }) => { | ||
await page.goto('https://playwright.dev/'); | ||
|
||
// Expect a title "to contain" a substring. | ||
await expect(page).toHaveTitle(/Playwright/); | ||
}); | ||
|
||
test('get started link', async ({ page }) => { | ||
await page.goto('https://playwright.dev/'); | ||
|
||
// Click the get started link. | ||
await page.getByRole('link', { name: 'Get started' }).click(); | ||
|
||
// Expects the URL to contain intro. | ||
await expect(page).toHaveURL(/.*intro/); | ||
}); |
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 @@ | ||
module.exports = { | ||
compiler: { | ||
removeConsole: { | ||
exclude: ['error'], | ||
}, | ||
styledComponents: true, | ||
}, | ||
swcMinify: true, | ||
} |
Oops, something went wrong.
6dd21e2
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-setsun.vercel.app
setsun-xyz-git-main-setsun.vercel.app
www.setsun.xyz
setsun.xyz