Fix homepage hero heading markup
This commit is contained in:
1 parent
fe41ef190a
commit
17847dfdb6
2 files changed
+32
-17
No files matched your search
+4
-3
@@ -115,13 +115,14 @@
|
|||||||
<div class="hero-shell">
|
<div class="hero-shell">
|
||||||
<div class="hero-shell__shine"></div>
|
<div class="hero-shell__shine"></div>
|
||||||
<img src="https://avatars.githubusercontent.com/u/48144618" class="profile" alt="Braeden Sowinski profile photo">
|
<img src="https://avatars.githubusercontent.com/u/48144618" class="profile" alt="Braeden Sowinski profile photo">
|
||||||
<div id="main-wrapper" class="svg-wrapper">
|
<div class="hero-nameplate">
|
||||||
|
<div id="main-wrapper" class="svg-wrapper" aria-hidden="true">
|
||||||
<svg height="60" width="320" xmlns="http://www.w3.org/2000/svg">
|
<svg height="60" width="320" xmlns="http://www.w3.org/2000/svg">
|
||||||
<rect x="0" y="0" class="shape" height="60" width="320" />
|
<rect x="0" y="0" class="shape" height="60" width="320" />
|
||||||
<h2 style="margin-top: 16pt;" class="name">Braeden Sowinski</h2>
|
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<h2 style="margin-top: 2pt;" class="mobile-name">Braeden Sowinski</h2>
|
<h1 class="name">Braeden Sowinski</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="des hero-description">
|
<p class="des hero-description">
|
||||||
Software Engineer & Systems Admin | CST Student @ BCIT
|
Software Engineer & Systems Admin | CST Student @ BCIT
|
||||||
|
|||||||
+28
-14
@@ -249,10 +249,18 @@ ul {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero-nameplate {
|
||||||
|
position: relative;
|
||||||
|
width: 320pt;
|
||||||
|
height: 64pt;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.svg-wrapper {
|
.svg-wrapper {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 320pt;
|
width: 320pt;
|
||||||
position: relative;
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
height: 64pt;
|
height: 64pt;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
@@ -277,13 +285,16 @@ ul {
|
|||||||
transition: 0.8s;
|
transition: 0.8s;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
margin-bottom: 10pt;
|
margin: 0;
|
||||||
transform: translate(0, -64pt);
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name:hover,
|
.name:hover,
|
||||||
.des:hover,
|
.des:hover {
|
||||||
.mobile-name:hover {
|
|
||||||
color: var(--secondary);
|
color: var(--secondary);
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
@@ -519,13 +530,6 @@ body:not(.light) #sun {
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-name {
|
|
||||||
display: none;
|
|
||||||
transition: 0.8s;
|
|
||||||
font-size: 30px;
|
|
||||||
font-weight: 900;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.menu-open {
|
body.menu-open {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@@ -581,8 +585,18 @@ body.menu-open .overlay * {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu,
|
.menu {
|
||||||
.mobile-name {
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-nameplate {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
margin-top: 2pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
position: static;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user