Now it works. Thanks to Twitch chat for helping me realize that flex-col changes how justify works because that's so fun.
This commit is contained in:
parent
4b18e24f1b
commit
931dbe3f9e
3 changed files with 37 additions and 28 deletions
|
|
@ -6,15 +6,15 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
@apply flex flex-col gap-4 p-0 min-h-screen bg-gray-200 text-black dark:bg-gray-900 dark:text-gray-50;
|
@apply flex flex-col items-center gap-4 p-0 min-h-screen bg-gray-200 text-black dark:bg-gray-900 dark:text-gray-50;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
@apply flex flex-col justify-stretch;
|
@apply flex flex-col justify-stretch items-center bg-gray-950;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
@apply bg-gray-950 text-gray-50 text-lg flex p-1;
|
@apply bg-gray-950 text-gray-50 text-lg flex justify-center p-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@utility sticky-bottom {
|
@utility sticky-bottom {
|
||||||
|
|
@ -22,7 +22,7 @@ footer {
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
@apply flex justify-center items-center bg-gray-950 *:text-gray-50 *:flex-1 *:text-xl w-full justify-evenly;
|
@apply flex lg:w-4xl justify-center items-center *:text-gray-50 *:flex-1 *:text-xl w-full justify-evenly;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
|
||||||
|
|
@ -290,9 +290,6 @@
|
||||||
.min-h-screen {
|
.min-h-screen {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
.w-4xl {
|
|
||||||
width: var(--container-4xl);
|
|
||||||
}
|
|
||||||
.w-fit {
|
.w-fit {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
@ -342,9 +339,6 @@
|
||||||
.items-center {
|
.items-center {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.justify-around {
|
|
||||||
justify-content: space-around;
|
|
||||||
}
|
|
||||||
.justify-between {
|
.justify-between {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
@ -384,9 +378,6 @@
|
||||||
.gap-10 {
|
.gap-10 {
|
||||||
gap: calc(var(--spacing) * 10);
|
gap: calc(var(--spacing) * 10);
|
||||||
}
|
}
|
||||||
.justify-self-center {
|
|
||||||
justify-self: center;
|
|
||||||
}
|
|
||||||
.rounded-full {
|
.rounded-full {
|
||||||
border-radius: calc(infinity * 1px);
|
border-radius: calc(infinity * 1px);
|
||||||
}
|
}
|
||||||
|
|
@ -511,6 +502,9 @@
|
||||||
.p-1 {
|
.p-1 {
|
||||||
padding: calc(var(--spacing) * 1);
|
padding: calc(var(--spacing) * 1);
|
||||||
}
|
}
|
||||||
|
.p-2 {
|
||||||
|
padding: calc(var(--spacing) * 2);
|
||||||
|
}
|
||||||
.p-2\! {
|
.p-2\! {
|
||||||
padding: calc(var(--spacing) * 2) !important;
|
padding: calc(var(--spacing) * 2) !important;
|
||||||
}
|
}
|
||||||
|
|
@ -642,6 +636,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.lg\:w-4xl {
|
||||||
|
@media (width >= 64rem) {
|
||||||
|
width: var(--container-4xl);
|
||||||
|
}
|
||||||
|
}
|
||||||
.dark\:bg-gray-300 {
|
.dark\:bg-gray-300 {
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
background-color: var(--color-gray-300);
|
background-color: var(--color-gray-300);
|
||||||
|
|
@ -674,6 +673,7 @@ main {
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
gap: calc(var(--spacing) * 4);
|
gap: calc(var(--spacing) * 4);
|
||||||
background-color: var(--color-gray-200);
|
background-color: var(--color-gray-200);
|
||||||
padding: calc(var(--spacing) * 0);
|
padding: calc(var(--spacing) * 0);
|
||||||
|
|
@ -688,10 +688,13 @@ main {
|
||||||
header {
|
header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
|
background-color: var(--color-gray-950);
|
||||||
}
|
}
|
||||||
footer {
|
footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
background-color: var(--color-gray-950);
|
background-color: var(--color-gray-950);
|
||||||
padding: calc(var(--spacing) * 1);
|
padding: calc(var(--spacing) * 1);
|
||||||
font-size: var(--text-lg);
|
font-size: var(--text-lg);
|
||||||
|
|
@ -704,7 +707,6 @@ nav {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
background-color: var(--color-gray-950);
|
|
||||||
:is(& > *) {
|
:is(& > *) {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
@ -715,6 +717,9 @@ nav {
|
||||||
:is(& > *) {
|
:is(& > *) {
|
||||||
color: var(--color-gray-50);
|
color: var(--color-gray-50);
|
||||||
}
|
}
|
||||||
|
@media (width >= 64rem) {
|
||||||
|
width: var(--container-4xl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
text-decoration-line: underline;
|
text-decoration-line: underline;
|
||||||
|
|
|
||||||
|
|
@ -35,25 +35,29 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
<div class="lg:w-4xl flex flex-col">
|
||||||
{{embed}}
|
{{embed}}
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="!p-4 !pb-20">
|
<footer class="!p-4 !pb-20">
|
||||||
<div class="flex-1">
|
<div class="flex lg:w-4xl">
|
||||||
<img class="size-12 shrink-0" src="/logo.png" />
|
<div class="flex-1 p-2">
|
||||||
<div>
|
<img class="size-12 shrink-0" src="/logo.png" />
|
||||||
<p>I'm the author of many programming education books, a
|
<div>
|
||||||
semi-professional oil painter, and new game developer.</p>
|
<p>I'm the author of many programming education books, a
|
||||||
|
semi-professional oil painter, and new game developer.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex-1 p-2">
|
||||||
|
<h3 class="text-3xl">Other Projects</h3>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://learncodethehardway.com/">Learn Code the Hard Way</a></li>
|
||||||
|
<li><a href="https://lcthw.dev/go/">Go Web Dev</a></li>
|
||||||
|
<li><a href="https://lcthw.dev/learn-code-the-hard-way/">Code Projects for Beginners</a></li>
|
||||||
|
<li><a href="https://zedshaw.com/blog/">Personal Essays</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="flex-1">
|
|
||||||
<h3 class="text-3xl">Other Projects</h3>
|
|
||||||
<ul>
|
|
||||||
<li><a href="https://learncodethehardway.com/">Learn Code the Hard Way</a></li>
|
|
||||||
<li><a href="https://lcthw.dev/go/">Go Web Dev</a></li>
|
|
||||||
<li><a href="https://lcthw.dev/learn-code-the-hard-way/">Code Projects for Beginners</a></li>
|
|
||||||
<li><a href="https://zedshaw.com/blog/">Personal Essays</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue