Skip to content

Commit 54fb3f8

Browse files
committed
initial commit for major refactoring
1 parent 4013039 commit 54fb3f8

File tree

110 files changed

+4793
-66373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+4793
-66373
lines changed

.eslintrc.json

-20
This file was deleted.

.firebaserc

-5
This file was deleted.
+34-34
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
# This file was auto-generated by the Firebase CLI
2-
# https://github.com/firebase/firebase-tools
1+
# # This file was auto-generated by the Firebase CLI
2+
# # https://github.com/firebase/firebase-tools
33

4-
name: Run unit test and Deploy to Firebase Preview on PR
5-
on: pull_request
4+
# name: Run unit test and Deploy to Firebase Preview on PR
5+
# on: pull_request
66

7-
env:
8-
REACT_APP_APIKEY: '${{ secrets.REACT_APP_APIKEY }}'
9-
REACT_APP_AUTHDOMAIN: '${{ secrets.REACT_APP_AUTHDOMAIN }}'
10-
REACT_APP_PID: '${{ secrets.REACT_APP_PID }}'
11-
REACT_APP_SB: '${{ secrets.REACT_APP_SB }}'
12-
REACT_APP_SID: '${{ secrets.REACT_APP_SID }}'
13-
REACT_APP_APPID: '${{ secrets.REACT_APP_APPID }}'
14-
REACT_APP_MID: '${{ secrets.REACT_APP_MID }}'
15-
REACT_APP_RECAPTCHA_SITE_KEY: '${{ secrets.REACT_APP_RECAPTCHA_SITE_KEY }}'
7+
# env:
8+
# REACT_APP_APIKEY: '${{ secrets.REACT_APP_APIKEY }}'
9+
# REACT_APP_AUTHDOMAIN: '${{ secrets.REACT_APP_AUTHDOMAIN }}'
10+
# REACT_APP_PID: '${{ secrets.REACT_APP_PID }}'
11+
# REACT_APP_SB: '${{ secrets.REACT_APP_SB }}'
12+
# REACT_APP_SID: '${{ secrets.REACT_APP_SID }}'
13+
# REACT_APP_APPID: '${{ secrets.REACT_APP_APPID }}'
14+
# REACT_APP_MID: '${{ secrets.REACT_APP_MID }}'
15+
# REACT_APP_RECAPTCHA_SITE_KEY: '${{ secrets.REACT_APP_RECAPTCHA_SITE_KEY }}'
1616

17-
jobs:
18-
build_and_preview:
19-
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
20-
runs-on: ubuntu-latest
17+
# jobs:
18+
# build_and_preview:
19+
# if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
20+
# runs-on: ubuntu-latest
2121

22-
steps:
23-
- name: checkout code
24-
uses: actions/checkout@v2
25-
- name: setup node
26-
uses: actions/setup-node@v3
27-
with:
28-
node-version: 16
22+
# steps:
23+
# - name: checkout code
24+
# uses: actions/checkout@v2
25+
# - name: setup node
26+
# uses: actions/setup-node@v3
27+
# with:
28+
# node-version: 16
2929

30-
- name: Install Dependencies
31-
run: npm install
30+
# - name: Install Dependencies
31+
# run: npm install
3232

33-
- name: Build Project
34-
run: npm ci && npm run build
33+
# - name: Build Project
34+
# run: npm ci && npm run build
3535

36-
- name: Delopy to Preview Server
37-
uses: FirebaseExtended/action-hosting-deploy@v0
38-
with:
39-
repoToken: '${{ secrets.GITHUB_TOKEN }}'
40-
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_LULLULAND_2CE97 }}'
41-
projectId: '${{ secrets.REACT_APP_PID }}'
36+
# - name: Delopy to Preview Server
37+
# uses: FirebaseExtended/action-hosting-deploy@v0
38+
# with:
39+
# repoToken: '${{ secrets.GITHUB_TOKEN }}'
40+
# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_LULLULAND_2CE97 }}'
41+
# projectId: '${{ secrets.REACT_APP_PID }}'

.gitignore

+23-7
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,39 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
712

813
# testing
914
/coverage
1015

16+
# next.js
17+
/.next/
18+
/out/
19+
1120
# production
1221
/build
1322

