Skip to content

Commit 6d1776f

Browse files
ARYANSHAH1567ChetanFTW
authored andcommitted
Fixed Responsiveness on Academy Page
Signed-off-by: Aryan Shah <[email protected]>
1 parent 025dfa0 commit 6d1776f

File tree

5 files changed

+59
-49
lines changed

5 files changed

+59
-49
lines changed

src/components/Academy/Enterprise-Section/EnterpriseSection.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ const EnterpriseSectionWrapper = styled.section`
5757
5858
.progress-value {
5959
font-weight: bold;
60-
61-
&.primary {
62-
color: #00b39f;
63-
}
6460
}
6561
}
6662
@@ -80,7 +76,6 @@ const EnterpriseSectionWrapper = styled.section`
8076
display: block;
8177
font-size: 1.5rem;
8278
font-weight: 700;
83-
color: #00b39f;
8479
margin-bottom: 0.25rem;
8580
}
8681
@@ -113,13 +108,6 @@ const EnterpriseSectionWrapper = styled.section`
113108
from { opacity: 0; transform: translateY(20px); }
114109
to { opacity: 1; transform: translateY(0); }
115110
}
116-
117-
.highlight {
118-
background: linear-gradient(135deg, #00b39f, #00d3a9);
119-
-webkit-background-clip: text;
120-
-webkit-text-fill-color: transparent;
121-
background-clip: text;
122-
}
123111
}
124112
125113
p {
@@ -238,7 +226,7 @@ const EnterpriseSection = () => {
238226
</div>
239227
</div>
240228
<div className="audience-text">
241-
<h2>For <span className="highlight">Large Organizations</span></h2>
229+
<h2>For Large Organizations</h2>
242230
{/* <p>
243231
Accelerate your enterprise platform transformation with structured cloud native training, customizable contents, and enterprise-grade analytics to maximize ROI and reduce risk.{" "}
244232
<Link to="/collections/resources/comparison/layer5-academy-vs-moocit">Compare Layer5 Academy with traditional platforms.</Link>

src/components/Academy/Features-Section/AcademyFeaturesCarousel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const DivWrapper = styled.div`
4242
font-size: 1.125rem;
4343
align-items: center;
4444
position: relative;
45-
margin-bottom: 10%;
4645
4746
.left {
4847
text-align: center;
@@ -71,6 +70,7 @@ const DivWrapper = styled.div`
7170
7271
@media only screen and (max-width: 999px) {
7372
padding-block: 3rem;
73+
margin-bottom: 10%;
7474
7575
.left {
7676
margin-bottom: 1rem;
@@ -105,7 +105,7 @@ export default function AcademyFeatureCarousel() {
105105
return (
106106
<DivWrapper>
107107
<div className="left">
108-
<h1>Unlock Your <span className="highlight">Cloud Native</span> Journey</h1>
108+
<h1>Unlock Your Cloud Native Journey</h1>
109109
</div>
110110
<div className="right">
111111
{CONTENT.map((content, i) => (

src/components/Academy/Features-Section/AcademyFeaturesMobileSwiper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const CONTENT = [
3737
img: Track,
3838
description:
3939
"Stay motivated with clear progress tracking as you move forward. Keep an eye on your completed labs, challenges, and milestones, and see how your cloud native skills steadily grow step by step.",
40+
gradient: "four"
4041
}
4142
];
4243

@@ -81,7 +82,7 @@ const AcademyMobileSwiper = () => {
8182
return (
8283
<DivWrapper>
8384
<SwiperContainer style={{ marginBottom: "10%" }}>
84-
<h2 style={{ marginBottom: "2rem" }}>Unlock Your <span className="highlight">Cloud Native</span> Journey</h2>
85+
<h2 style={{ marginBottom: "2rem" }}>Unlock Your Cloud Native Journey</h2>
8586
<Swiper
8687
autoplay={{
8788
delay: 2000,

src/components/Academy/Hero-Section/HeroSection.js

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Row, Col, Container } from "../../../reusecore/Layout";
44
import Button from "../../../reusecore/Button";
55
import Cone from "../../../assets/images/gitops/conelight.svg";
66
import { ReactComponent as AcademyLogo } from "../../../assets/images/academy/academy.svg";
7+
78
const AcademyHeaderWrapper = styled.div`
89
.academy-platform.header {
910
min-height: 40rem;
@@ -19,6 +20,7 @@ const AcademyHeaderWrapper = styled.div`
1920
flex-direction: column;
2021
justify-content: center;
2122
}
23+
2224
.header__title {
2325
color: ${(props) => props.theme.primaryColor};
2426
padding-right: 80px;
@@ -31,6 +33,7 @@ const AcademyHeaderWrapper = styled.div`
3133
background-clip: text;
3234
}
3335
}
36+
3437
.header__title_description {
3538
color: ${(props) => props.theme.tertiaryColor};
3639
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
@@ -39,19 +42,22 @@ const AcademyHeaderWrapper = styled.div`
3942
line-height: 2rem;
4043
margin-bottom: 30px;
4144
}
45+
4246
.header__button_section {
4347
display: flex;
4448
gap: 1.5rem;
4549
align-items: center;
4650
flex-wrap: wrap;
4751
}
52+
4853
.academy-visual {
4954
display: flex;
5055
justify-content: center;
5156
align-items: center;
5257
padding: 1rem 0 2.5rem 0;
5358
min-height: 500px;
5459
}
60+
5561
.cards-container {
5662
position: relative;
5763
width: 100%;
@@ -75,76 +81,108 @@ const AcademyHeaderWrapper = styled.div`
7581
}
7682
}
7783
}
84+
7885
.hero-image-container {
7986
height: 250px;
8087
width: 300px;
8188
position: relative;
82-
display:flex;
89+
display: flex;
8390
align-items: center;
8491
justify-content: center;
8592
}
93+
94+
.academy-logo {
95+
position: absolute;
96+
height: 180px;
97+
width: 180px;
98+
top: 50%;
99+
left: 50%;
100+
transform: translate(-50%, -50%);
101+
fill: white;
102+
}
86103
87104
/* Mobile Styles */
88105
@media screen and (max-width: 768px) {
89106
padding: 2rem 0;
107+
min-height: auto;
108+
90109
91110
.header__content {
92111
text-align: center;
93112
}
94113
95114
.header__title {
96-
font-size: 2.5rem;
115+
font-size: 2rem;
97116
text-align: center;
98-
margin-bottom: 10px;
117+
padding-right: 0;
118+
margin-bottom: 1rem;
99119
}
100120
101121
.header__title_description {
102-
font-size: 1.25rem;
122+
font-size: 1.125rem;
123+
line-height: 1.75rem;
103124
text-align: center;
104-
margin-bottom: 20px;
125+
margin-bottom: 1.5rem;
105126
}
106127
107128
.header__button_section {
108-
display: flex;
109129
justify-content: center;
110130
111131
button {
112132
width: 100%;
113133
max-width: 260px;
114134
}
115135
}
136+
116137
.academy-visual {
117138
margin-top: 1.5rem;
118-
min-height: 430px;
139+
min-height: 300px;
119140
}
141+
120142
.cards-container {
121143
max-width: 360px;
122144
height: 420px;
123145
}
124146
125147
.hero-image-container {
126-
height: 200px;
127-
width: 250px;
128-
margin: 0 auto;
148+
height: 180px;
149+
width: 220px;
150+
margin: 2rem auto;
151+
}
152+
153+
.academy-logo {
154+
height: 140px;
155+
width: 140px;
129156
}
130-
131157
}
158+
132159
/* Tablet Styles */
133160
@media screen and (min-width: 769px) and (max-width: 1024px) {
134161
padding: 3rem 0;
135162
136163
.header__title {
137-
font-size: 3.5rem;
164+
font-size: 3rem;
165+
padding-right: 40px;
138166
}
139167
140-
.header__subtitle {
141-
font-size: 1.5rem;
168+
.header__title_description {
169+
font-size: 1.25rem;
142170
}
143171
144172
.cards-container {
145173
max-width: 420px;
146174
height: 520px;
147175
}
176+
177+
.hero-image-container {
178+
height: 220px;
179+
width: 270px;
180+
}
181+
182+
.academy-logo {
183+
height: 160px;
184+
width: 160px;
185+
}
148186
}
149187
}
150188
`;
@@ -158,7 +196,7 @@ const Header = ({ isDark }) => {
158196
<Col className="col" $lg={7} $md={6}>
159197
<div className="header__content">
160198
<h1 className="header__title">
161-
Learn Cloud Native, <br/><span className="highlight">the Modern Way</span>
199+
Learn Cloud Native, the Modern Way
162200
</h1>
163201

164202
<p className="header__title_description">
@@ -182,7 +220,6 @@ const Header = ({ isDark }) => {
182220
<img src={Cone} className="cone-image"/>
183221
</div>
184222
</Col>
185-
186223
</Row>
187224
</Container>
188225
</div>

src/components/Academy/Learners-Section/LearnerSection.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,15 @@ const LearnerSectionWrapper = styled.section`
9898
box-shadow: ${props => props.isDark ? "0 8px 32px rgba(0, 0, 0, 0.3)" : "0 4px 12px rgba(0, 0, 0, 0.1)"};
9999
transition: all 0.3s ease;
100100
101-
&:hover {
102-
transform: translateY(-5px) scale(1.02);
103-
background: ${props => props.isDark ? "rgba(0, 179, 159, 0.15)" : "rgba(0, 179, 159, 0.05)"};
104-
border-color: rgba(0, 179, 159, 0.4);
105-
box-shadow: ${props => props.isDark ? "0 12px 40px rgba(0, 179, 159, 0.2)" : "0 8px 25px rgba(0, 179, 159, 0.2)"};
106-
}
107-
108101
.stat-number {
109102
display: block;
110103
font-size: 2rem;
111104
font-weight: 800;
112-
color: #00b39f;
113105
margin-bottom: 0.5rem;
114106
transition: all 0.3s ease;
115107
animation: pulse 2s infinite;
116108
}
117109
118-
&:hover .stat-number {
119-
transform: scale(1.1);
120-
color: #00d3a9;
121-
}
122-
123110
.stat-label {
124111
display: block;
125112
font-size: 0.9rem;
@@ -128,9 +115,6 @@ const LearnerSectionWrapper = styled.section`
128115
transition: color 0.3s ease;
129116
}
130117
131-
&:hover .stat-label {
132-
color: #00b39f;
133-
}
134118
135119
@keyframes pulse {
136120
0% { opacity: 1; }
@@ -160,7 +144,7 @@ const LearnerSection = () => {
160144
<LearnerSectionWrapper className="audience-section learners-section fade-in">
161145
<div className="audience-content">
162146
<div className="audience-text">
163-
<h2>For <span className="highlight">Learners</span></h2>
147+
<h2>For Learners</h2>
164148
<p>Whether you're just starting with containers or deepening your microservices architecture knowledge, our comprehensive platform adapts to your learning style and pace.</p>
165149
<ul className="audience-features">
166150
<li>Progressive <a href="https://cloud.layer5.io/academy?contentType=learning-path" target="_blank" rel="noopener noreferrer">learning paths</a> tailored to your experience</li>

0 commit comments

Comments
 (0)