Skip to content

Commit 73072b8

Browse files
committed
Add one-column view for projects
1 parent c9b805c commit 73072b8

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

src/components/ProjectTile.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#tile-wrap {
22
display: flex;
3+
flex: 1;
34
flex-direction: column;
45
align-content: center;
56

67
margin: 16px;
7-
width: 45vw;
8+
width: 100%;
89
}
910

1011
#tile {
@@ -56,6 +57,7 @@
5657
#tile #description {
5758
flex: auto;
5859
padding: 0.5vh;
60+
min-width: 285px;
5961
font-size: 16px;
6062
}
6163

src/components/Projects.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,20 @@
1010
display: flex;
1111
flex-direction: row;
1212
margin: 8px 0;
13+
}
14+
15+
#one-col {
16+
display: none;
17+
flex-direction: column;
18+
align-items: center;
19+
}
20+
21+
@media screen and (max-width: 1024px) {
22+
#two-col {
23+
display: none;
24+
}
25+
26+
#one-col {
27+
display: flex;
28+
}
1329
}

src/components/Projects.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export const Projects = () => {
2020
</div>
2121
)}
2222
</div>
23-
{/* {tiles} */}
23+
<div id='one-col'>
24+
{tiles}
25+
</div>
2426
</div>
2527
)
2628
}

0 commit comments

Comments
 (0)