Skip to content

Commit 37e9560

Browse files
committed
Added rerouting to index.html
1 parent 133ee82 commit 37e9560

16 files changed

Lines changed: 40 additions & 22 deletions

Source code/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
8-
"build": "vite build",
9-
"build:dev": "vite build --mode development",
10-
"lint": "eslint .",
11-
"preview": "vite preview"
7+
"dev": "bunx vite",
8+
"build": "bunx vite build",
9+
"build:dev": "bunx vite build --mode development",
10+
"lint": "bunx eslint .",
11+
"preview": "bunx vite preview"
1212
},
1313
"dependencies": {
1414
"@hookform/resolvers": "^3.9.0",

Source code/public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

Source code/public/placeholder.svg

Lines changed: 1 addition & 1 deletion
Loading

Source code/src/components/CircuitPattern.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const CircuitPattern: React.FC = () => {
2626
ref={svgRef}
2727
viewBox={`0 0 ${window.innerWidth} ${window.innerHeight}`}
2828
preserveAspectRatio="xMidYMid slice"
29-
xmlns="http://www.w3.org/2000/svg"
29+
xmlns="https://www.w3.org/2000/svg"
3030
style={{
3131
width: "100%",
3232
height: "100%",

Source code/src/components/EventCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const EventCard: React.FC<EventCardProps> = ({ event }) => {
8484
height="120"
8585
viewBox="0 0 120 120"
8686
fill="none"
87-
xmlns="http://www.w3.org/2000/svg"
87+
xmlns="https://www.w3.org/2000/svg"
8888
className="opacity-50"
8989
>
9090
{/* Confetti pieces */}

Source code/src/components/ProjectCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project }) => {
4545
height="120"
4646
viewBox="0 0 120 120"
4747
fill="none"
48-
xmlns="http://www.w3.org/2000/svg"
48+
xmlns="https://www.w3.org/2000/svg"
4949
className="opacity-50"
5050
>
5151
{/* Circuit Board Base */}

Source code/src/components/TeamMember.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const TeamMember: React.FC<TeamMemberProps> = ({
5757
height="120"
5858
viewBox="0 0 120 120"
5959
fill="none"
60-
xmlns="http://www.w3.org/2000/svg"
60+
xmlns="https://www.w3.org/2000/svg"
6161
className="opacity-50"
6262
>
6363
{/* Fun character design */}

Source code/src/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@
122122

123123
.circuit-pattern {
124124
@apply absolute inset-0 opacity-10 pointer-events-none;
125-
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333351' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
126-
url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333351' fill-opacity='0.2'%3E%3Cpath d='M50 50v-10h-40v10H0v10h10v10h10V60h10V50H50zm0-40V0H40v10H30v10h10v10h10V20h10V10H50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
125+
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='https://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333351' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
126+
url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='https://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333351' fill-opacity='0.2'%3E%3Cpath d='M50 50v-10h-40v10H0v10h10v10h10V60h10V50H50zm0-40V0H40v10H30v10h10v10h10V20h10V10H50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
127127
background-size: 60px 60px, 80px 80px;
128128
}
129129

Source code/src/utils/mediaUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const getImagePath = (
2929
filename: string
3030
): string => {
3131
// If the path already contains a full URL or starts with /
32-
if (filename.startsWith('http') || filename.startsWith('/')) {
32+
if (filename.startsWith('https') || filename.startsWith('/')) {
3333
return filename;
3434
}
3535
return `${MEDIA_PATHS[category]}${filename}`;
@@ -83,7 +83,7 @@ export const getPlaceholderImage = (
8383
*/
8484
export const getSponsorLogoPath = (filename: string): string => {
8585
// If the filename already contains a full path (e.g., /lovable-uploads/...)
86-
if (filename.startsWith("/") || filename.startsWith("http")) {
86+
if (filename.startsWith("/") || filename.startsWith("https")) {
8787
return filename;
8888
}
8989

Source code/vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/(.*)",
5+
"destination": "/index.html"
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)