Skip to content

Commit 6a44bd6

Browse files
all
1 parent 20e8da2 commit 6a44bd6

File tree

10 files changed

+94
-45
lines changed

10 files changed

+94
-45
lines changed

package-lock.json

+44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"styled-components": "^6.0.8",
3333
"swiper": "^10.3.1",
3434
"three": "^0.146.0",
35+
"vite-plugin-dynamic-import": "^1.5.0",
3536
"yup": "^1.2.0"
3637
},
3738
"devDependencies": {

public/_redirects

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

src/App.jsx

+25-24
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const App = () => {
3737
clearInterval(timer);
3838
};
3939
}, []);
40+
4041
const router = createBrowserRouter([
4142
{
4243
path: "/",
@@ -52,99 +53,99 @@ const App = () => {
5253
,
5354
},
5455
{
55-
path: "/about",
56+
path: "about",
5657
element: <About />,
5758
},
5859
{
59-
path: "/cultnight",
60+
path: "cultnight",
6061
element: <CultNight />,
6162
},
6263
{
63-
path: "/sponsors",
64+
path: "sponsors",
6465
element: <Sponsor />,
6566
},
6667
{
67-
path: "/getintouch",
68+
path: "getintouch",
6869
element: <GetinTouch />,
6970
},
7071
{
71-
path: "/tech",
72+
path: "tech",
7273
element: <Tech />,
7374
},
7475
{
75-
path: "/cult",
76+
path: "cult",
7677
element: <Cult />,
7778
},
7879
{
79-
path: "/nexus",
80+
path: "nexus",
8081
element: <Nexus />,
8182
},
8283
{
83-
path: "/infinity",
84+
path: "infinity",
8485
element: <Infinity />,
8586
},
8687
{
87-
path: "/infinity/team",
88+
path: "infinity/team",
8889
element: <Infinityteam />,
8990
},
9091
{
91-
path: "/infinity/pastevents",
92+
path: "infinity/pastevents",
9293
element: <Infinitypastevent />,
9394
},
9495
{
95-
path: "/infinity/bitlegion",
96+
path: "infinity/bitlegion",
9697
element: <Bitlegion />,
9798
},
9899
{
99-
path: "/infinity/halloffame",
100+
path: "infinity/halloffame",
100101
element: <InfinityHalloffame />,
101102
},
102103
{
103-
path: "/lockout",
104+
path: "lockout",
104105
element: <Lockout />,
105106
},
106107
{
107-
path: "/lockout/about",
108+
path: "lockout/about",
108109
element: <LockoutAbout />,
109110
},
110111
{
111-
path: "/lockout/guidelines",
112+
path: "lockout/guidelines",
112113
element: <LockoutGuidelines />,
113114
},
114115
{
115-
path: "/lockout/team",
116+
path: "lockout/team",
116117
element: <Infinityteam />,
117118
},
118119
{
119-
path: "/rofies1",
120+
path: "rofies1",
120121
element: <Rofies1 />,
121122
},
122123
{
123-
path: "/cognition",
124+
path: "cognition",
124125
element: <Cognition />,
125126
},
126127
{
127-
path: "/aawazeaawam",
128+
path: "aawazeaawam",
128129
element: <AawazEAawam />,
129130
},
130131
{
131-
path: "/frameflick",
132+
path: "frameflick",
132133
element: <FrameFlick />,
133134
},
134135
{
135-
path: "/anurag",
136+
path: "anurag",
136137
element: <Anurag />,
137138
},
138139
{
139-
path: "/nrityanova",
140+
path: "nrityanova",
140141
element: <NrityaNova />,
141142
},
142143
{
143-
path: "/shipwreck",
144+
path: "shipwreck",
144145
element: <ShipWreck />,
145146
},
146147
{
147-
path: "/storyquest",
148+
path: "storyquest",
148149
element: <StoryQuest />,
149150
},
150151
]);

src/components/CogNav.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ const CogNav = () => {
116116
<a href="#about" onClick={closeMobileMenu}>
117117
<li>ABOUT</li>
118118
</a>
119-
<a href="#horizon" onClick={closeMobileMenu}>
120-
<li>ANURAG</li>
119+
<a href="#qrc" onClick={closeMobileMenu}>
120+
<li>Q-RIOCITY</li>
121121
</a>
122122
<a href="#guidelines" onClick={closeMobileMenu}>
123123
<li>GUIDELINES</li>
124124
</a>
125-
<a href="#guidelines" onClick={closeMobileMenu}>
125+
<a href="#getintouch" onClick={closeMobileMenu}>
126126
<li>GET IN TOUCH</li>
127127
</a>
128128
</ul>

src/components/Footer.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Footer = ({ textColor, invert }) => {
2020
<a href="mailto:[email protected]"> {/* Updated link */}
2121
<AiFillMail className={`cursor-pointer ${iconSize}`} color={textColor} />
2222
</a>
23-
<a href="https://www.instagram.com/iconclaveiiitp/"> {/* Updated link */}
23+
<a href="https://www.instagram.com/iconclave_iiitp/"> {/* Updated link */}
2424
<AiFillInstagram className={`cursor-pointer ${iconSize}`} color={textColor} />
2525
</a>
2626
<a href="https://www.linkedin.com/company/iconclave/"> {/* Updated link */}

src/components/NexusNav.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ const NexusNav = () => {
106106
<a href="#about" onClick={closeMobileMenu}>
107107
<li>ABOUT</li>
108108
</a>
109-
<a href="#horizon" onClick={closeMobileMenu}>
110-
<li>ANURAG</li>
109+
<a href="#localhost" onClick={closeMobileMenu}>
110+
<li>LOCALHOST</li>
111111
</a>
112112
<a href="#guidelines" onClick={closeMobileMenu}>
113113
<li>GUIDELINES</li>
114114
</a>
115-
<a href="#guidelines" onClick={closeMobileMenu}>
115+
<a href="getintouch" onClick={closeMobileMenu}>
116116
<li>GET IN TOUCH</li>
117117
</a>
118118
</ul>

src/pages/Cult.jsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ const Cult = () => {
6969
/>
7070
</a>
7171
</div>
72-
<div className="flex-grow">
72+
<div className="flex-grow lg:-mt-40 mb-4">
7373
<img
7474
src="/images/cult_head.png"
75-
alt="Technical Events"
76-
className="mx-auto sm:px-4 md:px-20 lg:px-20"
75+
alt="Cultural Events"
76+
className="mx-auto sm:px-4 md:px-20 lg:px-32"
7777
/>
78-
<div className="-mt-28 lg:-mt-44 px-10 py-24">
78+
<div className="-mt-28 lg:-mt-48 px-10 py-24 -mb-32">
7979
{/* Conditionally render Swiper based on screen size */}
8080
{window.innerWidth <= 1000 ? ( // Mobile view
8181
<div
8282
className="mobile-slides"
83-
style={{ maxHeight: "75vh", overflowY: "auto" }}
83+
style={{ maxHeight: "47vh", overflowY: "auto" }}
8484
>
8585
<SwiperSlide className="rounded-3xl">
8686
<a href="/nrityanova">
@@ -129,7 +129,7 @@ const Cult = () => {
129129
</a>
130130
</SwiperSlide>
131131
<SwiperSlide className="rounded-3xl">
132-
<a href="/story">
132+
<a href="/storyquest">
133133
<img
134134
src="./images/story.png"
135135
alt=""
@@ -149,7 +149,7 @@ const Cult = () => {
149149
</div>
150150
) : (
151151
// Larger screens (iPad and laptop)
152-
<div className="desktop-swiper">
152+
<div className="desktop-swiper lg:-mb-32">
153153
<Swiper
154154
slidesPerView={3}
155155
spaceBetween={30}
@@ -216,7 +216,7 @@ const Cult = () => {
216216
</a>
217217
</SwiperSlide>
218218
<SwiperSlide className="rounded-3xl">
219-
<a href="/story">
219+
<a href="/storyquest">
220220
<img
221221
src="./images/story.png"
222222
alt=""

src/pages/Tech.jsx

+6-5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const Tech = () => {
4949
{/* <h1 className="text-white text-9xl p-14 font-octobercrow tracking-wider">
5050
Technical Events
5151
</h1> */}
52+
<div className="absolute"></div>
5253
<div className="flex justify-between space-x">
5354
<a href="/">
5455
<img
@@ -65,18 +66,18 @@ const Tech = () => {
6566
/>
6667
</a>
6768
</div>
68-
<div className="flex-grow">
69+
<div className="flex-grow lg:-mt-40 mb-4">
6970
<img
7071
src="/images/tech_head.png"
7172
alt="Technical Events"
7273
className="mx-auto sm:px-4 md:px-20 lg:px-24"
7374
/>
74-
<div className="-mt-28 lg:-mt-60 px-10 py-24">
75+
<div className="-mt-28 lg:-mt-60 px-10 py-24 -mb-32">
7576
{/* Conditionally render Swiper based on screen size */}
76-
{window.innerWidth <= 768 ? ( // Mobile view
77+
{window.innerWidth <= 1000 ? ( // Mobile view
7778
<div
7879
className="mobile-slides"
79-
style={{ maxHeight: "75vh", overflowY: "auto" }}
80+
style={{ maxHeight: "47vh", overflowY: "auto" }}
8081
>
8182
<SwiperSlide className="rounded-3xl">
8283
<a href="/nexus">
@@ -117,7 +118,7 @@ const Tech = () => {
117118
</div>
118119
) : (
119120
// Larger screens (iPad and laptop)
120-
<div className="desktop-swiper">
121+
<div className="desktop-swiper lg:-mb-32">
121122
<Swiper
122123
slidesPerView={3}
123124
spaceBetween={30}

vite.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
3+
import dynamicImport from 'vite-plugin-dynamic-import'
34

45
// https://vitejs.dev/config/
56
export default defineConfig({
6-
plugins: [react()],
7+
plugins: [react() , dynamicImport()],
78
})

0 commit comments

Comments
 (0)