Files

108 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2026-11-06 10:40:48 +01:00
{{- /* Custom head content. Kept minimal on purpose: the only thing we add is
styling for the project entries rendered by layouts/shortcodes/projects.html.
2026-11-06 10:40:48 +01:00
PaperMod calls this partial from its own head.html, so no theme fork. */ -}}
{{- if .IsHome }}
<style>
.projects {
margin: 2rem 0 1rem;
}
.project {
2026-11-06 10:40:48 +01:00
display: grid;
grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
gap: 1.5rem;
align-items: start;
background: var(--entry);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.5rem;
margin-bottom: 1.75rem;
2026-11-06 10:40:48 +01:00
}
.project-media {
margin: 0;
}
.project-media img {
display: block;
width: 100%;
height: auto;
border-radius: 6px;
2026-11-06 10:40:48 +01:00
border: 1px solid var(--border);
}
.project-media figcaption {
margin-top: 0.4rem;
font-size: 0.72rem;
color: var(--secondary);
2026-11-06 10:40:48 +01:00
}
.project-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.75rem;
margin-bottom: 0.5rem;
2026-11-06 10:40:48 +01:00
}
.project-header h3 {
margin: 0;
font-size: 1.45rem;
2026-11-06 10:40:48 +01:00
line-height: 1.3;
}
.project-status {
flex-shrink: 0;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--secondary);
border: 1px solid var(--border);
border-radius: 999px;
padding: 0.1rem 0.55rem;
}
.project-text p {
margin: 0 0 0.85rem;
line-height: 1.7;
}
.project-text p:last-child {
margin-bottom: 0;
2026-11-06 10:40:48 +01:00
}
.project-tags {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
list-style: none;
margin: 1rem 0 0;
2026-11-06 10:40:48 +01:00
padding: 0;
}
.project-tags li {
font-size: 0.78rem;
color: var(--secondary);
border: 1px solid var(--border);
border-radius: 999px;
padding: 0.1rem 0.55rem;
}
.project-footer {
margin-top: 1rem;
}
2026-11-06 10:40:48 +01:00
.project-link {
font-weight: 600;
}
@media (max-width: 720px) {
.project {
grid-template-columns: 1fr;
gap: 1rem;
padding: 1.1rem;
}
}
2026-11-06 10:40:48 +01:00
</style>
{{- end }}