landing page with accented profile pic

This commit is contained in:
acarril 2023-04-28 14:41:46 -04:00
parent d36183b821
commit 6254bbd7fd
2 changed files with 62 additions and 10 deletions

View file

@ -298,3 +298,46 @@ footer#footer {
z-index: -1;
}
.landing-page-content {
display: grid;
grid-template-columns: 2fr 1fr;
grid-gap: 5rem;
padding: 0rem;
}
.image-content {
display: flex;
justify-content: center;
}
.profile-image {
max-width: 100%;
height: auto;
}
@media (max-width: 767px) {
.landing-page-content {
grid-template-columns: 1fr;
}
}
.image-accent {
position: relative;
}
.image-accent::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background-color: #B3E5FC;
z-index: -1;
top: 5%;
left: 10%;
}
.profile-image {
position: relative;
z-index: 1;
}

View file

@ -1,11 +1,20 @@
{{ define "main" }}
<article>
<header id="post-header">
{{ if eq .RelPermalink "/" }}
<h1 style="visibility:hidden;">&nbsp;</h1>
{{ end }}
</header>
{{- partial "about_excerpt.html" . -}}
{{ .Content }}
</article>
{{ end }}
<article>
<header id="post-header">
{{ if eq .RelPermalink "/" }}
<h1 style="visibility:hidden;">&nbsp;</h1>
{{ end }}
</header>
<div class="landing-page-content">
<div class="text-content">
{{- partial "about_excerpt.html" . -}}
{{ .Content }}
</div>
<div class="image-content image-accent">
<img src="{{ "img/05_headshot.jpeg" | absURL }}" alt="Your Name" class="profile-image">
</div>
</div>
</article>
{{ end }}