-
Notifications
You must be signed in to change notification settings - Fork 0
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
20 changed files
with
98 additions
and
175 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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 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 |
---|---|---|
@@ -1,25 +1,29 @@ | ||
FROM node:alpine AS base | ||
FROM node:alpine | ||
|
||
ARG ApiGithubToken | ||
ENV ApiGithubToken=${ApiGithubToken} | ||
ARG ApiSpotifyAuth | ||
ENV ApiSpotifyAuth=${ApiSpotifyAuth} | ||
ARG ApiSpotifyRefresh | ||
ENV ApiSpotifyRefresh=${ApiSpotifyRefresh} | ||
|
||
RUN mkdir -p /usr/src/app | ||
ENV ApiGithubToken=${ApiGithubToken} | ||
ENV ApiSpotifyAuth=${ApiSpotifyAuth} | ||
ENV ApiSpotifyRefresh=${ApiSpotifyRefresh} | ||
|
||
WORKDIR /usr/src/app | ||
COPY . /usr/src/app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
RUN touch /usr/src/app/.env | ||
RUN echo -e "API_GITHUB_TOKEN=\"$ApiGithubToken\" \ | ||
\nAPI_SPOTIFY_AUTH=\"$ApiSpotifyAuth\" \ | ||
\nAPI_SPOTIFY_REFRESH=\"$ApiSpotifyRefresh\"" | cat >> /usr/src/app/.env | ||
|
||
RUN npm install | ||
\nAPI_SPOTIFY_REFRESH=\"$ApiSpotifyRefresh\"" \ | ||
| cat >> /usr/src/app/.env | ||
|
||
RUN npm run build | ||
|
||
EXPOSE 10001 | ||
CMD ["npm", "run", "start"] | ||
|
||
CMD ["npm", "run", "start"] |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,34 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap'); | ||
|
||
:root { | ||
--font-family: "Figtree"; | ||
--border-radius: 8px; | ||
--background: url("/background.png"); | ||
} | ||
|
||
* { | ||
margin: 0; | ||
|
||
font-family: var(--font-family), sans-serif; | ||
|
||
user-select: none; | ||
|
||
} | ||
|
||
body, html, main { | ||
height: 100%; | ||
|
||
scroll-behavior: smooth; | ||
} | ||
|
||
body { | ||
overflow: hidden; | ||
|
||
height: fit-content; | ||
|
||
background: linear-gradient( rgba(0, 0, 0, 40%), rgba(0, 0, 0, 40%)), var(--background); | ||
} | ||
|
||
.spin { | ||
animation: spinner 1s linear infinite; | ||
} |
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,4 @@ | ||
|
||
*:not(button) { | ||
color: white; | ||
} |
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 @@ | ||
"use client"; | ||
|
||
import { ReactElement, useState } from "react"; | ||
|
||
import "../layout.css"; | ||
import "./page.css"; | ||
|
||
export default function Links(): ReactElement { | ||
const [counter, setCounter] = useState(0); | ||
|
||
return <> | ||
This... is not yet implemented, | ||
you can still increment this counter I guess. | ||
<br /> | ||
<button onClick={() => setCounter(last => last + 1)}>Increment</button> | ||
<br /> | ||
<h1>{counter}</h1> | ||
</>; | ||
} |
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