end responsive background
This commit is contained in:
1 parent
b7ebda5633
commit
47fee29d48
3 files changed
+63
-12
No files matched your search
@@ -1,9 +1,10 @@
|
|||||||
/* BACKGROUND ////////////////////////////////////////////////////////*/
|
/* BACKGROUND ////////////////////////////////////////////////////////*/
|
||||||
.background-container {
|
.background-container {
|
||||||
|
z-index: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: linear-gradient(135deg, #ff9500, #ffb347);
|
background: #00F0FF;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
.circle-1 {
|
.circle-1 {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
background-color: rgba(255, 255, 204, 0.6);
|
background-color: #019AFF;
|
||||||
top: -10%;
|
top: -10%;
|
||||||
left: -10%;
|
left: -10%;
|
||||||
}
|
}
|
||||||
@@ -30,7 +31,7 @@
|
|||||||
.circle-2 {
|
.circle-2 {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
height: 250px;
|
height: 250px;
|
||||||
background-color: rgba(255, 255, 153, 0.829);
|
background-color: #91FCFF;
|
||||||
top: 51%;
|
top: 51%;
|
||||||
left: 10%;
|
left: 10%;
|
||||||
}
|
}
|
||||||
@@ -38,26 +39,27 @@
|
|||||||
.circle-3 {
|
.circle-3 {
|
||||||
width: 280px;
|
width: 280px;
|
||||||
height: 280px;
|
height: 280px;
|
||||||
background-color: rgba(255, 255, 204, 0.439);
|
background-color: #91FCFF;
|
||||||
top: 17%;
|
top: 28%;
|
||||||
right: 9%;
|
right: 9%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.circle-4 {
|
.circle-4 {
|
||||||
width: 500px;
|
width: 500px;
|
||||||
height: 500px;
|
height: 500px;
|
||||||
background-color: rgb(244, 244, 172);
|
background-color: #019AFF;
|
||||||
bottom: 0%;
|
bottom: 0;
|
||||||
right: 0%;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.circle-5 {
|
.circle-5 {
|
||||||
width: 240px;
|
width: 240px;
|
||||||
height: 240px;
|
height: 240px;
|
||||||
background-color: rgba(240, 240, 41, 0.827);
|
background-color: #015AFF;
|
||||||
top: 2%;
|
top: 2%;
|
||||||
right: 2%;
|
right: 2%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.circle-1,.circle-2, .circle-3, .circle-4, .circle-5 {
|
.circle-1,.circle-2, .circle-3, .circle-4, .circle-5 {
|
||||||
animation: float 6s ease-in-out infinite;
|
animation: float 6s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
@@ -73,3 +75,48 @@
|
|||||||
transform: translate(var(--random-x), var(--random-y));
|
transform: translate(var(--random-x), var(--random-y));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width:600px) {
|
||||||
|
|
||||||
|
|
||||||
|
.circle-1 {
|
||||||
|
width: 300px;
|
||||||
|
height: 300px;
|
||||||
|
background-color: #019AFF;
|
||||||
|
top: -5%;
|
||||||
|
left: -5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circle-2 {
|
||||||
|
width: 175px;
|
||||||
|
height: 175px;
|
||||||
|
background-color: #91FCFF;
|
||||||
|
top: 58%;
|
||||||
|
left: 10%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circle-3 {
|
||||||
|
width: 140px;
|
||||||
|
height: 140px;
|
||||||
|
background-color: #91FCFF;
|
||||||
|
top: 29%;
|
||||||
|
right: 9%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circle-4 {
|
||||||
|
width: 250px;
|
||||||
|
height: 250px;
|
||||||
|
background-color: #019AFF;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.circle-5 {
|
||||||
|
width: 240px;
|
||||||
|
height: 240px;
|
||||||
|
background-color: #015AFF;
|
||||||
|
top: 2%;
|
||||||
|
right: 10%;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -54,7 +54,7 @@ function LoginForm({ className }) {
|
|||||||
<input
|
<input
|
||||||
type="email"
|
type="email"
|
||||||
id="email"
|
id="email"
|
||||||
className="glassCard"
|
className={styles.input}
|
||||||
value={email}
|
value={email}
|
||||||
placeholder="Adresse mail"
|
placeholder="Adresse mail"
|
||||||
onChange={e => setEmail(e.target.value)}
|
onChange={e => setEmail(e.target.value)}
|
||||||
@@ -66,11 +66,12 @@ function LoginForm({ className }) {
|
|||||||
<input
|
<input
|
||||||
type={showPassword ? "text" : "password"}
|
type={showPassword ? "text" : "password"}
|
||||||
id="password"
|
id="password"
|
||||||
|
className={styles.input}
|
||||||
value={password}
|
value={password}
|
||||||
placeholder="Mot de passe"
|
placeholder="Mot de passe"
|
||||||
onChange={e => setPassword(e.target.value)}
|
onChange={e => setPassword(e.target.value)}
|
||||||
required
|
required
|
||||||
style={{ width: '100%', paddingRight: '40px' }} // Espace pour le bouton
|
style={{ width: '100%', paddingRight: '40px' }}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
:global(.glassCard) {
|
||||||
|
--glass-bg: #ffffff9f;
|
||||||
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -7,7 +10,7 @@ input {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
color: #111;
|
color: #111;
|
||||||
background: rgba(255, 255, 255, 0.5);
|
background: var(--glass-bg);
|
||||||
box-shadow: 0 2px 6px rgba(91, 90, 90, 0.06) inset;
|
box-shadow: 0 2px 6px rgba(91, 90, 90, 0.06) inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user