better vertical spaces in hero section
This commit is contained in:
+26
-43
@@ -1,16 +1,13 @@
|
|||||||
<style>
|
<style>
|
||||||
/* specific banners */
|
|
||||||
#top_banner {
|
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
left: 0px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#hero_section {
|
#hero_section {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
grid-template-columns: 1fr auto 1fr;
|
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 {
|
.title {
|
||||||
/*
|
/*
|
||||||
@@ -26,18 +23,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
> *:first-child {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&#name {
|
|
||||||
margin: 30px 0px 20px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&#title {
|
|
||||||
margin: 20px 0px 20px 0px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
@@ -63,17 +48,13 @@
|
|||||||
* *
|
* *
|
||||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
|
||||||
|
|
||||||
<!--
|
<section class="section hero" id="hero_section">
|
||||||
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
|
|
||||||
-->
|
|
||||||
<div
|
<div
|
||||||
id="top_banner"
|
id="top_banner"
|
||||||
class="banner banner_size_0 banner_speed_50 banner_reverse grid_full_width"
|
class="banner banner_size_0 banner_speed_50 banner_reverse grid_full_width"
|
||||||
aria-label="banner delimitation in ASCII art"
|
aria-label="banner delimitation in ASCII art"
|
||||||
></div>
|
></div>
|
||||||
|
|
||||||
<section class="section hero" id="hero_section">
|
|
||||||
<header>
|
<header>
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
<h1 aria-label="hugo lamy" id="name" class="title">
|
<h1 aria-label="hugo lamy" id="name" class="title">
|
||||||
@@ -92,9 +73,11 @@
|
|||||||
|
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div>
|
||||||
<!-- prettier-ignore -->
|
<!-- 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 aria-hidden="true" class="pre">
|
||||||
<span class="fr">
|
<span class="fr">
|
||||||
|
|
||||||
@@ -112,7 +95,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p class="subtitle">
|
<p class="subtitle">
|
||||||
<span class="fr">
|
<span class="fr">
|
||||||
Bonjour, je suis un développeur inventif, méthodique, et passionné par
|
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 :-]
|
new technical solutions and gaining a deep understanding of systems :-]
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</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 -->
|
<!-- 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 aria-hidden="true" class="pre">
|
||||||
<span class="fr">
|
<span class="fr">
|
||||||
|
|
||||||
@@ -146,7 +143,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p class="subtitle">
|
<p class="subtitle">
|
||||||
<span class="fr">
|
<span class="fr">
|
||||||
Bonjour, je suis un développeur inventif, méthodique, et passionné par
|
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 :-]
|
new technical solutions and gaining a deep understanding of systems :-]
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</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>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|||||||
+6
-6
@@ -42,27 +42,27 @@ a:empty::after {
|
|||||||
content: attr(href);
|
content: attr(href);
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
margin: 30px 0px;
|
margin: 0px 0px 30px 0px;
|
||||||
font-size: 2.25rem;
|
font-size: 2.25rem;
|
||||||
}
|
}
|
||||||
h2 {
|
h2 {
|
||||||
margin: 30px 0px;
|
margin: 0px 0px 30px 0px;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
}
|
}
|
||||||
h3 {
|
h3 {
|
||||||
margin: 20px 0px;
|
margin: 0px 0px 20px 0px;
|
||||||
font-size: 1.75rem;
|
font-size: 1.75rem;
|
||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
margin: 20px 0px;
|
margin: 0px 0px 20px 0px;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
h5 {
|
h5 {
|
||||||
margin: 10px 0px;
|
margin: 0px 0px 10px 0px;
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
}
|
}
|
||||||
h6 {
|
h6 {
|
||||||
margin: 10px 0px;
|
margin: 0px 0px 10px 0px;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user