mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-16 21:28:31 -04:00
landing page with accented profile pic
This commit is contained in:
parent
d36183b821
commit
6254bbd7fd
|
@ -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;
|
||||
}
|
||||
|
|
@ -1,11 +1,20 @@
|
|||
{{ define "main" }}
|
||||
<article>
|
||||
<header id="post-header">
|
||||
{{ if eq .RelPermalink "/" }}
|
||||
<h1 style="visibility:hidden;"> </h1>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{- partial "about_excerpt.html" . -}}
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
<article>
|
||||
<header id="post-header">
|
||||
{{ if eq .RelPermalink "/" }}
|
||||
<h1 style="visibility:hidden;"> </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 }}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue