Skip to content

Commit d4c7f46

Browse files
authored
Merge pull request #27 from Llamaware/footer
attempt css fix
2 parents e3b57c8 + a9dd2f9 commit d4c7f46

File tree

1 file changed

+48
-25
lines changed

1 file changed

+48
-25
lines changed

src/pages/index.astro

Lines changed: 48 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,54 @@ import Member from '../components/Member.astro';
6060
</Layout>
6161

6262
<style lang='scss'>
63-
$asideWidth: 256px;
64-
65-
.main {
66-
display: flex;
67-
flex-direction: row;
68-
gap: 32px;
69-
70-
> main { flex: 1; }
71-
}
72-
73-
aside { width: $asideWidth; }
74-
75-
@media (max-width: 800px) {
76-
.main { flex-direction: column; }
77-
78-
aside {
79-
display: flex;
80-
flex-wrap: wrap;
81-
gap: 8px;
82-
83-
width: unset;
84-
85-
> * { width: $asideWidth; }
86-
}
87-
}
63+
$asideWidth: 256px;
64+
65+
.container {
66+
display: flex;
67+
flex-direction: column;
68+
min-height: 100vh;
69+
}
70+
71+
.main {
72+
display: flex;
73+
flex-direction: row;
74+
gap: 32px;
75+
flex: 1;
76+
77+
> main {
78+
flex: 1;
79+
}
80+
}
81+
82+
aside {
83+
width: $asideWidth;
84+
}
85+
86+
.footer {
87+
margin-top: 32px;
88+
text-align: center;
89+
padding: 16px;
90+
background-color: var(--bg);
91+
border-top: 1px solid var(--accent);
92+
}
93+
94+
95+
@media (max-width: 800px) {
96+
.main {
97+
flex-direction: column;
98+
}
99+
100+
aside {
101+
display: flex;
102+
flex-wrap: wrap;
103+
gap: 8px;
104+
width: unset;
105+
106+
> * {
107+
width: $asideWidth;
108+
}
109+
}
110+
}
88111

89112
section {
90113
h2 {

0 commit comments

Comments
 (0)