First init
This commit is contained in:
92
Build a Website Design System/fonts.css
Normal file
92
Build a Website Design System/fonts.css
Normal file
@@ -0,0 +1,92 @@
|
||||
/* Overall configuration */
|
||||
|
||||
body {
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
font-family: "Nunito Sans", sans-serif;
|
||||
}
|
||||
|
||||
section {
|
||||
border: solid 1px gray;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
.dark {
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Colors Elements targeting */
|
||||
|
||||
.color-box li {
|
||||
display: inline-block;
|
||||
width: 40%;
|
||||
border: 1px solid gray;
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
margin: 20px auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#goldenrod {
|
||||
background-color: goldenrod;
|
||||
}
|
||||
|
||||
#salmon {
|
||||
background-color: salmon;
|
||||
}
|
||||
|
||||
#teal {
|
||||
background-color: teal;
|
||||
}
|
||||
|
||||
#forestgreen {
|
||||
background-color: forestgreen;
|
||||
}
|
||||
|
||||
/* Fonts Elements targeting */
|
||||
|
||||
#fonts h3 {
|
||||
font-size: 3em;
|
||||
text-decoration: underline;
|
||||
font-weight: 200;
|
||||
}
|
||||
|
||||
#limelight {
|
||||
font-family: "Limelight", sans-serif;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
#instrumentserif {
|
||||
font-family: "Instrument Serif", serif;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
#audiowide {
|
||||
font-family: "Audiowide", sans-serif;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
#manufacturingconsent {
|
||||
font-family: "Manufacturing Consent", system-ui;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.regular {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-weight: 1000;
|
||||
}
|
||||
|
||||
.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.font-box li {
|
||||
display: inline;
|
||||
padding: 5px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
76
Build a Website Design System/index.html
Normal file
76
Build a Website Design System/index.html
Normal file
@@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<title>Quick presentation of colors, fonts and styles</title>
|
||||
<link href="./styles.css" rel="stylesheet" />
|
||||
<link href="./fonts.css" rel="stylesheet" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Audiowide&family=Instrument+Serif:ital@0;1&family=Limelight&family=Manufacturing+Consent&family=Nunito+Sans:opsz@6..12&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Quick presentation of colors, fonts and styles</h1>
|
||||
<section id="colors">
|
||||
<h2 class="section-title">Colors</h2>
|
||||
<div class="content">
|
||||
<ul class="color-box">
|
||||
<li id="goldenrod">
|
||||
<p>Goldenrod</p>
|
||||
<p>#DAA520</p>
|
||||
</li>
|
||||
<li id="salmon">
|
||||
<p>Salmon</p>
|
||||
<p>#FA8072</p>
|
||||
</li>
|
||||
<li id="teal">
|
||||
<p><span class="dark">Teal</span></p>
|
||||
<p><span class="dark">#008080</span></p>
|
||||
</li>
|
||||
<li id="forestgreen">
|
||||
<p>ForestGreen</p>
|
||||
<p>#228B22</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section id="fonts">
|
||||
<h2 class="section-title">Fonts</h2>
|
||||
<div class="content">
|
||||
<ul class="font-box">
|
||||
<li id="limelight">
|
||||
<h3>Limelight</h3>
|
||||
<p class="regular">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
<p class="bold">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
<p class="italic">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
</li>
|
||||
<li id="instrumentserif">
|
||||
<h3>Instrument Serif</h3>
|
||||
<p class="regular">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
<p class="bold">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
<p class="italic">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
</li>
|
||||
<li id="audiowide">
|
||||
<h3>Audiowide</h3>
|
||||
<p class="regular">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
<p class="bold">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
<p class="italic">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
</li>
|
||||
<li id="manufacturingconsent">
|
||||
<h3>Manufacturing Consent</h3>
|
||||
<p class="regular">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
<p class="bold">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
<p class="italic">Portez ce vieux whisky au juge blond qui fume</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section id="styles">
|
||||
<h2 class="section-title">Styles</h2>
|
||||
<div class="content"></div>
|
||||
</section>
|
||||
</body>
|
||||
<footer>For Codecademy, Gauvain B, 2025</footer>
|
||||
</html>
|
||||
39
Build a Website Design System/styles.css
Normal file
39
Build a Website Design System/styles.css
Normal file
@@ -0,0 +1,39 @@
|
||||
.limelight-regular {
|
||||
font-family: "Limelight", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.instrument-serif-regular {
|
||||
font-family: "Instrument Serif", serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.instrument-serif-regular-italic {
|
||||
font-family: "Instrument Serif", serif;
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.audiowide-regular {
|
||||
font-family: "Audiowide", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.manufacturing-consent-regular {
|
||||
font-family: "Manufacturing Consent", system-ui;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.nunito-sans-<uniquifier> {
|
||||
font-family: "Nunito Sans", sans-serif;
|
||||
font-optical-sizing: auto;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-variation-settings:
|
||||
"wdth" 100,
|
||||
"YTLC" 500;
|
||||
}
|
||||
Reference in New Issue
Block a user