Skip to content

Commit af49af0

Browse files
committed
removed bg color default from wrapper and added in index; added yellow background to about-us section and formatting
1 parent 40414bc commit af49af0

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

pages/about.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ export default function AboutUs() {
99
<div className='about-us'>
1010
<RevealContentContainer>
1111
{/* ================================OUR BACKGROUND SECTION============== */}
12-
<Container>
13-
<Title title='Our background' />
12+
{/* <Container> */}
13+
{/* <Title title='Our background' /> */}
1414
<TwoColumn
15+
title="Our background"
1516
content={
1617
<div>
1718
The Web Dev Path project was idealized in 2020 in consequence of
@@ -29,9 +30,9 @@ export default function AboutUs() {
2930
image='/images/svg/square-brackets.svg'
3031
color={primary}
3132
bgColor={primaryAccent}
32-
customInnerClass='about-content'
33+
customInnerClass='our-background'
3334
/>
34-
</Container>
35+
{/* </Container> */}
3536
{/* ================================OUR BACKGROUND SECTION============== */}
3637
</RevealContentContainer>
3738

pages/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Stick from '@/components/decorations/Stick';
33
import TwoColumn from '@/components/containers/TwoColumn';
44
import CardsColumns from '@/components/containers/CardsColumns';
55
import styles from '@/styles/Home.module.scss';
6-
import { white, primary } from '@/styles/TwoColumn.module.scss';
6+
import { white, primary, lightBgColor } from '@/styles/TwoColumn.module.scss';
77
import RevealContentContainer from '@/components/containers/RevealContentContainer';
88

99
export default function Home() {
@@ -17,6 +17,7 @@ export default function Home() {
1717
content='The Web Dev Path is a team of professional developers project that aims to provide a comprehensive path for people who seek to begin their web development journey.'
1818
link='/about'
1919
customBtnClass='inverted-grey'
20+
bgColor={lightBgColor}
2021
/>
2122
</RevealContentContainer>
2223

styles/TwoColumn.module.scss

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
@use './mixins' as *;
33

44
.wrapper {
5-
background-color: $light-bg-color;
5+
// background-color: $light-bg-color;
6+
// background-color: $primary-accent-color;
67

78
.inner {
89
padding: 5rem 0;
@@ -24,6 +25,21 @@
2425
}
2526
}
2627

28+
//added============================
29+
&.our-background {
30+
.inner__image {
31+
flex-basis: 30rem;
32+
// height: 24rem;
33+
.img {
34+
max-width: 24rem;
35+
object-fit: contain;
36+
transform: scale(0.65);
37+
}
38+
}
39+
}
40+
41+
//added============================
42+
2743
&.about-content {
2844
align-items: center;
2945
padding: 0px;
@@ -110,5 +126,6 @@
110126
white: $white;
111127
primary: $primary-content-color;
112128
primaryAccent: $primary-accent-color;
129+
lightBgColor: $light-bg-color;
113130
//kl added export primaryAccent
114131
}

0 commit comments

Comments
 (0)