Skip to content

Commit 4dffe40

Browse files
feat: new homepage (#6)
* chore: update .env.example * build(deps): bump next from 15.3.0 to 15.3.4 * feat: new login button * fix: update favicon * build(deps): bump lucide-react * fix: add xs breakpoint to tailwindcss * fix: layout issue with Sidebar provider too high on DOM tree * feat: new homepage * style: fix some text color * fix: capital T in telegram (woops) * chore: format * fix: grammar Co-authored-by: Tommaso Morganti <[email protected]> --------- Co-authored-by: Tommaso Morganti <[email protected]>
1 parent d070c5d commit 4dffe40

Some content is hidden

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

42 files changed

+394
-245
lines changed

.env.example

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
# Since the ".env" file is gitignored, you can use the ".env.example" file to
2-
# build a new ".env" file when you clone the repo. Keep this file up-to-date
3-
# when you add new variables to `.env`.
4-
5-
# This file will be committed to version control, so make sure not to have any
6-
# secrets in it. If you are cloning this repo, create a copy of this file named
7-
# ".env" and populate it with your secrets.
8-
9-
# When adding additional environment variables, the schema in "/src/env.js"
10-
# should be updated accordingly.
11-
12-
# Next Auth
13-
# You can generate a new secret on the command line with:
14-
# npx auth secret
15-
# https://next-auth.js.org/configuration/options#secret
16-
AUTH_SECRET=""
17-
18-
# Next Auth Discord Provider
19-
AUTH_DISCORD_ID=""
20-
AUTH_DISCORD_SECRET=""
21-
22-
# Drizzle
23-
DATABASE_URL="postgresql://postgres:password@localhost:5432/admin"
1+
# this file might be outdated, please check /src/env.js for required env
2+
BACKEND_URL="http://localhost:3000"
3+
ADMIN_ORG_EMAIL="## Email address of admin Azure account ##"),

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"clsx": "^2.1.1",
4343
"cmdk": "^1.1.1",
4444
"geist": "^1.3.0",
45-
"lucide-react": "^0.475.0",
46-
"next": "^15.3.0",
45+
"lucide-react": "^0.525.0",
46+
"next": "^15.3.4",
4747
"next-themes": "^0.4.4",
4848
"postgres": "^3.4.4",
4949
"react": "^18.3.1",
@@ -67,7 +67,7 @@
6767
"@typescript-eslint/eslint-plugin": "^8.1.0",
6868
"@typescript-eslint/parser": "^8.1.0",
6969
"eslint": "^8.57.0",
70-
"eslint-config-next": "^15.0.1",
70+
"eslint-config-next": "^15.3.4",
7171
"postcss": "^8.4.39",
7272
"prettier": "^3.3.2",
7373
"prettier-plugin-tailwindcss": "^0.6.11",

pnpm-lock.yaml

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

postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
22
plugins: {
3-
'@tailwindcss/postcss': {},
3+
"@tailwindcss/postcss": {},
44
},
55
};

public/favicon.ico

-2.04 KB
Binary file not shown.

src/app/dashboard/(active)/account/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function Account() {
1111

1212
return (
1313
<main className="container mx-auto px-4 py-8">
14-
<h2 className="mb-4 text-3xl font-bold text-accent-foreground">
14+
<h2 className="text-accent-foreground mb-4 text-3xl font-bold">
1515
Account
1616
</h2>
1717

@@ -28,7 +28,7 @@ export default async function Account() {
2828
<div>
2929
<p>{user.name}</p>
3030
<p>{user.email}</p>
31-
<div className="flex items-center mt-2 gap-2">
31+
<div className="mt-2 flex items-center gap-2">
3232
<p className="text-accent-foreground/70">Telegram: </p>
3333
<Telegram />
3434
</div>

src/app/dashboard/(active)/account/telegram.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function ShowTelegram({
4747
<>
4848
<span>@{username}</span>
4949
{!isLoading && data && data.role !== "user" && (
50-
<span className="text-xs text-foreground/30">(role: {data.role})</span>
50+
<span className="text-foreground/30 text-xs">(role: {data.role})</span>
5151
)}
5252
</>
5353
);
@@ -185,7 +185,7 @@ function Form({ onComplete }: { onComplete: () => void }) {
185185
);
186186

187187
return code && ttl ? (
188-
<div className="flex flex-col items-center gap-4 pb-4 pt-8">
188+
<div className="flex flex-col items-center gap-4 pt-8 pb-4">
189189
<p className="flex items-center justify-between gap-4 text-4xl">
190190
{code.split("").map((c, i) => (
191191
<span key={i}>{c}</span>
@@ -210,7 +210,7 @@ function Form({ onComplete }: { onComplete: () => void }) {
210210
<Code copyOnClick>/link</Code>
211211
</div>
212212

213-
<p className="pt-2 text-xs text-foreground/30">
213+
<p className="text-foreground/30 pt-2 text-xs">
214214
Having troubles with this code?{" "}
215215
<button className="underline" onClick={reset}>
216216
Click to reset
@@ -275,7 +275,7 @@ function Timer({
275275
timeLeft < 31_000 ? "bg-red-600 dark:bg-red-400" : "bg-primary"
276276
}
277277
/>
278-
<span className="text-sm text-foreground/70">
278+
<span className="text-foreground/70 text-sm">
279279
Time left:
280280
<span className="inline-block w-10 text-end">
281281
{Math.floor(timeLeft / 1000)}s

src/app/dashboard/(active)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default async function AdminHome() {
55
return (
66
session && (
77
<div className="container mx-auto px-4 py-8">
8-
<h2 className="mb-4 text-3xl font-bold text-accent-foreground">Home</h2>
8+
<h2 className="text-accent-foreground mb-4 text-3xl font-bold">Home</h2>
99
</div>
1010
)
1111
);

0 commit comments

Comments
 (0)