Skip to content

Commit a4c1f02

Browse files
committed
added yellow section css below about-us
1 parent 843b72f commit a4c1f02

File tree

2 files changed

+41
-39
lines changed

2 files changed

+41
-39
lines changed

pages/about.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import RevealContentContainer from '@/components/containers/RevealContentContain
22
// import Title from '@/components/snippets/Title';
33
import TwoColumn from '@/components/containers/TwoColumn';
44
import { white, primary, primaryAccent } from '@/styles/TwoColumn.module.scss';
5-
import Container from '@/components/containers/Container';
5+
// import Container from '@/components/containers/Container';
66

77
export default function AboutUs() {
88
return (
99
<div className='about-us'>
1010
<RevealContentContainer>
11-
{/* ================================OUR BACKGROUND SECTION============== */}
11+
{/* ================================FIRST ABOUT SECTION============== */}
1212
{/* <Container> */}
1313
{/* <Title title='Our background' /> */}
1414
<TwoColumn
@@ -32,11 +32,10 @@ export default function AboutUs() {
3232
customInnerClass='our-background'
3333
/>
3434
{/* </Container> */}
35-
{/* ================================OUR BACKGROUND SECTION============== */}
3635
</RevealContentContainer>
3736

3837
<RevealContentContainer>
39-
<Container>
38+
{/* <Container> */}
4039
{/* <Title title='Peer reviews' /> */}
4140
<TwoColumn
4241
title='Peer reviews'
@@ -96,9 +95,11 @@ export default function AboutUs() {
9695
bgColor={white}
9796
customInnerClass='about-content'
9897
/>
99-
</Container>
98+
{/* </Container> */}
10099
</RevealContentContainer>
101100

101+
{/* ================================FIRST ABOUT SECTION============== */}
102+
102103
{/* <RevealContentContainer>
103104
<Container>
104105
<Title title="Our goals" />

styles/TwoColumn.module.scss

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,11 @@
2525
}
2626
}
2727

28-
//bracket img needs to be made smaller for mobile
29-
30-
//added============================
31-
&.our-background {
32-
padding-bottom: 0;
33-
.inner__content {
34-
// @include desktop-breakpoint-minus {
35-
// margin-bottom: 0;
36-
// }
37-
.content {
38-
max-width: fit-content;
39-
}
40-
flex-basis: calc(100% - 34rem);
41-
}
42-
43-
.inner__image {
44-
flex-basis: 30rem;
45-
// height: 24rem;
46-
.img {
47-
max-width: 24rem;
48-
object-fit: contain;
49-
transform: scale(0.65);
50-
}
51-
}
52-
53-
}
54-
55-
//added============================
56-
5728
&.about-content {
58-
align-items: center;
59-
padding: 0px;
60-
width: 100%;
61-
align-items: flex-start;
29+
// align-items: center;
30+
// padding: 0px;
31+
// width: 100%;
32+
// align-items: flex-start;
6233

6334
.inner__content {
6435
@include desktop-breakpoint-minus {
@@ -67,11 +38,12 @@
6738
.content {
6839
max-width: fit-content;
6940
}
70-
flex-basis: calc(100% - 24rem);
41+
flex-basis: calc(100% - 34rem);
7142
}
7243
.inner__image {
7344
flex-basis: 24rem;
7445
height: 24rem;
46+
transform: translateY(15%);
7547
.img {
7648
max-width: 24rem;
7749
object-fit: contain;
@@ -127,6 +99,35 @@
12799
}
128100
}
129101

102+
//added============================
103+
&.our-background {
104+
padding-bottom: 0;
105+
.inner__content {
106+
@include desktop-breakpoint-minus {
107+
margin-bottom: 0;
108+
}
109+
.content {
110+
max-width: fit-content;
111+
}
112+
flex-basis: calc(100% - 34rem);
113+
}
114+
115+
.inner__image {
116+
flex-basis: 30rem;
117+
// height: 24rem;
118+
119+
120+
.img {
121+
max-width: 50rem;
122+
object-fit: contain;
123+
transform: scale(0.5) translateY(-17%);
124+
}
125+
}
126+
127+
}
128+
129+
//added============================
130+
130131
@include desktop {
131132
display: flex;
132133
justify-content: space-between;

0 commit comments

Comments
 (0)