feat: add footer with nav

This commit is contained in:
Stevan Freeborn
2024-04-13 19:25:38 -05:00
parent 66bef092f3
commit 7fb9c28064
6 changed files with 51 additions and 37 deletions
+4 -4
View File
@@ -18,13 +18,13 @@
<section role="feed" class="container">
@foreach (var post in Posts)
{
<NavLink href="@GetLink(post)">
<article>
<article>
<NavLink href="@GetLink(post)">
<h3 title="@post.Title" >@post.Title</h3>
<p class="date">@post.PublishedAt.ToString("MMMM d, yyyy")</p>
<p class="lead">@post.Lead</p>
</article>
</NavLink>
</NavLink>
</article>
}
</section>
}
+33 -31
View File
@@ -4,43 +4,45 @@
width: 100%;
gap: 2rem;
& a {
padding: 1rem;
border-radius: 1rem;
background-color: var(--color-background-soft);
transition-property: transform;
transition-duration: 100ms;
transition-timing-function: ease-in-out
}
& a:active {
transform: scale(0.95)
}
& article {
display: flex;
flex-direction: column;
gap: 0.25rem;
& h3 {
background: linear-gradient(to right top, #db3e3e, #df3741, #e32e44, #e72347, #eb124b);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 2rem;
font-weight: 900;
}
& .date {
font-size: 0.85rem;
& a {
display: flex;
flex-direction: column;
gap: 0.25rem;
padding: 1rem;
border-radius: 1rem;
background-color: var(--color-background-soft);
transition-property: transform;
transition-duration: 100ms;
transition-timing-function: ease-in-out;
& h3 {
background: linear-gradient(to right top, #db3e3e, #df3741, #e32e44, #e72347, #eb124b);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 2rem;
font-weight: 900;
}
& .date {
font-size: 0.85rem;
}
& h3,
& .date,
& .lead {
text-wrap: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
& h3,
& .date,
& .lead {
text-wrap: nowrap;
overflow: hidden;
text-overflow: ellipsis;
& a:active {
transform: scale(0.95)
}
}
}