Ajoute plusieurs styles : - Ajout de variables CSS - Nouveau Header - Responsive - Dark mode / Light mode avec transition Agrandit également la taille des fichiers CSS. Co-authored-by: cofrizot <colin.frizot@etu.uca.fr> Co-authored-by: clfreville2 <clement.freville2@etu.uca.fr> Reviewed-on: #5 Reviewed-by: Clément FRÉVILLE <clement.freville2@etu.uca.fr> Co-authored-by: Colin FRIZOT <colin.frizot@etu.uca.fr> Co-committed-by: Colin FRIZOT <colin.frizot@etu.uca.fr>tailwind
parent
dd2c99adb2
commit
a2f06ac993
@ -1,15 +1,33 @@
|
|||||||
|
@import '../styles';
|
||||||
|
|
||||||
|
body {
|
||||||
|
overflow: hidden;
|
||||||
|
transition: background-color .3s ease-in-out, color .3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
body.light-theme {
|
body.light-theme {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
/* Autres styles pour le thème clair */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-theme {
|
body.dark-theme {
|
||||||
background-color: #333333;
|
background-color: #333333;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
/* Autres styles pour le thème sombre */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
.app {
|
||||||
|
min-height: 100dvh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
footer {
|
||||||
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
align-items: flex-end;
|
||||||
|
|
||||||
|
app-footer {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
<div class="landing-block">
|
<div class="landing-page" [ngClass]="themeClass">
|
||||||
<div class="hero-container">
|
<div class="landing-page--container">
|
||||||
<h2 class="hero-title">{{ 'LandingPage.Welcome' | translate}}</h2>
|
<h2 class="landing-page--title">{{ 'LandingPage.Welcome' | translate}}</h2>
|
||||||
<span class="hero-text">{{ 'LandingPage.Description' | translate}}</span>
|
<span class="landing-page--subtitle">{{ 'LandingPage.Description' | translate}}</span>
|
||||||
</div>
|
<div class="landing-page__button">
|
||||||
<div class="landing-links">
|
<a class="landing-page__button--link" (click)="onContinue()">{{ 'LandingPage.Try' | translate}}</a>
|
||||||
<div class="button-container">
|
|
||||||
<a class="animated-button" (click)="onContinue()">{{ 'LandingPage.Try' | translate}}</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,59 +1,63 @@
|
|||||||
.landing-block {
|
@import '../../../styles';
|
||||||
|
|
||||||
|
.landing-page {
|
||||||
padding: 6rem;
|
padding: 6rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
}
|
|
||||||
|
|
||||||
/* Upper block*/
|
color: $color-black;
|
||||||
.hero-container {
|
transition: color .3s ease-in-out;
|
||||||
|
|
||||||
|
|
||||||
|
&--container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 2.5rem;
|
gap: 1rem;
|
||||||
padding: 2rem 1rem;
|
|
||||||
background: #686AB7;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.landing-links {
|
&--title {
|
||||||
width: 100%;
|
font-size: 5rem;
|
||||||
text-align: center;
|
font-weight: 700;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button{
|
&--subtitle {
|
||||||
font-size: 20px;
|
font-size: 1rem;
|
||||||
|
font-weight: 400;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Animated Button*/
|
&__button {
|
||||||
.landing-links {
|
padding: .75rem 2rem;
|
||||||
|
background: $color-purple;
|
||||||
|
border-radius: 10px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding: 1rem;
|
white-space: nowrap;
|
||||||
height: fit-content;
|
|
||||||
|
|
||||||
|
color: $color-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-container {
|
@media(max-width: 1024px) {
|
||||||
position: relative;
|
padding: 4rem;
|
||||||
margin: auto;
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
|
||||||
&:before {
|
&--title {
|
||||||
content: "";
|
font-size: 4rem;
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: -1rem;
|
|
||||||
border-radius: 100px;
|
|
||||||
width: 2rem;
|
|
||||||
height: 2rem;
|
|
||||||
transform: translate(0%, -25%);
|
|
||||||
background: rgba(0, 0, 255, 0.5);
|
|
||||||
transition: width 0.3s ease;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.landing-links:hover .button-container:before {
|
@media(max-width: 767px) {
|
||||||
width: calc(100% + 2rem);
|
padding: 2rem;
|
||||||
|
|
||||||
|
&--title {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-container .animated-button {
|
|
||||||
position: relative;
|
&.dark-theme {
|
||||||
white-space: nowrap;
|
color: $color-white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue