fixed several design, added new logo, added smooth scrolling

This commit is contained in:
Lou 2021-10-27 16:06:20 +02:00
commit 46819d73ba
7 changed files with 46 additions and 17 deletions

View file

@ -3,7 +3,7 @@ import { Link } from "gatsby";
import "./index.scss"; import "./index.scss";
import BtnContact from "../btnContact"; import BtnContact from "../btnContact";
import Logo from "../../images/favicon.svg"; import Logo from "../../images/logo-cli.svg";
const Footer = () => { const Footer = () => {
return ( return (
@ -12,7 +12,13 @@ const Footer = () => {
<li> <li>
<div className="footer-about"> <div className="footer-about">
<div className="footer-about-header"> <div className="footer-about-header">
<img src={Logo} alt="Logo de la CLI" height="40px" width="40px" /> <img
src={Logo}
alt="Logo de l'association"
className="footer-logo"
height="40px"
width="40px"
/>
<h4>CLI</h4> <h4>CLI</h4>
</div> </div>
<p> <p>

View file

@ -1,5 +1,9 @@
@use "../../scss/abstracts/colors" as *; @use "../../scss/abstracts/colors" as *;
@use "../../scss/abstracts/fonts" as *;
@font-face {
font-family: CutiveMono;
src: url(../../fonts/CutiveMono-Regular.ttf);
}
#footer { #footer {
background: $light; background: $light;
@ -42,6 +46,16 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.footer-logo {
width: 3rem;
height: 3rem;
}
h4 {
font-family: CutiveMono;
font-size: 2.5rem;
}
& > * { & > * {
margin: 0 0.3rem; margin: 0 0.3rem;
} }

View file

@ -28,7 +28,7 @@ const Header = () => {
<h1>Coopérative Libre Informatique</h1> <h1>Coopérative Libre Informatique</h1>
<div className="hero-box"> <div className="hero-box">
<div className="hero-text"> <div className="hero-text">
<p className="hero-paragraph">Travailler autrement ensemble.</p> <p className="hero-paragraph">Travailler ensemble autrement.</p>
</div> </div>
<BtnContact>Écrivez-nous !</BtnContact> <BtnContact>Écrivez-nous !</BtnContact>
</div> </div>

View file

@ -67,7 +67,7 @@ header {
} }
} }
@media (min-width: 800px) { @media (min-width: 1000px) {
header { header {
.hero { .hero {
.hero-container { .hero-container {
@ -75,7 +75,7 @@ header {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-top: 12%; margin-top: 12rem;
margin-left: 10%; margin-left: 10%;
} }
} }

View file

@ -12,10 +12,9 @@
} }
nav { nav {
// position: fixed;
z-index: 10; z-index: 10;
margin: 0; margin: 0;
width: 100vw; width: 100%;
padding: 0; padding: 0;
height: 4.5rem; height: 4.5rem;
display: flex; display: flex;
@ -93,7 +92,7 @@ nav {
width: 100%; width: 100%;
padding-right: var(--bs-gutter-x, 0.75rem); padding-right: var(--bs-gutter-x, 0.75rem);
padding-left: var(--bs-gutter-x, 0.75rem); padding-left: var(--bs-gutter-x, 0.75rem);
margin: 4rem auto 0 auto; margin: 0 auto 0 auto;
display: flex; display: flex;
flex-direction: column-reverse; flex-direction: column-reverse;
align-items: center; align-items: center;

View file

@ -14,7 +14,7 @@
align-items: center; align-items: center;
background-color: transparent; background-color: transparent;
height: auto; height: auto;
max-width: 85vw; width: 100%;
} }
.parallax-ethic, .parallax-ethic,
@ -132,11 +132,15 @@
} }
} }
.team {
position: relative;
}
.team:before { .team:before {
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
left: 0; right: 0;
top: 0; top: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -222,8 +226,3 @@
padding-top: 150px; padding-top: 150px;
padding-bottom: 100px; padding-bottom: 100px;
} }
.contact {
.parallax-contact {
}
}

View file

@ -25,6 +25,10 @@ a {
color: $primary; color: $primary;
} }
html {
scroll-behavior: smooth;
}
body { body {
margin: 0; margin: 0;
} }
@ -59,8 +63,15 @@ main {
.page-container { .page-container {
position: relative; position: relative;
// margin-bottom: 2rem; // margin-bottom: 2rem;
width: 100%;
}
@media (min-width: 1150px) {
.page-container {
position: relative;
width: 85vw; width: 85vw;
} }
}
.page-title { .page-title {
text-align: center; text-align: center;