Skip to content

Commit 8044150

Browse files
authored
Merge pull request #42 from samuel-skean/main
Revert "Centered QR codes."
2 parents ad6687c + 2b63459 commit 8044150

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed

frontend/main.css

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ ul {
110110

111111
/* Hide scrollbar */
112112
body::-webkit-scrollbar {
113-
width: 0;
113+
width: 0 !important;
114114
}
115115
body {
116116
overflow: -moz-scrollbars-none;
@@ -135,11 +135,9 @@ body {
135135
max-height: 100%;
136136
border: 1px solid #000000;
137137
display: grid;
138-
grid-template-areas: "time time time weather weather" "date date date date date" "qr-code-area qr-code-area qr-code-area qr-code-area qr-code-area" "switcher switcher switcher switcher switcher" "footer footer footer footer footer";
138+
grid-template-areas: "time time time weather weather" "date date date date date" "acm-discord-qr-code-label acm-discord-qr-code lug-discord-qr-code-label lug-discord-qr-code messages" "switcher switcher switcher switcher switcher" "footer footer footer footer footer";
139139
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
140140
grid-template-rows: 0.6fr 0.2fr 0.9fr 4fr 0.18fr;
141-
padding: 25px;
142-
143141
#time {
144142
grid-area: time;
145143
}
@@ -153,31 +151,25 @@ body {
153151
grid-area: switcher;
154152
overflow: hidden;
155153
}
156-
#qr-code-area {
157-
grid-area: "qr-code-area";
158-
/* TODO: Fix this ugliness. */
159-
width: calc(1080px - 25px - 25px);
160-
161-
display: flex;
162-
flex-direction: row;
163-
justify-content: space-evenly;
164-
165-
#acm-discord-qr-code-label {
166-
place-self: center;
167-
line-height: inherit;
168-
text-align: center;
169-
}
170-
#acm-discord-qr-code {
171-
place-self: center;
172-
}
173-
#lug-discord-qr-code-label {
174-
place-self: center;
175-
line-height: inherit;
176-
text-align: center;
177-
}
178-
#lug-discord-qr-code {
179-
place-self: center;
180-
}
154+
#acm-discord-qr-code-label {
155+
grid-area: acm-discord-qr-code-label;
156+
place-self: center;
157+
line-height: inherit;
158+
text-align: center;
159+
}
160+
#acm-discord-qr-code {
161+
grid-area: acm-discord-qr-code;
162+
place-self: center;
163+
}
164+
#lug-discord-qr-code-label {
165+
grid-area: lug-discord-qr-code-label;
166+
place-self: center;
167+
line-height: inherit;
168+
text-align: center;
169+
}
170+
#lug-discord-qr-code {
171+
grid-area: lug-discord-qr-code;
172+
place-self: center;
181173
}
182174
#footer {
183175
grid-area: footer;
@@ -186,7 +178,7 @@ body {
186178

187179
/* Switcher */
188180
#switcher {
189-
margin-bottom: 100px;
181+
margin: 0px 0px 100px 0px;
190182
position: relative;
191183
& > div {
192184
width: 100%;
@@ -196,6 +188,10 @@ body {
196188
}
197189
}
198190

191+
.wrapper {
192+
padding: 25px;
193+
}
194+
199195
#time {
200196
font-size: 4.5em;
201197
}
@@ -330,6 +326,10 @@ img.qrCode {
330326
height: 200px;
331327
}
332328

329+
#app-repo-qr-code {
330+
display: none;
331+
}
332+
333333
#footer {
334334
text-align: center;
335335
font-size: 0.5em;

views/home.pug

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ block content
4040
#cta.tracker
4141
ul#bus.tracker
4242
ul#train.tracker
43-
44-
div#qr-code-area
45-
div.qrCode.qrCodeLabel#acm-discord-qr-code-label ACM:
46-
a.qrCode#acm-discord-qr-code(href=qrCodeUrls['acmDiscord'])
47-
img.qrCode(src="/qr/acmDiscord.png" alt="QR code for ACM Discord Server")
48-
div.qrCode.qrCodeLabel#lug-discord-qr-code-label LUG:
49-
a.qrCode#lug-discord-qr-code(href=qrCodeUrls['lugDiscord'])
50-
img.qrCode(src="/qr/lugDiscord.png" alt="QR code for LUG Discord Server")
43+
44+
div.qrCode.qrCodeLabel#acm-discord-qr-code-label ACM:
45+
a.qrCode#acm-discord-qr-code(href=qrCodeUrls['acmDiscord'])
46+
img.qrCode(src="/qr/acmDiscord.png" alt="QR code for ACM Discord Server")
47+
div.qrCode.qrCodeLabel#lug-discord-qr-code-label LUG:
48+
a.qrCode#lug-discord-qr-code(href=qrCodeUrls['lugDiscord'])
49+
img.qrCode(src="/qr/lugDiscord.png" alt="QR code for LUG Discord Server")

0 commit comments

Comments
 (0)