File size: 1,002 Bytes
f54c12d
 
 
 
0cb373e
 
f54c12d
 
 
 
 
0cb373e
 
f54c12d
 
 
 
 
 
 
 
0cb373e
 
f54c12d
 
 
0cb373e
 
f54c12d
 
 
 
0cb373e
f54c12d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Basic Reset */
body, h1, p {
 margin: 0;
 padding: 0;
}

/* Styles for Header */
header {
 padding: 2rem;
 background-color: lightblue;
 text-align: center;
}

/* Main Content Area */
main {
 display: grid;
 grid-template-columns: repeat(12, 1fr);
 gap: 1rem;
 max-width: 120rem;
 margin: 0 auto;
 padding: 2rem;
}

/* Post Section */
.posts {
 grid-column: span 9;
}

.post {
 background-color: lightsalmon;
 padding: 1rem;
 margin-bottom: 2rem;
}

.post time {
 color: grey;
}

/* Sidebar Section */
.sidebar {
 grid-column: span 3;
}

/* Footer */
footer {
 grid-column: span 12;
 padding: 1rem;
 background-color: darkgray;
 text-align: center;
}

/* Media Queries for Responsiveness */
@media only screen and (max-width: 768px) {
 main {
   grid-template-columns:repeat(6, 1fr);
 }
 .posts {
   grid-column: span 4;
 }
 .sidebar {
   grid-column: span 2;
 }
}

@media only screen and (max-width: 500px) {
 main {
   grid-template-columns:1fr;
 }
 .posts, .sidebar {
   grid-column: span 1;
 }
}