85 lines
2.0 KiB
HTML
85 lines
2.0 KiB
HTML
{{- /* Custom head content. Kept minimal on purpose: the only thing we add is
|
|||
|
|
styling for the project cards rendered by layouts/shortcodes/projects.html.
|
||
|
|
PaperMod calls this partial from its own head.html, so no theme fork. */ -}}
|
||
|
|
|
||
|
|
{{- if .IsHome }}
|
||
|
|
<style>
|
||
|
|
.projects {
|
||
|
|
margin: 2rem 0 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.project-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||
|
|
gap: 1rem;
|
||
|
|
margin-top: 1.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.project-card {
|
||
|
|
background: var(--entry);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 1.3rem 1.4rem;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
transition: transform 0.15s ease, border-color 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.project-card:hover {
|
||
|
|
border-color: var(--secondary);
|
||
|
|
transform: translateY(-2px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.project-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: baseline;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 0.75rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.project-header h3 {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 1.25rem;
|
||
|
|
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-description {
|
||
|
|
color: var(--secondary);
|
||
|
|
line-height: 1.65;
|
||
|
|
margin: 0.75rem 0 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.project-tags {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
gap: 0.4rem;
|
||
|
|
list-style: none;
|
||
|
|
margin: 0 0 1rem;
|
||
|
|
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-link {
|
||
|
|
margin-top: auto;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
{{- end }}
|