Skip to content

Commit 2e934a5

Browse files
committed
Removed leading slashes
- Should fix GH pages deployment
1 parent f204f42 commit 2e934a5

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const isGitHubPages = process.env.GITHUB_PAGES === 'true';
33
import type { NextConfig } from "next";
44

55
const nextConfig: NextConfig = {
6-
output: 'export',
6+
output: isGitHubPages ? 'export' : 'standalone',
77
basePath: isGitHubPages ? '/Dashboad_25-26' : '',
88
assetPrefix: isGitHubPages ? '/Dashboad_25-26/' : '/',
99
trailingSlash: true,

src/app/layout.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const metadata: Metadata = {
3535
siteName: 'AEC Coding Club',
3636
images: [
3737
{
38-
url: '/og-image.jpg',
38+
url: 'og-image.jpg',
3939
width: 1200,
4040
height: 630,
4141
alt: 'AEC Coding Club',
@@ -48,7 +48,7 @@ export const metadata: Metadata = {
4848
card: 'summary_large_image',
4949
title: 'AEC Coding Club',
5050
description: 'Join AEC Coding Club - A community of passionate developers, innovators, and problem solvers.',
51-
images: ['/og-image.jpg'],
51+
images: ['og-image.jpg'],
5252
},
5353
robots: {
5454
index: true,
@@ -63,14 +63,14 @@ export const metadata: Metadata = {
6363
},
6464
icons: {
6565
icon: [
66-
{ url: '/favicon.svg', type: 'image/svg+xml' },
67-
{ url: '/favicon.ico' },
68-
{ url: '/favicon-96x96.png', sizes: '96x96', type: 'image/png' },
66+
{ url: 'favicon.svg', type: 'image/svg+xml' },
67+
{ url: 'favicon.ico' },
68+
{ url: 'favicon-96x96.png', sizes: '96x96', type: 'image/png' },
6969
],
70-
shortcut: '/favicon.ico',
71-
apple: '/apple-touch-icon.png',
70+
shortcut: 'favicon.ico',
71+
apple: 'apple-touch-icon.png',
7272
},
73-
manifest: '/site.webmanifest',
73+
manifest: 'site.webmanifest',
7474
appleWebApp: {
7575
title: 'AEC Coding Club',
7676
statusBarStyle: 'default',

src/components/landing-page/AboutSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const AboutSection = () => {
1313
{/* Background */}
1414
<div
1515
className="absolute inset-0 bg-cover bg-center bg-no-repeat opacity-10"
16-
style={{ backgroundImage: "url('/bg/pattern-bg-1.jpg')" }}
16+
style={{ backgroundImage: "url('bg/pattern-bg-1.jpg')" }}
1717
/>
1818

1919
{/* Content wrapper */}

src/components/landing-page/EventsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const EventsSection = () => {
5151
{/* Background */}
5252
<div
5353
className="absolute inset-0 bg-cover bg-top bg-no-repeat opacity-10"
54-
style={{ backgroundImage: "url('/bg/led-bg-2.jpeg')" }}
54+
style={{ backgroundImage: "url('bg/led-bg-2.jpeg')" }}
5555
/>
5656

5757
<div className="max-w-7xl z-10 mx-auto px-4 sm:px-6 lg:px-8 py-20">

src/components/landing-page/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const HeroSection = () => {
5454
<div
5555
className="absolute inset-0 bg-cover bg-center bg-no-repeat opacity-20"
5656
style={{
57-
backgroundImage: 'url("/bg/gamer-bg-1.jpeg")',
57+
backgroundImage: 'url("bg/gamer-bg-1.jpeg")',
5858
filter: 'brightness(0.3) contrast(0.8)'
5959
}}
6060
/>

src/components/landing-page/InchargeSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const InchargeSection = () => {
1010
{/* Background image overlay */}
1111
<div
1212
className="absolute inset-0 bg-cover bg-center bg-no-repeat opacity-10"
13-
style={{ backgroundImage: "url('/bg/stripes-bg-1.jpeg')" }}
13+
style={{ backgroundImage: "url('bg/stripes-bg-1.jpeg')" }}
1414
/>
1515

1616
{/* Content Wrapper */}
@@ -20,7 +20,7 @@ const InchargeSection = () => {
2020
<div className="flex flex-col items-center order-2 md:order-1 gap-8">
2121
<div className="w-40 h-40 sm:w-56 sm:h-56 md:w-64 md:h-64 rounded-full overflow-hidden border-4 border-gray-300 dark:border-gray-600">
2222
<img
23-
src="/about/gunajit-sir.png"
23+
src="about/gunajit-sir.png"
2424
alt="Club In-Charge"
2525
width={320}
2626
height={320}

src/components/landing-page/PresidentSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const PresidentSection = () => {
1010
{/* Background */}
1111
<div
1212
className="absolute inset-0 bg-cover bg-center bg-no-repeat opacity-10"
13-
style={{ backgroundImage: "url('/bg/led-bg-1.jpg')" }}
13+
style={{ backgroundImage: "url('bg/led-bg-1.jpg')" }}
1414
/>
1515

1616
{/* Content Wrapper */}
@@ -46,7 +46,7 @@ const PresidentSection = () => {
4646
<div className="flex flex-col items-center gap-8">
4747
<div className="w-40 h-40 sm:w-64 sm:h-64 rounded-full overflow-hidden border-4 border-gray-300 dark:border-gray-600">
4848
<img
49-
src="/about/shivayan.jpg"
49+
src="about/shivayan.jpg"
5050
alt="Club President"
5151
width={320}
5252
height={320}

src/components/landing-page/ProjectsSection.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const ProjectsSection = () => {
2020
authors: ["Aryan Rajkhowa"],
2121
githubUrl: "https://github.com/RaulOverhaul/Flood_Detection_using_Mask_RCNN",
2222
liveUrl: "https://github.com/RaulOverhaul/Flood_Detection_using_Mask_RCNN",
23-
image: "/projects/flood-detection.png"
23+
image: "projects/flood-detection.png"
2424
},
2525
{
2626
title: "Dashify",
@@ -30,7 +30,7 @@ const ProjectsSection = () => {
3030
authors: ["Shivayan Chakraborty"],
3131
githubUrl: "https://github.com/Shivayan09/Dashifyy",
3232
liveUrl: "https://dashify-frontend-rk1l.onrender.com/",
33-
image: "/projects/dashify.png"
33+
image: "projects/dashify.png"
3434
},
3535
{
3636
title: "Aasaan Retirement",
@@ -40,7 +40,7 @@ const ProjectsSection = () => {
4040
authors: ["Sambhab Roy"],
4141
githubUrl: "https://github.com/samX18-epic/aasan-retirement-final",
4242
liveUrl: "https://retirementaasan.in/",
43-
image: "/projects/aasaan-retirement.png"
43+
image: "projects/aasaan-retirement.png"
4444
}
4545
]
4646

@@ -55,7 +55,7 @@ const ProjectsSection = () => {
5555
{/* Background */}
5656
<div
5757
className="absolute inset-0 bg-cover bg-center bg-no-repeat opacity-10"
58-
style={{ backgroundImage: "url('/bg/pattern-bg-2.jpg')" }}
58+
style={{ backgroundImage: "url('bg/pattern-bg-2.jpg')" }}
5959
/>
6060

6161
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 relative z-10">

src/components/landing-page/SuccessSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const SuccessSection = () => {
5353
{/* Background */}
5454
<div
5555
className="absolute inset-0 bg-cover bg-center bg-no-repeat opacity-10"
56-
style={{ backgroundImage: "url('/bg/space-bg-1.jpg')" }}
56+
style={{ backgroundImage: "url('bg/space-bg-1.jpg')" }}
5757
/>
5858

5959
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 relative z-10">

src/components/landing-page/WingsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const WingsSection = () => {
5252
{/* Background */}
5353
<div
5454
className="absolute inset-0 bg-cover bg-center bg-no-repeat opacity-15 blur-xs"
55-
style={{ backgroundImage: "url('/bg/code-bg-1.jpg')" }}
55+
style={{ backgroundImage: "url('bg/code-bg-1.jpg')" }}
5656
/>
5757

5858
<div className="max-w-7xl z-10 mx-auto px-4 sm:px-6 lg:px-8 py-20">

0 commit comments

Comments
 (0)