Skip to content

Commit fec834b

Browse files
committed
Add responsive layout
1 parent e36253a commit fec834b

File tree

5 files changed

+50
-2
lines changed

5 files changed

+50
-2
lines changed

src/components/core/TopicCard/TopicCard.style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
margin-bottom: 1rem;
44
width: 20rem;
55

6+
@media (max-width: 525px) {
7+
width: 100%;
8+
}
9+
610
&__content {
711
display: flex;
812
flex-direction: column;

src/components/resources/Header/Header.style.scss

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
.header {
2-
width: 100vw;
2+
// width: 100vw;
33
background-color: rgb(255, 255, 255);
44
display: flex;
55
justify-content: space-evenly;
66
align-items: center;
77

8+
@media (max-width: 1100px) {
9+
justify-content: center;
10+
margin: 0;
11+
padding: 0;
12+
}
13+
814
&__container {
915
width: 75rem;
1016
padding-left: calc(5% + 9px);
@@ -14,13 +20,24 @@
1420
justify-content: space-between;
1521
align-items: center;
1622

17-
@media (max-width: 768px) {
23+
@media (max-width: 1100px) {
1824
flex-direction: column;
25+
width: 95%;
26+
}
27+
28+
@media (max-width: 525px) {
29+
padding-left: 0;
30+
padding-right: 0;
1931
}
2032
}
2133

2234
&__search {
2335
margin-top: 2rem;
36+
width: 100%;
37+
@media (max-width: 1100px) {
38+
display: flex;
39+
justify-content: center;
40+
}
2441
}
2542

2643
&__animation {
@@ -45,13 +62,25 @@
4562
font-size: 1.4rem;
4663
color: gray;
4764
}
65+
66+
@media (max-width: 1100px) {
67+
display: flex;
68+
justify-content: center;
69+
align-items: center;
70+
flex-direction: column;
71+
text-align: center;
72+
width: 100%;
73+
}
4874
}
4975

5076
&__left {
5177
display: flex;
5278
justify-content: center;
5379
align-items: center;
5480
width: 34rem;
81+
@media (max-width: 1100px) {
82+
width: 100%;
83+
}
5584
}
5685

5786
&__right {
@@ -60,6 +89,10 @@
6089
align-items: center;
6190
flex-direction: column;
6291
height: 100%;
92+
93+
@media (max-width: 1100px) {
94+
display: none;
95+
}
6396
}
6497
}
6598

src/components/resources/Header/Search/Search.style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
font-size: 1.1rem;
1010
border: 1px solid rgb(205, 205, 205);
1111

12+
@media (max-width: 525px) {
13+
width: 100%;
14+
}
15+
1216
i {
1317
color: rgb(160, 160, 160);
1418
}

src/components/resources/Sidebar/data/SidebarData.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
{
7171
"title": "Plagirism and Cheating",
7272
"path": "/academics/plagirism-and-cheating"
73+
},
74+
{
75+
"title": "Carleton vs Other CS Programs",
76+
"path": "/academics/carleton-cs-vs-other-cs-programs"
7377
}
7478
]
7579
},

src/pages/resources.style.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
display: flex;
1717
align-items: center;
1818
gap: 3rem;
19+
@media (max-width: 420px) {
20+
display: none;
21+
}
1922
}
2023

2124
&__cards {

0 commit comments

Comments
 (0)