feat(ui): limit page global content width

This commit is contained in:
Julien Oculi 2024-02-06 18:03:51 +01:00
parent 27125d3176
commit 47982d9ef3
5 changed files with 132 additions and 116 deletions

View file

@ -1,11 +1,16 @@
footer { footer {
height: fit-content; height: fit-content;
background-color: var(--_translucent);
}
footer div {
max-width: var(--_wide-screen);
width: 100%; width: 100%;
padding: var(--_gap); padding: var(--_gap);
display: flex; display: flex;
gap: var(--_gap); gap: var(--_gap);
justify-content: space-around; justify-content: space-around;
background-color: var(--_translucent); margin: auto;
} }
.footer__badges { .footer__badges {

View file

@ -1,6 +1,7 @@
export function Footer() { export function Footer() {
return ( return (
<footer> <footer>
<div>
<section> <section>
<h3>Contact</h3> <h3>Contact</h3>
<p> <p>
@ -82,6 +83,7 @@ export function Footer() {
</a> </a>
</div> </div>
</section> </section>
</div>
</footer> </footer>
) )
} }

View file

@ -1,14 +1,20 @@
header { header {
width: 100%; width: 100%;
padding: var(--_gap); padding: 0;
display: flex;
gap: var(--_gap);
margin: 0; margin: 0;
background-color: var(--_translucent); background-color: var(--_translucent);
color: var(--_font-color); color: var(--_font-color);
user-select: none; user-select: none;
} }
header div {
max-width: var(--_wide-screen);
margin: auto;
padding: var(--_gap);
display: flex;
gap: var(--_gap);
}
header span { header span {
text-wrap: nowrap; text-wrap: nowrap;
padding: var(--_gap); padding: var(--_gap);

View file

@ -3,6 +3,7 @@ import { asset } from '$fresh/runtime.ts'
export function Header() { export function Header() {
return ( return (
<header> <header>
<div>
<span> <span>
<a href='/'> <a href='/'>
Coh<img Coh<img
@ -34,6 +35,7 @@ export function Header() {
</li> </li>
</nav> </nav>
<input type='search' name='' id='' placeholder='Rechercher' /> <input type='search' name='' id='' placeholder='Rechercher' />
</div>
</header> </header>
) )
} }

View file

@ -12,6 +12,7 @@
/* size */ /* size */
--_gap: var(--size-3); --_gap: var(--size-3);
--_gap-half: calc(var(--_gap) / 2); --_gap-half: calc(var(--_gap) / 2);
--_wide-screen: 1400px;
/* color */ /* color */
--_accent-color: var(--lime-6); --_accent-color: var(--lime-6);