Feat: background fixe partagé entre About et Blog
All checks were successful
Deploy / Deploy to Production (push) Successful in 21s
All checks were successful
Deploy / Deploy to Production (push) Successful in 21s
Ajout d'un calque position:fixed avec BACKGROUND2 derrière toutes les slides. About et Blog (transparents) le laissent apparaître naturellement. Les autres slides (opaques) le recouvrent sans changement. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1a036774f8
commit
eef95f10d6
3 changed files with 11 additions and 1 deletions
BIN
assets/img/BACKGROUND2.52010fb6a490a17ef475.png
Normal file
BIN
assets/img/BACKGROUND2.52010fb6a490a17ef475.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 MiB |
|
|
@ -74,6 +74,7 @@
|
||||||
|
|
||||||
<Cursor />
|
<Cursor />
|
||||||
<Header />
|
<Header />
|
||||||
|
<div class="bg-fixed"></div>
|
||||||
|
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<div
|
<div
|
||||||
|
|
@ -142,4 +143,14 @@
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg-fixed {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
z-index: -1;
|
||||||
|
background-image: url('/assets/img/BACKGROUND2.52010fb6a490a17ef475.png');
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,6 @@
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.blog {
|
.blog {
|
||||||
background: #0d0e22;
|
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
padding: 0 50px;
|
padding: 0 50px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue