Skip to content

Commit b0adc8e

Browse files
committed
add footer + update sql.js
1 parent 47537f8 commit b0adc8e

File tree

5 files changed

+93
-5
lines changed

5 files changed

+93
-5
lines changed

bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/Footer.tsx

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
const Footer: React.FC = () => {
2+
return (
3+
<footer className="bg-gray-800 text-white w-full mt-auto p-4 flex-shrink-0">
4+
<div className="container mx-auto flex flex-col md:flex-row justify-between items-center min-h-[100px]">
5+
<p className="text-sm">
6+
SQLite Reader is open-sourced and licensed under the MIT
7+
License
8+
</p>
9+
<div className="flex gap-4 mt-2 md:mt-0">
10+
<a
11+
className="px-4 py-2 rounded hover:bg-blue-600 transition"
12+
href="/"
13+
style={{
14+
backgroundColor: "var(--button-bg)",
15+
color: "var(--button-text-color)",
16+
}}
17+
>
18+
Home
19+
</a>
20+
<a
21+
className="px-4 py-2 rounded hover:bg-blue-600 transition"
22+
href="/convert"
23+
style={{
24+
backgroundColor: "var(--button-bg)",
25+
color: "var(--button-text-color)",
26+
}}
27+
>
28+
Convert
29+
</a>
30+
<a
31+
className="px-4 py-2 rounded hover:bg-blue-600 transition"
32+
href="https://github.com/GalvinPython/sqlite-viewer"
33+
rel="noopener noreferrer"
34+
style={{
35+
backgroundColor: "var(--button-bg)",
36+
color: "var(--button-text-color)",
37+
}}
38+
target="_blank"
39+
>
40+
GitHub
41+
</a>
42+
</div>
43+
</div>
44+
<div className="container mx-auto flex flex-col md:flex-row justify-between items-center mt-4 p-4 bg-gray-700">
45+
<div className="flex gap-4">
46+
<a
47+
className="px-4 py-2 rounded hover:bg-blue-500 transition"
48+
href="/sitemap.xml"
49+
style={{
50+
backgroundColor: "var(--secondary-button-bg)",
51+
color: "var(--secondary-button-text-color)",
52+
}}
53+
>
54+
Sitemap
55+
</a>
56+
<a
57+
className="px-4 py-2 rounded hover:bg-blue-500 transition"
58+
href="mailto:contact@sqlitereader.com"
59+
style={{
60+
backgroundColor: "var(--secondary-button-bg)",
61+
color: "var(--secondary-button-text-color)",
62+
}}
63+
>
64+
Contact
65+
</a>
66+
<a
67+
className="px-4 py-2 rounded hover:bg-blue-500 transition"
68+
href="https://imgalvin.me"
69+
rel="noopener noreferrer"
70+
style={{
71+
backgroundColor: "var(--secondary-button-bg)",
72+
color: "var(--secondary-button-text-color)",
73+
}}
74+
target="_blank"
75+
>
76+
Made by GalvinPython
77+
</a>
78+
</div>
79+
</div>
80+
</footer>
81+
);
82+
};
83+
84+
export default Footer;

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "next build",
88
"start": "next start --port 8010",
99
"lint": "eslint . --ext .ts,.tsx -c .eslintrc.json",
10-
"lint:fix": "eslint . --ext .ts,.tsx -c .eslintrc.json --fix"
10+
"lint:fix": "eslint . --ext .ts,.tsx -c .eslintrc.json --fix",
11+
"updatesql": "cp ./node_modules/sql.js/dist/sql-wasm.wasm ./public/sql-wasm.wasm"
1112
},
1213
"dependencies": {
1314
"@million/lint": "^1.0.14",
@@ -17,7 +18,7 @@
1718
"react": "^19.0.0",
1819
"react-dom": "^19.0.0",
1920
"react-icons": "^5.4.0",
20-
"sql.js": "^1.12.0"
21+
"sql.js": "1.13.0"
2122
},
2223
"devDependencies": {
2324
"@eslint/eslintrc": "^3",

pages/_document.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Html, Main, Head, NextScript } from "next/document";
22

3+
import Footer from "@/components/Footer";
4+
35
export default function Document() {
46
return (
57
<>
@@ -8,14 +10,15 @@ export default function Document() {
810
</Head>
911
<Html lang="en">
1012
<body
11-
className="antialiased"
13+
className="antialiased flex flex-col min-h-screen"
1214
style={{
1315
backgroundColor: "var(--background-color)",
1416
color: "var(--text-color)",
1517
}}
1618
>
1719
<Main />
1820
<NextScript />
21+
<Footer />
1922
</body>
2023
</Html>
2124
</>

public/sql-wasm.wasm

6.69 KB
Binary file not shown.

0 commit comments

Comments
 (0)