Skip to content

Commit 83bf578

Browse files
committed
Fixed up Discord callout spacings.
1 parent 3ec883a commit 83bf578

File tree

4 files changed

+33
-7
lines changed

4 files changed

+33
-7
lines changed

content/_index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,12 +592,14 @@ channel_url = "https://www.youtube.com/@ErlangSolutions"
592592
### Final Callout-1 Section ###############################
593593

594594
[extra.callout1]
595-
title = "![discord logo](/images/discord-logo.png) Join us on<br/>Discord!"
595+
prefix = "![discord logo](/images/discord-logo.png)"
596+
title = "Join us on<br/>Discord!"
596597
content = "https://discord.gg/Uf3PszVHtF"
597598

598599
### Final Callout-2 Section ###############################
599600

600601
[extra.callout2]
602+
prefix = ""
601603
title = "Give yourself to the <span style='color: lightskyblue;'>Lisp</span> side of the Force!"
602604
content = '''
603605
[img-src]: /images/xkcd-lisp-cycles.png

static/css/site.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/site.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,19 @@
161161
@apply mt-20 mb-20;
162162
}
163163

164+
.content-section .closing-callout p {
165+
font-size: 140%;
166+
}
167+
168+
.content-section .closing-callout .prefix-container {
169+
padding-left: 2em;
170+
}
171+
172+
.content-section .closing-callout .button-container {
173+
padding-top: 1em;
174+
padding-right: 2em;
175+
}
176+
164177
footer {
165178
@apply bg-slate-400 dark:bg-slate-950 border-t border-t-slate-700;
166179
}

templates/home/closing.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,26 @@
99
<h1>
1010
{{ callout2.title | markdown(inline=true) | safe }}
1111
</h1>
12-
<p class="flex align-middle text-center">
13-
{{ callout1.title | markdown(inline=true) | safe }}
14-
<a href="{{ callout1.content | markdown(inline=true) | safe }}">
12+
<div class="grid grid-cols-3 gap-4">
13+
<div class="prefix-container">
14+
<p class="flex">
15+
{{ callout1.prefix | markdown(inline=true) | safe }}
16+
</p>
17+
</div>
18+
<div class="title-container">
19+
<p class="flex align-middle text-center">
20+
{{ callout1.title | markdown(inline=true) | safe }}
21+
</p>
22+
</div>
23+
<div class="button-container">
24+
<a href="{{ callout1.content | markdown(inline=true) | safe }}">
1525
<button type="button"
1626
class="ml-2 mt-2 py-2 px-3 inline-flex justify-center items-center gap-2 rounded-md border border-transparent font-semibold bg-yellow-500 text-slate-700 hover:bg-yellow-600 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2 transition-all text-sm dark:focus:ring-offset-gray-800">
1727
Go &raquo;
1828
</button>
19-
</a>
20-
</p>
29+
</a>
30+
</div>
31+
</div>
2132
</div>
2233
</div>
2334

0 commit comments

Comments
 (0)