Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/Pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,40 @@ function Home() {
</div>
</section>

{/* Achievements Section */}
<section className = "achievements-section section" >
<div className="container">
<div className="section-header">
<h2 className="text-center">Competitions & Achievements</h2>
<p className ="text-center subtitle">
A legacy of excellence in autonomous underwater robotics competitions. Subjugator has consistently demonstrated superior performance and innovation on the global stage.
</p>
</div>
<div className="carousel-wrapper">
<div className= "carousel-track">
{[
{ season: "Fall 2024", title: "Winner", place: "1st Place" },
{ season: "Summer 2023", title: "Finalist", place: "2nd Place" },
{ season: "Spring 2022", title: "Champion", place: "1st Place" },
{ season: "Fall 2021", title: "Top 3", place: "3rd Place" },
].map((item, index) => (
<div className= "pentagon-badge" key={index}>
<div className="badge-ribbon">
{item.place}
</div>
<div className="badge-content">
<h3>{item.title}</h3>
<p>{item.season}</p>
</div>
</div>
))}
</div>
</div>
</div>
</section>



{/* Latest Updates */}
<section className="updates-section section">
<div className="container">
Expand Down
116 changes: 116 additions & 0 deletions src/styles/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
transition: opacity 1.5s ease;
}


.hero-background::after {
content: "";
position: absolute;
Expand Down Expand Up @@ -385,6 +386,121 @@
font-weight: 700;
}

/* Achievements Section with Glow effect */
.achievements-section {
padding: 4rem 2rem;
background-color: #0a0a1a;
}

.section-header {
margin-bottom: 2rem;
text-align: center;
}

.section-header h2 {
font-size: 2.5rem;
font-weight: 700;
color: #00d4ff;
}

.section-header .subtitle {
font-size: 1.1rem;
color: #cccccc;
max-width: 700px;
margin: 0 auto;
line-height: 1.6;
}

.carousel-wrapper {
overflow-x: auto;
padding-bottom: 1rem;
}

.carousel-track {
display: flex;
gap: 2rem;
padding: 1rem 0;
scroll-snap-type: x mandatory;
align-items: flex-start;
}
.pentagon-badge {
background: linear-gradient(145deg, #0d1b3d, #1f3b70);
color: #ffffff;
padding: 4rem 1.5rem 2.5rem 1.5rem;
min-width: 240px;
max-width: 260px;
scroll-snap-align: start;
flex-shrink: 0;
text-align: center;
position: relative;
border-radius: 16px;
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow: hidden;
clip-path: polygon(
0 0,
100% 0,
100% 80%,
75% 100%,
25% 100%,
0 80%
);
border: 2px solid #00d4ff;
box-shadow: 0 0 20px rgba(0, 212, 255, 0.7), 0 0 35px rgba(0, 212, 255, 0.5);
}

.pentagon-badge::after {
content: "🏆";
font-size: 4rem;
color: gold;
display: block;
text-align: center;
margin-bottom: 1rem;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
position: relative;
top: 0;
z-index: 1;
}

.pentagon-badge::before {
content: "";
position: absolute;
top: -6px;
left: -6px;
width: calc(100% + 12px);
height: calc(100% + 12px);
border-radius: 16px;
clip-path: polygon(
0 0,
100% 0,
100% 80%,
75% 100%,
25% 100%,
0 80%
);
border: 2px solid #00d4ff;
box-shadow: 0 0 15px #00d4ff, 0 0 25px #00ffff, 0 0 35px #007acc;
z-index: -1;
opacity: 0.8;
animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
0% {
opacity: 0.4;
box-shadow: 0 0 10px #00d4ff, 0 0 20px #00ffff, 0 0 30px #007acc;
}
50% {
opacity: 1;
box-shadow: 0 0 15px #00d4ff, 0 0 25px #00ffff, 0 0 35px #007acc;
}
100% {
opacity: 0.4;
box-shadow: 0 0 10px #00d4ff, 0 0 20px #00ffff, 0 0 30px #007acc;
}
}

/* Updates section */
.updates-section {
background-color: var(--color-background);
Expand Down