Skip to content

Commit 7076f48

Browse files
committed
gp webring embed
1 parent 5ea6804 commit 7076f48

File tree

4 files changed

+44
-19
lines changed

4 files changed

+44
-19
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
name: Deploy
2-
on: [workflow_dispatch]
3-
jobs:
4-
build:
5-
runs-on: ubuntu-latest
6-
steps:
7-
- name: Pull
8-
uses: appleboy/ssh-actions@v0.1.10
9-
with:
10-
host: ${{ secrets.HOSTNAME }}
11-
username: ${{ secrets.USERNAME }}
12-
key: ${{ secrets.KEY }}
13-
port: ${{ secrets.PORT }}
14-
script: |
15-
git checkout ${{ github.sha }}
16-
npm i
17-
npm run build
18-
npm run start
1+
# name: Deploy
2+
# on: [workflow_dispatch]
3+
# jobs:
4+
# build:
5+
# runs-on: ubuntu-latest
6+
# steps:
7+
# - name: Pull
8+
# uses: appleboy/ssh-actions@v0.1.10
9+
# with:
10+
# host: ${{ secrets.HOSTNAME }}
11+
# username: ${{ secrets.USERNAME }}
12+
# key: ${{ secrets.KEY }}
13+
# port: ${{ secrets.PORT }}
14+
# script: |
15+
# git checkout ${{ github.sha }}
16+
# npm i
17+
# npm run build
18+
# npm run start
1919

app/components/Footer.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import Link from "next/link";
2+
import Image from "next/image";
3+
4+
export default function footer() {
5+
return (
6+
<div className="sticky botton-0 flex flex-col items-center justify-center p-4 border-t border-t-[#181818]">
7+
<div className="flex flex-row items-center gap-1">
8+
<Link href="https://graphics-programming.org/webring/frogs/devsh/prev">⬅️</Link>
9+
<Link href="https://graphics-programming.org/webring/">
10+
<Image src="https://graphics-programming.org/img/froge.webp" alt="a friendly froge" width={28} height={28}/>
11+
</Link>
12+
<Link href="https://graphics-programming.org/webring/frogs/devsh/next">➡️</Link>
13+
</div>
14+
<span>This website is a part of GP webring</span>
15+
</div>
16+
)
17+
}

app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import localFont from "next/font/local";
33
import "./globals.css";
44
import "@/app/components/Navbar"
55
import Navbar from "./components/Navbar";
6+
import Footer from "./components/Footer";
67

78
const futuraPT = localFont({
89
src: [
@@ -54,9 +55,10 @@ export default function RootLayout({
5455
className={`${futuraPT.className} antialiased flex flex-col h-dvh`}
5556
>
5657
<Navbar/>
57-
<main className="h-full overflow-x-hidden overflow-y-auto my-8">
58+
<main className="h-full overflow-x-hidden overflow-y-auto my-2">
5859
{children}
5960
</main>
61+
<Footer/>
6062
</body>
6163
</html>
6264
);

next.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ const nextConfig: NextConfig = {
1515
hostname: 'api.dicebear.com',
1616
port: '',
1717
pathname: '/9.x/initials/**'
18+
},
19+
{
20+
protocol: 'https',
21+
hostname: 'graphics-programming.org',
22+
port: '',
23+
pathname: '/img/**'
1824
}
1925
]
2026
}

0 commit comments

Comments
 (0)