1423
# misc
1524
.DS_Store
16-
.env
17-
.env.local
18-
.env.development.local
19-
.env.test.local
20-
.env.production.local
25+
*.pem
2126

27+
# debug
2228
npm-debug.log*
2329
yarn-debug.log*
2430
yarn-error.log*
25-
firebase-debug.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

app/favicon.ico

25.3 KB
Binary file not shown.

app/globals.css

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
:root {
6+
--background: #ffffff;
7+
--foreground: #171717;
8+
}
9+
10+
@media (prefers-color-scheme: dark) {
11+
:root {
12+
--background: #0a0a0a;
13+
--foreground: #ededed;
14+
}
15+
}
16+
17+
body {
18+
color: var(--foreground);
19+
background: var(--background);
20+
font-family: Arial, Helvetica, sans-serif;
21+
}

app/layout.tsx

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import type { Metadata } from "next";
2+
import { Geist, Geist_Mono } from "next/font/google";
3+
import "./globals.css";
4+
5+
const geistSans = Geist({
6+
variable: "--font-geist-sans",
7+
subsets: ["latin"],
8+
});
9+
10+
const geistMono = Geist_Mono({
11+
variable: "--font-geist-mono",
12+
subsets: ["latin"],
13+
});
14+
15+
export const metadata: Metadata = {
16+
title: "Create Next App",
17+
description: "Generated by create next app",
18+
};
19+
20+
export default function RootLayout({
21+
children,
22+
}: Readonly<{
23+
children: React.ReactNode;
24+
}>) {
25+
return (
26+
<html lang="en">
27+
<body
28+
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
29+
>
30+
{children}
31+
</body>
32+
</html>
33+
);
34+
}

app/page.tsx

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
import Image from "next/image";
2+
3+
export default function Home() {
4+
return (
5+
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
6+
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
7+
<Image
8+
className="dark:invert"
9+
src="/next.svg"
10+
alt="Next.js logo"
11+
width={180}
12+
height={38}
13+
priority
14+
/>
15+
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
16+
<li className="mb-2">
17+
Get started by editing{" "}
18+
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
19+
app/page.tsx
20+
</code>
21+
.
22+
</li>
23+
<li>Save and see your changes instantly.</li>
24+
</ol>
25+
26+
<div className="flex gap-4 items-center flex-col sm:flex-row">
27+
<a
28+
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
29+
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
30+
target="_blank"
31+
rel="noopener noreferrer"
32+
>
33+
<Image
34+
className="dark:invert"
35+
src="/vercel.svg"
36+
alt="Vercel logomark"
37+
width={20}
38+
height={20}
39+
/>
40+
Deploy now
41+
</a>
42+
<a
43+
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
44+
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
45+
target="_blank"
46+
rel="noopener noreferrer"
47+
>
48+
Read our docs
49+
</a>
50+
</div>
51+
</main>
52+
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
53+
<a
54+
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
55+
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
56+
target="_blank"
57+
rel="noopener noreferrer"
58+
>
59+
<Image
60+
aria-hidden
61+
src="/file.svg"
62+
alt="File icon"
63+
width={16}
64+
height={16}
65+
/>
66+
Learn
67+
</a>
68+
<a
69+
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
70+
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
71+
target="_blank"
72+
rel="noopener noreferrer"
73+
>
74+
<Image
75+
aria-hidden
76+
src="/window.svg"
77+
alt="Window icon"
78+
width={16}
79+
height={16}
80+
/>
81+
Examples
82+
</a>
83+
<a
84+
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
85+
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
86+
target="_blank"
87+
rel="noopener noreferrer"
88+
>
89+
<Image
90+
aria-hidden
91+
src="/globe.svg"
92+
alt="Globe icon"
93+
width={16}
94+
height={16}
95+
/>
96+
Go to nextjs.org →
97+
</a>
98+
</footer>
99+
</div>
100+
);
101+
}

eslint.config.mjs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.extends("next/core-web-vitals", "next/typescript"),
14+
];
15+
16+
export default eslintConfig;

firebase.json

-31
This file was deleted.

next.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
};
6+
7+
export default nextConfig;

0 commit comments

Comments
 (0)