better vertical spaces in hero section
This commit is contained in:
+26
-43
@@ -1,16 +1,13 @@
|
||||
<style>
|
||||
/* specific banners */
|
||||
#top_banner {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#hero_section {
|
||||
min-height: 100vh;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
grid-template-rows: 1fr auto auto;
|
||||
/* no fixed rows anymore : with two titles the section simply grows
|
||||
past 100vh instead of squeezing everything on one page */
|
||||
grid-auto-rows: auto;
|
||||
/* single gap value for the rhythm between the 3 blocks :
|
||||
header / mouse / banner (same value as the .title margin) */
|
||||
row-gap: 60px;
|
||||
|
||||
.title {
|
||||
/*
|
||||
@@ -26,18 +23,6 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
> *:first-child {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
&#name {
|
||||
margin: 30px 0px 20px 0px;
|
||||
}
|
||||
|
||||
&#title {
|
||||
margin: 20px 0px 20px 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
@@ -63,17 +48,13 @@
|
||||
* *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
||||
|
||||
<!--
|
||||
I moved this outside the hero section,
|
||||
so that i can change my mind to put it or not without having to change the grid rows height
|
||||
-->
|
||||
<section class="section hero" id="hero_section">
|
||||
<div
|
||||
id="top_banner"
|
||||
class="banner banner_size_0 banner_speed_50 banner_reverse grid_full_width"
|
||||
aria-label="banner delimitation in ASCII art"
|
||||
></div>
|
||||
|
||||
<section class="section hero" id="hero_section">
|
||||
<header>
|
||||
<!-- prettier-ignore -->
|
||||
<h1 aria-label="hugo lamy" id="name" class="title">
|
||||
@@ -92,9 +73,11 @@
|
||||
|
||||
</span>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div>
|
||||
<!-- prettier-ignore -->
|
||||
<h1 aria-label="programmeur informatique" id="title" class="title">
|
||||
<h1 aria-label="programmeur informatique" id="development" class="title">
|
||||
<span aria-hidden="true" class="pre">
|
||||
<span class="fr">
|
||||
|
||||
@@ -112,7 +95,6 @@
|
||||
</span>
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
<p class="subtitle">
|
||||
<span class="fr">
|
||||
Bonjour, je suis un développeur inventif, méthodique, et passionné par
|
||||
@@ -126,9 +108,24 @@
|
||||
new technical solutions and gaining a deep understanding of systems :-]
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="mouse_container">
|
||||
<div class="mouse">
|
||||
<div class="frames mouse_1 pre"></div>
|
||||
</div>
|
||||
<div class="skouik">
|
||||
<button class="button button1"></button>
|
||||
<span class="sound sound_1 sound_left">SKOUIK!</span>
|
||||
|
||||
<button class="button button2"></button>
|
||||
<span class="sound sound_1 sound_right">SKOUIK!</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<!-- prettier-ignore -->
|
||||
<h1 aria-label="programmeur informatique" id="title" class="title">
|
||||
<h1 aria-label="fabrication artisanale" id="making" class="title">
|
||||
<span aria-hidden="true" class="pre">
|
||||
<span class="fr">
|
||||
|
||||
@@ -146,7 +143,6 @@
|
||||
</span>
|
||||
</span>
|
||||
</h1>
|
||||
|
||||
<p class="subtitle">
|
||||
<span class="fr">
|
||||
Bonjour, je suis un développeur inventif, méthodique, et passionné par
|
||||
@@ -160,19 +156,6 @@
|
||||
new technical solutions and gaining a deep understanding of systems :-]
|
||||
</span>
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<div class="mouse_container">
|
||||
<div class="mouse">
|
||||
<div class="frames mouse_1 pre"></div>
|
||||
</div>
|
||||
<div class="skouik">
|
||||
<button class="button button1"></button>
|
||||
<span class="sound sound_1 sound_left">SKOUIK!</span>
|
||||
|
||||
<button class="button button2"></button>
|
||||
<span class="sound sound_1 sound_right">SKOUIK!</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
||||
+6
-6
@@ -42,27 +42,27 @@ a:empty::after {
|
||||
content: attr(href);
|
||||
}
|
||||
h1 {
|
||||
margin: 30px 0px;
|
||||
margin: 0px 0px 30px 0px;
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
h2 {
|
||||
margin: 30px 0px;
|
||||
margin: 0px 0px 30px 0px;
|
||||
font-size: 2rem;
|
||||
}
|
||||
h3 {
|
||||
margin: 20px 0px;
|
||||
margin: 0px 0px 20px 0px;
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
h4 {
|
||||
margin: 20px 0px;
|
||||
margin: 0px 0px 20px 0px;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
h5 {
|
||||
margin: 10px 0px;
|
||||
margin: 0px 0px 10px 0px;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
h6 {
|
||||
margin: 10px 0px;
|
||||
margin: 0px 0px 10px 0px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user