Skip to content

Commit 1eff652

Browse files
committed
Refactor Tailwind configuration, update Xata client schema, and enhance Not Found and Loading pages with improved styles. Remove favicon and adjust global styles for shimmer effect.
1 parent 169204d commit 1eff652

File tree

7 files changed

+77
-177
lines changed

7 files changed

+77
-177
lines changed

src/app/(public)/repos/[language]/loading.tsx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ export default function Loading() {
55
<div className="border-b border-hacktoberfest-dark-green">
66
<div className="container mx-auto px-4 py-4">
77
<div className="flex items-center justify-between">
8-
<div className="h-8 w-32 bg-hacktoberfest-dark-green rounded-md animate-pulse"></div>
8+
<div className="h-8 w-32 bg-shimmer animate-shimmer rounded-md"></div>
99
<div className="flex space-x-4">
10-
<div className="h-8 w-20 bg-hacktoberfest-dark-green rounded-md animate-pulse"></div>
11-
<div className="h-8 w-24 bg-hacktoberfest-dark-green rounded-md animate-pulse"></div>
10+
<div className="h-8 w-20 bg-shimmer animate-shimmer rounded-md"></div>
11+
<div className="h-8 w-24 bg-shimmer animate-shimmer rounded-md"></div>
1212
</div>
1313
</div>
1414
</div>
@@ -29,18 +29,18 @@ export default function Loading() {
2929
{/* Sorter Skeleton */}
3030
<div className="flex justify-center mb-6">
3131
<div className="flex space-x-4">
32-
<div className="h-10 w-24 bg-hacktoberfest-black rounded-md animate-pulse"></div>
33-
<div className="h-10 w-28 bg-hacktoberfest-black rounded-md animate-pulse"></div>
34-
<div className="h-10 w-20 bg-hacktoberfest-black rounded-md animate-pulse"></div>
32+
<div className="h-10 w-24 bg-shimmer animate-shimmer rounded-md"></div>
33+
<div className="h-10 w-28 bg-shimmer animate-shimmer rounded-md"></div>
34+
<div className="h-10 w-20 bg-shimmer animate-shimmer rounded-md"></div>
3535
</div>
3636
</div>
3737

3838
{/* Stars Filter Skeleton */}
3939
<div className="flex justify-center mb-8">
4040
<div className="flex space-x-3">
41-
<div className="h-10 w-32 bg-hacktoberfest-black rounded-md animate-pulse"></div>
42-
<div className="h-10 w-16 bg-hacktoberfest-black rounded-md animate-pulse"></div>
43-
<div className="h-10 w-32 bg-hacktoberfest-black rounded-md animate-pulse"></div>
41+
<div className="h-10 w-32 bg-shimmer animate-shimmer rounded-md"></div>
42+
<div className="h-10 w-16 bg-shimmer animate-shimmer rounded-md"></div>
43+
<div className="h-10 w-32 bg-shimmer animate-shimmer rounded-md"></div>
4444
</div>
4545
</div>
4646

@@ -54,33 +54,33 @@ export default function Loading() {
5454
{/* Repository Title */}
5555
<div className="mb-4">
5656
<div className="h-6 w-3/4 bg-shimmer animate-shimmer rounded mb-2"></div>
57-
<div className="h-4 w-full bg-hacktoberfest-dark-green rounded animate-pulse"></div>
58-
<div className="h-4 w-2/3 bg-hacktoberfest-dark-green rounded animate-pulse mt-1"></div>
57+
<div className="h-4 w-full bg-shimmer animate-shimmer rounded"></div>
58+
<div className="h-4 w-2/3 bg-shimmer animate-shimmer rounded mt-1"></div>
5959
</div>
6060

6161
{/* Language and Stats */}
6262
<div className="flex items-center justify-between mb-4">
6363
<div className="flex items-center space-x-2">
64-
<div className="h-3 w-3 bg-hacktoberfest-green rounded-full animate-pulse"></div>
65-
<div className="h-4 w-16 bg-hacktoberfest-dark-green rounded animate-pulse"></div>
64+
<div className="h-3 w-3 bg-shimmer animate-shimmer rounded-full"></div>
65+
<div className="h-4 w-16 bg-shimmer animate-shimmer rounded"></div>
6666
</div>
6767
<div className="flex space-x-4">
6868
<div className="flex items-center space-x-1">
69-
<div className="h-4 w-4 bg-hacktoberfest-dark-green rounded animate-pulse"></div>
70-
<div className="h-4 w-8 bg-hacktoberfest-dark-green rounded animate-pulse"></div>
69+
<div className="h-4 w-4 bg-shimmer animate-shimmer rounded"></div>
70+
<div className="h-4 w-8 bg-shimmer animate-shimmer rounded"></div>
7171
</div>
7272
<div className="flex items-center space-x-1">
73-
<div className="h-4 w-4 bg-hacktoberfest-dark-green rounded animate-pulse"></div>
74-
<div className="h-4 w-8 bg-hacktoberfest-dark-green rounded animate-pulse"></div>
73+
<div className="h-4 w-4 bg-shimmer animate-shimmer rounded"></div>
74+
<div className="h-4 w-8 bg-shimmer animate-shimmer rounded"></div>
7575
</div>
7676
</div>
7777
</div>
7878

7979
{/* Topics */}
8080
<div className="flex flex-wrap gap-2 mb-4">
81-
<div className="h-6 w-20 bg-hacktoberfest-deep-pink rounded-full animate-pulse"></div>
82-
<div className="h-6 w-16 bg-hacktoberfest-green rounded-full animate-pulse"></div>
83-
<div className="h-6 w-24 bg-hacktoberfest-pink rounded-full animate-pulse"></div>
81+
<div className="h-6 w-20 bg-shimmer animate-shimmer rounded-full"></div>
82+
<div className="h-6 w-16 bg-shimmer animate-shimmer rounded-full"></div>
83+
<div className="h-6 w-24 bg-shimmer animate-shimmer rounded-full"></div>
8484
</div>
8585

8686
{/* Action Button */}
@@ -92,16 +92,16 @@ export default function Loading() {
9292

9393
{/* Pagination Skeleton */}
9494
<div className="flex justify-center items-center space-x-2 py-8">
95-
<div className="h-10 w-20 bg-hacktoberfest-black rounded-md animate-pulse"></div>
95+
<div className="h-10 w-20 bg-shimmer animate-shimmer rounded-md"></div>
9696
<div className="flex space-x-1">
9797
{Array.from({ length: 5 }).map((_, index) => (
9898
<div
9999
key={index}
100-
className="h-10 w-10 bg-hacktoberfest-black rounded-md animate-pulse"
100+
className="h-10 w-10 bg-shimmer animate-shimmer rounded-md"
101101
></div>
102102
))}
103103
</div>
104-
<div className="h-10 w-20 bg-hacktoberfest-black rounded-md animate-pulse"></div>
104+
<div className="h-10 w-20 bg-shimmer animate-shimmer rounded-md"></div>
105105
</div>
106106
</div>
107107
</>

src/app/favicon.ico

-14.7 KB
Binary file not shown.

src/app/not-found.tsx

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,46 @@ export default function NotFoundPage() {
66
return (
77
<>
88
<Header />
9-
<div>
10-
<div className="text-center">
11-
<h1 className="text-[15rem] leading-tight text-hacktoberfest-green">
12-
404
13-
</h1>
14-
<div className="text-[1.4rem] text-hacktoberfest-light-green">
15-
<h2>Page not found!</h2>
16-
<p>
17-
The Page you are looking for might have been removed or it is
18-
Temporarily unavailable
9+
<div className="min-h-[calc(100vh-61px)] flex items-center justify-center bg-gradient-to-br from-hacktoberfest-blue via-hacktoberfest-light-blue to-hacktoberfest-blue">
10+
<div className="text-center max-w-2xl mx-auto px-6">
11+
{/* 404 Number with Animation */}
12+
<div className="relative mb-8">
13+
<h1 className="text-[12rem] md:text-[15rem] leading-none text-hacktoberfest-light font-bold animate-pulse">
14+
404
15+
</h1>
16+
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-hacktoberfest-light to-transparent opacity-20 animate-pulse"></div>
17+
</div>
18+
19+
{/* Error Message */}
20+
<div className="space-y-6 mb-12">
21+
<h2 className="text-4xl md:text-5xl font-bold text-hacktoberfest-light mb-4">
22+
Oops! Page Not Found
23+
</h2>
24+
<p className="text-xl md:text-2xl text-hacktoberfest-light/80 leading-relaxed">
25+
The page you're looking for seems to have wandered off into the
26+
digital void. Don't worry, it happens to the best of us!
1927
</p>
28+
</div>
29+
30+
{/* Action Buttons */}
31+
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
2032
<Link href="/">
21-
<Button className="hover:bg-hacktoberfest-green hover:text-hacktoberfest-dark-green">
22-
Go back Home
23-
</Button>
33+
<Button>🏠 Go Back Home</Button>
2434
</Link>
2535
</div>
36+
37+
{/* Decorative Elements */}
38+
<div className="mt-16 flex justify-center space-x-4 opacity-60">
39+
<div className="w-3 h-3 bg-hacktoberfest-light rounded-full animate-bounce"></div>
40+
<div
41+
className="w-3 h-3 bg-hacktoberfest-light rounded-full animate-bounce"
42+
style={{ animationDelay: '0.1s' }}
43+
></div>
44+
<div
45+
className="w-3 h-3 bg-hacktoberfest-light rounded-full animate-bounce"
46+
style={{ animationDelay: '0.2s' }}
47+
></div>
48+
</div>
2649
</div>
2750
</div>
2851
</>

src/components/Icons.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ export const HeroSectionSvg = ({ className }: { className?: string }) => {
12191219
<path
12201220
d="M173.599 633.999H231.169V576.428H288.741V633.999H346.311V691.569H461.453V749.14H519.023V691.569H634.165V749.139H576.594V749.14H691.736V806.71H749.306V749.14H806.876V806.71H864.448V749.14H922.018V806.71H979.588V864.281H749.306V864.282H519.023V806.71H288.74V749.14H173.598V691.569H116.028V633.999H58.4575V576.428H173.599V633.999ZM1037.16 806.71H1094.73V864.282H1037.16V864.281H979.589V749.14H1037.16V806.71ZM1152.31 864.282H1094.74V749.14H1152.31V864.282ZM1267.46 749.14H1325.03V691.569H1440.17V806.71H1267.46V864.282H1152.31V749.14H1209.89V749.139H1152.31V691.569H1267.46V749.14ZM1670.45 691.569H1612.88V749.14H1497.74V806.71H1440.17V633.999H1497.74V691.569H1555.31V633.999H1612.88V576.428H1670.45V691.569ZM749.306 749.139H691.735V633.999H749.306V749.139ZM922.018 749.139H864.448V633.999H922.018V749.139ZM1094.73 749.139H1037.16V633.999H1094.73V749.139ZM231.169 691.569H288.74V633.999H231.169V691.569ZM519.023 691.569H461.453V633.999H519.023V691.569ZM1325.03 691.569H1267.46V633.999H1325.03V691.569ZM461.453 633.999H403.881V576.428H461.453V633.999ZM1382.6 633.999H1325.03V576.428H1382.6V633.999ZM1555.31 633.999H1497.74V576.428H1555.31V633.999ZM1728.02 633.999H1670.45V576.428H1728.02V633.999ZM691.736 633.998H634.165V461.287H691.736V633.998ZM922.018 633.998H864.448V461.287H922.018V633.998ZM1094.73 231.003H1151.46V403.715H1152.31L1152.31 461.287H1151.46V633.998H1093.89V461.287H1037.17V403.715H1093.89V231.003H1037.16V173.433H1094.73V231.003ZM173.599 288.574H231.169V403.715L231.168 461.286H231.169V576.427H173.598V461.286H58.4712V576.427H0.899902V346.145H58.4712V403.715H173.598V288.574H58.4712V346.144H0.899902V288.574H58.4575V231.003H173.599V288.574ZM461.453 576.427H403.881V518.857H461.453V576.427ZM1382.6 576.427H1325.03V518.857H1382.6V576.427ZM1612.88 403.715H1728.02L1728.02 461.287H1612.88V576.427H1555.31V346.145H1612.88V403.715ZM1785.59 576.427H1728.02V346.145H1785.59V576.427ZM403.881 403.715H461.453L461.452 461.286H403.881V518.857H346.311V346.145H403.881V403.715ZM1440.17 403.715H1440.17L1440.17 461.287V518.857H1382.6V461.287H1325.03V403.715H1382.6V346.145H1440.17V403.715ZM1325.03 461.287H1152.31V403.715H1325.03L1325.03 461.287ZM1555.31 461.287H1440.17V403.715H1555.31L1555.31 461.287ZM346.31 461.286H231.169V403.715H346.311L346.31 461.286ZM634.164 461.286H461.453V403.715H634.165L634.164 461.286ZM691.736 403.715H749.306L749.305 461.286H634.165V346.145H691.736V403.715ZM864.447 461.286H749.306V403.715H864.448L864.447 461.286ZM922.018 403.715H1037.16V461.286H864.448V231.003H922.018V403.715ZM461.453 346.145H403.881V231.003H461.453V346.145ZM749.306 231.003H691.736V346.144H634.165V231.003H691.735V173.433H749.306V231.003ZM1382.6 346.144H1325.03V231.003H1382.6V346.144ZM1612.88 346.144H1555.31V288.574H1612.88V346.144ZM1785.59 346.144H1728.02V288.574H1785.59V346.144ZM288.741 288.574H231.169V231.003H288.741V288.574ZM1555.31 288.574H1497.74V231.003H1555.31V288.574ZM1670.45 288.574H1612.88V231.003H1670.45V288.574ZM1728.02 288.574H1670.45V231.003H1728.02V288.574ZM691.736 115.862H749.306V173.432H691.735V115.862H634.165V173.432H519.023V115.862H461.453V173.432H346.311V231.002H288.74V173.432H231.169V231.002H116.028V173.432H173.598V115.862H288.74V58.2915H691.736V115.862ZM519.023 231.002H461.453V173.432H519.023V231.002ZM922.018 231.002H864.448V58.2915H922.018V231.002ZM1325.03 231.002H1267.46V173.432H1325.03V231.002ZM1497.74 231.002H1440.17V58.2915H1497.74V231.002ZM1612.88 173.432H1670.45V231.002H1555.31V173.432H1497.74V115.862H1612.88V173.432ZM1094.73 173.432H1037.16V115.862H1094.73V173.432ZM1440.17 173.432H1325.03V115.862H1267.46V173.432H1152.31V58.2915H1440.17V173.432ZM979.588 58.2915H922.018V58.2905H864.448V58.2915H806.876V115.862H749.306V58.2905H519.023V0.720215H979.588V58.2915ZM1094.73 58.2905H1037.16V115.862H979.589V0.720215H1094.73V58.2905ZM1152.31 115.862H1094.74V58.2915H1152.31V115.862ZM1152.31 58.2905H1094.74V0.720215H1152.31V58.2905ZM1267.46 58.2905H1152.31V0.720215H1267.46V58.2905Z"
12211221
fill="url(#paint0_linear_2_2398)"
1222-
fill-opacity="0.2"
1222+
fillOpacity="0.2"
12231223
/>
12241224
<defs>
12251225
<linearGradient
@@ -1230,8 +1230,8 @@ export const HeroSectionSvg = ({ className }: { className?: string }) => {
12301230
y2="776.532"
12311231
gradientUnits="userSpaceOnUse"
12321232
>
1233-
<stop stop-color="#5A5AB5" />
1234-
<stop offset="1" stop-color="#1C1C3F" stop-opacity="0" />
1233+
<stop stopColor="#5A5AB5" />
1234+
<stop offset="1" stopColor="#1C1C3F" stopOpacity="0" />
12351235
</linearGradient>
12361236
</defs>
12371237
</svg>

src/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ a {
147147
}
148148

149149
.bg-shimmer {
150-
background: linear-gradient(90deg, #183717 25%, #50da4c 50%, #183717 75%);
150+
background: linear-gradient(90deg, #1c1c3f 25%, #403f7d 50%, #1c1c3f 75%);
151151
background-size: 200% 100%;
152152
}
153153
}

src/xata.ts

Lines changed: 6 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,146 +1,23 @@
11
// Generated by Xata Codegen 0.30.1. Please do not edit.
2-
import { buildClient } from "@xata.io/client";
2+
import { buildClient } from '@xata.io/client';
33
import type {
44
BaseClientOptions,
55
SchemaInference,
6-
XataRecord,
7-
} from "@xata.io/client";
6+
XataRecord
7+
} from '@xata.io/client';
88

9-
const tables = [
10-
{
11-
name: "reports",
12-
columns: [
13-
{ name: "repoId", type: "int", unique: true },
14-
{ name: "repoAuthor", type: "string" },
15-
{
16-
name: "message",
17-
type: "text",
18-
notNull: true,
19-
defaultValue: "No Message",
20-
},
21-
{ name: "user", type: "link", link: { table: "nextauth_users" } },
22-
{ name: "valid", type: "bool", notNull: true, defaultValue: "true" },
23-
{ name: "repoUrl", type: "string", unique: true },
24-
],
25-
},
26-
{
27-
name: "nextauth_users",
28-
columns: [
29-
{ name: "email", type: "email" },
30-
{ name: "emailVerified", type: "datetime" },
31-
{ name: "name", type: "string" },
32-
{ name: "image", type: "string" },
33-
],
34-
revLinks: [
35-
{ column: "user", table: "nextauth_accounts" },
36-
{ column: "user", table: "nextauth_users_accounts" },
37-
{ column: "user", table: "nextauth_users_sessions" },
38-
{ column: "user", table: "nextauth_sessions" },
39-
{ column: "user", table: "reports" },
40-
{ column: "user", table: "bookmarks" },
41-
],
42-
},
43-
{
44-
name: "nextauth_accounts",
45-
columns: [
46-
{ name: "user", type: "link", link: { table: "nextauth_users" } },
47-
{ name: "type", type: "string" },
48-
{ name: "provider", type: "string" },
49-
{ name: "providerAccountId", type: "string" },
50-
{ name: "refresh_token", type: "string" },
51-
{ name: "access_token", type: "string" },
52-
{ name: "expires_at", type: "int" },
53-
{ name: "token_type", type: "string" },
54-
{ name: "scope", type: "string" },
55-
{ name: "id_token", type: "text" },
56-
{ name: "session_state", type: "string" },
57-
],
58-
revLinks: [{ column: "account", table: "nextauth_users_accounts" }],
59-
},
60-
{
61-
name: "nextauth_verificationTokens",
62-
columns: [
63-
{ name: "identifier", type: "string" },
64-
{ name: "token", type: "string" },
65-
{ name: "expires", type: "datetime" },
66-
],
67-
},
68-
{
69-
name: "nextauth_users_accounts",
70-
columns: [
71-
{ name: "user", type: "link", link: { table: "nextauth_users" } },
72-
{ name: "account", type: "link", link: { table: "nextauth_accounts" } },
73-
],
74-
},
75-
{
76-
name: "nextauth_users_sessions",
77-
columns: [
78-
{ name: "user", type: "link", link: { table: "nextauth_users" } },
79-
{ name: "session", type: "link", link: { table: "nextauth_sessions" } },
80-
],
81-
},
82-
{
83-
name: "nextauth_sessions",
84-
columns: [
85-
{ name: "sessionToken", type: "string" },
86-
{ name: "expires", type: "datetime" },
87-
{ name: "user", type: "link", link: { table: "nextauth_users" } },
88-
],
89-
revLinks: [{ column: "session", table: "nextauth_users_sessions" }],
90-
},
91-
{
92-
name: "bookmarks",
93-
columns: [
94-
{ name: "user", type: "link", link: { table: "nextauth_users" } },
95-
],
96-
},
97-
] as const;
9+
const tables = [] as const;
9810

9911
export type SchemaTables = typeof tables;
10012
export type InferredTypes = SchemaInference<SchemaTables>;
10113

102-
export type Reports = InferredTypes["reports"];
103-
export type ReportsRecord = Reports & XataRecord;
104-
105-
export type NextauthUsers = InferredTypes["nextauth_users"];
106-
export type NextauthUsersRecord = NextauthUsers & XataRecord;
107-
108-
export type NextauthAccounts = InferredTypes["nextauth_accounts"];
109-
export type NextauthAccountsRecord = NextauthAccounts & XataRecord;
110-
111-
export type NextauthVerificationTokens =
112-
InferredTypes["nextauth_verificationTokens"];
113-
export type NextauthVerificationTokensRecord = NextauthVerificationTokens &
114-
XataRecord;
115-
116-
export type NextauthUsersAccounts = InferredTypes["nextauth_users_accounts"];
117-
export type NextauthUsersAccountsRecord = NextauthUsersAccounts & XataRecord;
118-
119-
export type NextauthUsersSessions = InferredTypes["nextauth_users_sessions"];
120-
export type NextauthUsersSessionsRecord = NextauthUsersSessions & XataRecord;
121-
122-
export type NextauthSessions = InferredTypes["nextauth_sessions"];
123-
export type NextauthSessionsRecord = NextauthSessions & XataRecord;
124-
125-
export type Bookmarks = InferredTypes["bookmarks"];
126-
export type BookmarksRecord = Bookmarks & XataRecord;
127-
128-
export type DatabaseSchema = {
129-
reports: ReportsRecord;
130-
nextauth_users: NextauthUsersRecord;
131-
nextauth_accounts: NextauthAccountsRecord;
132-
nextauth_verificationTokens: NextauthVerificationTokensRecord;
133-
nextauth_users_accounts: NextauthUsersAccountsRecord;
134-
nextauth_users_sessions: NextauthUsersSessionsRecord;
135-
nextauth_sessions: NextauthSessionsRecord;
136-
bookmarks: BookmarksRecord;
137-
};
14+
export type DatabaseSchema = {};
13815

13916
const DatabaseClient = buildClient();
14017

14118
const defaultOptions = {
14219
databaseURL:
143-
"https://Usman-Sabuwala-s-workspace-u2kcvd.us-east-1.xata.sh/db/project-finder-hf",
20+
'https://Adnan-Arodiya-s-workspace-4n85nl.eu-central-1.xata.sh/db/hacktoberfest-projects'
14421
};
14522

14623
export class XataClient extends DatabaseClient<DatabaseSchema> {

tailwind.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ const config = {
3636
},
3737
colors: {
3838
hacktoberfest: {
39-
black: '#1C1C1C',
40-
green: '#50DA4C',
39+
// black: '#1C1C1C',
40+
// green: '#50DA4C',
4141
blue: '#1c1c3f',
42-
pink: '#FF8BFF',
42+
// pink: '#FF8BFF',
4343
light: '#d0cce3',
4444
beige: '#F3F0E0',
45-
'dark-green': '#183717',
46-
'light-green': '#D8FFD8',
47-
'light-blue': '#403f7d',
48-
'deep-pink': '#C401C4',
49-
'light-pink': '#FFDBFF'
45+
// 'dark-green': '#183717',
46+
// 'light-green': '#D8FFD8',
47+
'light-blue': '#403f7d'
48+
// 'deep-pink': '#C401C4',
49+
// 'light-pink': '#FFDBFF'
5050
}
5151
},
5252
borderRadius: {

0 commit comments

Comments
 (0)