Skip to content

Commit b265f1a

Browse files
Merge pull request #15 from stiefeljackal/refactor/dl-infobox
tweak(metadata): change from ul to dl format
2 parents 418d7e7 + 256619b commit b265f1a

File tree

3 files changed

+43
-8
lines changed

3 files changed

+43
-8
lines changed

public/stylesheets/style.css

+23
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,29 @@
1717
font-family: "Poppins", sans-serif;
1818
}
1919

20+
.infobox {
21+
list-style-type: disc;
22+
padding-inline-start: 40px;
23+
}
24+
25+
.infobox__row {
26+
display: list-item;
27+
}
28+
29+
.infobox__heading,
30+
.infobox__details {
31+
display: inline;
32+
}
33+
34+
.infobox__heading {
35+
color: var(--text-bright);
36+
font-weight: 600;
37+
}
38+
39+
.infobox__details {
40+
margin-left: 0;
41+
}
42+
2043
.btn {
2144
appearance: button;
2245
border-radius: 6px;

views/session.pug

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ block content
1515
.center
1616
img(src=thumbnailUrl alt=`A preview image of the '${title}' session.`)
1717

18-
ul
19-
li #[strong Host:] #{hostUsername}
20-
li #[strong Version:] #{appVersion}
21-
li #[strong Users (#{totalJoinedUsers}/#{maxUsers}):] #{sessionUsers.map(user => user.username).join(", ")}
18+
dl.infobox
19+
.infobox__row
20+
dt.infobox__heading Host:
21+
dd.infobox__details #{hostUsername}
22+
.infobox__row
23+
dt.infobox__heading Version:
24+
dd.infobox__details #{appVersion}
25+
.infobox__row
26+
dt.infobox__heading Users (#{totalJoinedUsers}/#{maxUsers}):
27+
dd.infobox__details #{sessionUsers.map(user => user.username).join(", ")}
2228
div.center
2329
a.btn(href=`ressession:///${sessionId}`) Join Session!
2430
p.center

views/world.pug

+10-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ block content
1414
.center
1515
img(src=thumbnailUri alt=`A preview image of the '${title}' world.`)
1616

17-
ul
18-
li #[strong By:] #{ownerName}
19-
li #[strong Description:] #{description}
20-
li #[strong Tags:] #{tags.join(", ")}
17+
dl.infobox
18+
.infobox__row
19+
dt.infobox__heading By:
20+
dd.infobox__details #{ownerName}
21+
.infobox__row
22+
dt.infobox__heading Description:
23+
dd.infobox__details #{description}
24+
.infobox__row
25+
dt.infobox__heading Tags:
26+
dd.infobox__details #{tags.join(", ")}
2127
div.center
2228
a.btn(href=`resrec:///${ownerId}/${id}`) Open World!
2329
p.center

0 commit comments

Comments
 (0)