Skip to content

Commit 353618a

Browse files
Styling adjustments
1 parent 5fa55ce commit 353618a

File tree

4 files changed

+42
-10
lines changed

4 files changed

+42
-10
lines changed

components/containers/Card.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export default function Card({
1313
}) {
1414
return (
1515
<div
16-
className={customClass ? `${styles.card} ${customClass}` : styles.card}
16+
className={
17+
customClass ? `${styles.card} ${styles[customClass]}` : styles.card
18+
}
1719
>
1820
{image && (
1921
<div className={styles.card__image}>

components/containers/CardsColumns.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default function CardsColumns({
1414
content,
1515
links,
1616
linkText,
17+
customClass,
1718
}) {
1819
return (
1920
<Container>
@@ -31,7 +32,7 @@ export default function CardsColumns({
3132
spaceBetween: 20,
3233
},
3334
1334: {
34-
slidesPerView: titles.length <= 3 ? titles.length : 3,
35+
slidesPerView: titles.length,
3536
spaceBetween: titles.length < 3 ? 75 : 20,
3637
},
3738
}}
@@ -41,16 +42,22 @@ export default function CardsColumns({
4142
<div className={styles.inner__content}>
4243
{images && links && linkText ? (
4344
<Card
45+
key={index}
4446
title={title}
4547
image={images[index]}
4648
altTag={altTags[index]}
4749
content={content[index]}
4850
link={links[index]}
4951
linkText={linkText[index]}
50-
key={index}
52+
customClass={customClass}
5153
/>
5254
) : (
53-
<Card title={title} content={content[index]} key={index} />
55+
<Card
56+
key={index}
57+
title={title}
58+
content={content[index]}
59+
customClass={customClass}
60+
/>
5461
)}
5562
</div>
5663
</SwiperSlide>

pages/about.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ export default function AboutUs() {
9999
titles={['1', '2']}
100100
content={[
101101
'To provide a safe space for juniors to learn how to communicate in a simulated professional environment.',
102-
'To offer more detailed tasks (Issues) and help the developer assimilate the logical mindset required in a structured project, under guidance following the industry’s best practices throughout the entire process.',
102+
'To offer more detailed tasks (GitHub issues) and help the developer assimilate the logical mindset required in a structured project, under guidance following the industry’s best practices throughout the entire process.',
103103
]}
104-
bgColor={primaryAccent}
105104
customClass='our-goals'
106105
/>
107106
</RevealContentContainer>
@@ -110,7 +109,7 @@ export default function AboutUs() {
110109
title='Our purpose'
111110
content={
112111
<div>
113-
To do so, were coding this platform in Next.js. In the short
112+
To do so, we're coding this platform in Next.js. In the short
114113
term, we intend to have a blog where the participants can post
115114
anything related to the web development world.
116115
<br />

styles/Card.module.scss

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
@use './mixins' as *;
33

44
.card {
5-
margin: 1rem 1rem 0 .5rem;
5+
margin: 1rem 1rem 0 0.5rem;
66
padding: 1.5rem;
77
border-radius: 1.5rem;
88
box-shadow: $box-shadow;
99
min-width: 32%;
1010
height: 37rem;
11-
background-color: $primary-accent-color;
1211

1312
@include desktop {
1413
margin: 1.5rem 1.5rem 0 1.5rem;
1514
&:first-child,
1615
&:last-child {
17-
margin: 1.5rem .5rem 0 .5rem;
16+
margin: 1.5rem 0.5rem 0 0.5rem;
1817
}
1918
}
2019

@@ -55,4 +54,29 @@
5554
border-radius: 0.25rem;
5655
}
5756
}
57+
58+
//About Us
59+
&.our-goals {
60+
background-color: $primary-accent-color;
61+
max-height: 30rem;
62+
63+
.title {
64+
font-size: 3.5rem;
65+
text-align: center;
66+
}
67+
68+
@include desktop {
69+
max-height: 37rem;
70+
.title {
71+
font-size: 5rem;
72+
}
73+
74+
.content {
75+
p {
76+
font-size: 1.8rem;
77+
line-height: 2.2rem;
78+
}
79+
}
80+
}
81+
}
5882
}

0 commit comments

Comments
 (0)