Skip to content

Instantly share code, notes, and snippets.

@xcRom1
Created March 8, 2021 12:43
Show Gist options
  • Select an option

  • Save xcRom1/315d7c5d71ef7f139280ee2f0d92677c to your computer and use it in GitHub Desktop.

Select an option

Save xcRom1/315d7c5d71ef7f139280ee2f0d92677c to your computer and use it in GitHub Desktop.
Hello, Marie
<header>
<h1>Bonjour, je suis Marie</h1>
<p class="subtitle">Designer et Photographe qui voyage le monde</p>
<img src="https://bit.ly/2CCLPLk" width="584" height="394" alt="Marie avec un super mug">
</header>
<main>
<article>
<div class="container">
<h2>Mes astuces secrètes pour des belles photos</h2>
<p>Téléphone et compacts numériques ont révolutionné la photographie de voyage et nous permettent, en conséquent, de prendre une grande quantité de photos. Mais, soyons honnête: la plupart d’entre nous devraient suivre quelques conseils pour savoir comment faire de belles photos !</p>
<ul>
<li>Utiliser la lumière du jour.</li>
<li> Appliquez la règle des tiers.</li>
<li> Rapprochez-vous de votre objet.</li>
<li> Pratiquez! Prenez des photos tous les jours.</li>
</ul>
<p class="astuces">Encore plus d'astuces à venir très bientôt...</p>
</div>
</article>
</main>
<footer>&copy; Marie la Photographe </footer>
:root {
--dark: #212121;
--brand: #fdd835;
}
* {
box-sizing: border-box;
}
body {
font-family: Poppins, sans-serif;
margin: 0;
color: var(--dark);
}
header {
background-color: var(--brand);
padding: 1.5rem;
text-align: center;
}
/* auto size image */
img {
max-width: 100%; /* Ne dépasse pas la largeur du conteneur dans lequel tu es ? */
height: auto; /* adapte la hauteur à la largeur */
}
header img {
border: 0.75rem solid white;
box-shadow: 0.75rem 0.75rem 0 rgba(0, 0, 0, 0.2); /* Ombre */
}
article {
background-color: var(--dark);
color: white;
padding: 2rem;
}
.astuces {
color: var(--brand);
}
.container {
max-width: 65ch;
margin-left: auto;
margin-right: auto;
}
footer {
padding: 2rem;
text-align: center;
}
/* a partir de 640px le navigateur va lire uniquement si les contitions son appliqué dans cette situation la */
@media screen and (min-width: 640px) {
/* Media queries */
body {
padding: 2rem;
}
header {
margin-bottom: 2rem;
}
header img {
transform: rotate(-3deg); /* Rotation image */
}
article {
box-shadow: 0.75rem 0.75rem 0 rgba(0, 0, 0, 0.2); /* Ombre */
margin-bottom: 2rem;
}
footer {
border: 1px solid;
box-shadow: 0.75rem 0.75rem 0 var(--brand); /* Ombre */
}
@media (hover: hover) {
/* Media queries */
li {
filter: blur(8px); /* flouter le text */
transition: 1s; /* Timing de du changement */
}
li:hover {
filter: none; /* Découvrir le floutage */
color: var(--brand); /* mettre uen couleur */
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment