Skip to content

Commit 69caacd

Browse files
authored
Merge branch 'Pull-Request-Community:staging' into staging
2 parents d9dc2f7 + fb8c805 commit 69caacd

11 files changed

Lines changed: 111 additions & 44 deletions

File tree

components/buttons/basicButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const BasicButton = ({ children, className }: BasicButtonProps) => {
99
user-select: none;
1010
cursor: pointer;
1111
color: white;
12-
font-size: 1.6rem;
12+
font-size: 1rem;
1313
border: none;
1414
border-radius: 64px;
1515
background-color: var(--primary);

components/buttons/socialButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const SocialButton = ({ children, className }: BasicButtonProps) => {
99
user-select: none;
1010
cursor: pointer;
1111
color: white;
12-
font-size: 2.4rem;
12+
font-size: 1.5rem;
1313
border: none;
1414
border-radius: 100%;
1515
padding: 10px 0;

components/description/description.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
height: max-content;
88
display: flex;
99
flex-direction: column;
10-
font-size: 1.6rem; // Based on 10px.
10+
font-size: 1rem; // Based on 16px.
1111
background-color: var(--background-description);
1212
box-shadow: 0 0 10px 5px rgb(0, 0, 0, 0.2);
1313
padding: 95px 25px 97px;

components/layout/navbar/navbar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const Navbar = ({ DesHeight }) => {
8888
</div>
8989
<Link shallow href="/">
9090
<a className={className}>
91-
<Img className="inner-logo" src="/images/logo-2.0.svg" />
91+
<Img className="inner-logo" layout="fill" src="/images/logo-2.0.svg" />
9292
</a>
9393
</Link>
9494
</div>
@@ -165,13 +165,13 @@ const Navbar = ({ DesHeight }) => {
165165
}
166166
167167
.navbar__title {
168-
font-size: 2.2rem;
168+
font-size: 1.375rem;
169169
}
170170
171171
.navbar__navs {
172172
display: flex;
173173
align-items: center;
174-
font-size: 2.2rem;
174+
font-size: 1.375rem;
175175
}
176176
177177
.navbar__tabs {
@@ -223,7 +223,7 @@ const Navbar = ({ DesHeight }) => {
223223
}
224224
225225
.navbar__btn > span {
226-
font-size: 1.8rem;
226+
font-size: 1.125rem;
227227
}
228228
.navbar__logo {
229229
margin: 48px 0 0 -10px;

components/personCard/personCard.module.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
margin: 0 2px;
4848

4949
& > svg {
50-
width: 3rem;
50+
width: 1.875rem;
5151
transition: all 0.2s ease-in;
5252

5353
&:hover {
@@ -59,13 +59,13 @@
5959
}
6060

6161
&__headline {
62-
font-size: 4.8rem;
62+
font-size: 3rem;
6363
font-weight: lighter;
6464
line-height: 1;
6565
}
6666

6767
&__desc {
68-
font-size: 1.6rem;
68+
font-size: 1rem;
6969
transform: translateY(10px);
7070
}
7171

@@ -92,16 +92,16 @@
9292
}
9393

9494
&__headline {
95-
font-size: 2.8rem;
95+
font-size: 1.75rem;
9696
}
9797

9898
&__desc {
99-
margin-top: 1rem;
99+
margin-top: 0.625rem;
100100
}
101101

102102
&__icons {
103103
& > a > svg {
104-
width: 2.1rem;
104+
width: 1.3125rem;
105105
}
106106
}
107107
}

components/projectPage/ProjectPage.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
.description {
34-
font-size: 1.6rem; // Based on 10px.
34+
font-size: 1rem; // Based on 16px.
3535
}
3636

3737
.infoContainer {

components/typography/title.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Title = ({ children, center, className, ...rest }: TitleProps) => {
88

99
<style jsx>{`
1010
.Title {
11-
font-size: ${fontSize ?? '3.8rem'};
11+
font-size: ${fontSize ?? '2.375rem'};
1212
line-height: 1.8;
1313
font-weight: bold;
1414
text-align: ${center ?? 'right'};

pages/index.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { GetStaticProps } from 'next';
2-
import Description from '../components/description/Description';
32
import Layout from '../components/layout/layout';
43
import { PersonCard } from '../components/personCard/personCard';
54
import { getPeople, IPerson } from '../services/people';
@@ -14,12 +13,10 @@ interface IHomeProps {
1413
export default function Home({ people }: IHomeProps) {
1514
return (
1615
<Layout descriptionText={MainPageDescription()}>
17-
<div className={styles.container}>
18-
<div className={styles.cards__wrapper}>
19-
{people.map((person, i) => (
20-
<PersonCard key={person.name + i} person={person} />
21-
))}
22-
</div>
16+
<div className={styles.cards__wrapper}>
17+
{people.map((person, i) => (
18+
<PersonCard key={person.name + i} person={person} />
19+
))}
2320
</div>
2421
</Layout>
2522
);

styles/Home.module.scss

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
@import "media";
22

3-
.container {
4-
width: 100%;
3+
.cards__wrapper {
4+
display: grid;
5+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
6+
grid-auto-rows: 1fr;
7+
gap: 30px 45px;
8+
justify-items: center;
9+
margin-bottom: 100px;
10+
max-width: 1280px;
11+
margin: -24px auto 0;
12+
}
513

14+
@media screen and (max-width: 1280px) {
615
.cards__wrapper {
7-
display: grid;
8-
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
9-
grid-auto-rows: 1fr;
10-
gap: 30px 45px;
11-
justify-items: center;
1216
padding: 0 25px;
13-
margin: 0 auto;
14-
max-width: 1280px;
15-
margin-bottom: 100px;
16-
}
17-
}
18-
19-
@media screen and (max-width: 600px) {
20-
.container {
21-
width: 100%;
22-
23-
.cards__wrapper {
24-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
25-
}
2617
}
2718
}

styles/globals.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url("https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600&display=swap");
1+
@import "./typography.scss";
22

33
* {
44
box-sizing: border-box;
@@ -18,7 +18,6 @@ html {
1818
direction: rtl;
1919
background-color: var(--background-color);
2020
color: var(--text);
21-
font-size: 10px;
2221

2322
@media screen and (max-width: 600px) {
2423
font-size: 9px;

0 commit comments

Comments
 (0)