tried some styling for projects page
This commit is contained in:
@@ -64,9 +64,14 @@
|
|||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
{#snippet projectContent(p: Project)}
|
{#snippet projectContent(p: Project)}
|
||||||
<p>{p.title}</p>
|
<div class="project-content-container">
|
||||||
<p>{p.subtitle}</p>
|
<img class="project-banner" src={p.banner} alt={p.bannerAlt}>
|
||||||
<p>{p.date}</p>
|
<div class="project-text-container">
|
||||||
|
<p class="project-title">{p.title}</p>
|
||||||
|
<p class="project-subtitle">{p.subtitle}</p>
|
||||||
|
<p class="project-date">{p.date}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
<!-- {#snippet projectSummary({
|
<!-- {#snippet projectSummary({
|
||||||
@@ -105,18 +110,65 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
/* grid-template-columns: 1fr 1fr; */
|
/* grid-template-columns: 1fr 1fr; */
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
gap: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-wrapper {
|
.project-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin: 0;
|
||||||
|
/* border-radius: var(--border-radius); */
|
||||||
/* gap: 4px; */
|
/* gap: 4px; */
|
||||||
|
overflow: hidden;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-wrapper p {
|
.project-content-container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-banner {
|
||||||
|
width: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: -1;
|
||||||
|
filter: brightness(60%) saturate(40%) blur(4px);
|
||||||
|
transition: filter var(--duration-animation) var(--anim-curve);
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-wrapper:hover .project-banner {
|
||||||
|
filter: brightness(60%) saturate(100%) blur(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-text-container {
|
||||||
|
padding: 8px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-text-container p {
|
||||||
|
text-shadow: 0 0 6px black;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.project-title {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 1.4rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-subtitle {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-date {
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* .project-subtitle {
|
/* .project-subtitle {
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: 1.0rem;
|
font-size: 1.0rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user