parent
d21d0bf64d
commit
d51cb3957f
@ -1,122 +1,91 @@
|
||||
.toolbar {
|
||||
&.dark-theme {
|
||||
background-color: black !important;
|
||||
}
|
||||
@import '../../../styles';
|
||||
|
||||
&.light-theme {
|
||||
background-color: white !important;
|
||||
}
|
||||
.header {
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 4rem;
|
||||
}
|
||||
|
||||
.left_part {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 4rem;
|
||||
}
|
||||
|
||||
.left_part .logo_container {
|
||||
&__logo {
|
||||
&--container{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.left_part .menu {
|
||||
&--sandkasten{
|
||||
width: 4rem;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.right_part {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.left_part .menu a {
|
||||
&.dark-theme {
|
||||
color: black !important;
|
||||
}
|
||||
&--menu {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 1rem;
|
||||
|
||||
&.light-theme {
|
||||
color: white !important;
|
||||
}
|
||||
a {
|
||||
color: $color-black;
|
||||
text-decoration: none;
|
||||
padding: .5rem .5rem 0;
|
||||
}
|
||||
|
||||
.left_part .menu a:hover {
|
||||
&.dark-theme {
|
||||
background-color: black !important;
|
||||
}
|
||||
|
||||
&.light-theme {
|
||||
background-color: white !important;
|
||||
}
|
||||
transition: background-color .3s ease;
|
||||
}
|
||||
&__connexion {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 2rem;
|
||||
|
||||
.left_part .menu a.active {
|
||||
&.dark-theme {
|
||||
background-color: black !important;
|
||||
&--login {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
color: $color-purple;
|
||||
}
|
||||
|
||||
&.light-theme {
|
||||
background-color: white !important;
|
||||
&--register {
|
||||
cursor: pointer;
|
||||
border: 1px solid $color-black;
|
||||
border-radius: 10px;
|
||||
padding: .75rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.sandkasten-logo {
|
||||
width: 4rem;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
.logo_title {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 500;
|
||||
&.dark-theme {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
&.light-theme {
|
||||
color: white !important;
|
||||
.dark-theme {
|
||||
.right_part {
|
||||
&--menu {
|
||||
a {
|
||||
color: $color-white;
|
||||
}
|
||||
}
|
||||
|
||||
.right_part {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
&.dark-theme {
|
||||
color: black !important;
|
||||
&__connexion {
|
||||
&--register {
|
||||
border-color: $color-white;
|
||||
}
|
||||
|
||||
&.light-theme {
|
||||
color: white !important;
|
||||
}
|
||||
}
|
||||
|
||||
.gitea_logo_container .gitea-logo {
|
||||
width: 4rem;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.toolbar {
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.toolbar .left_part {
|
||||
gap: 2rem;
|
||||
}
|
||||
@media (max-width: 1024px) {
|
||||
|
||||
.toolbar .left_part .logo_container .logo_title {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,11 +1,9 @@
|
||||
<div class="landing-block">
|
||||
<div class="hero-container">
|
||||
<h2 class="hero-title">{{ 'LandingPage.Welcome' | translate}}</h2>
|
||||
<span class="hero-text">{{ 'LandingPage.Description' | translate}}</span>
|
||||
</div>
|
||||
<div class="landing-links">
|
||||
<div class="button-container">
|
||||
<a class="animated-button" (click)="onContinue()">{{ 'LandingPage.Try' | translate}}</a>
|
||||
<div class="landing-page">
|
||||
<div class="landing-page--container">
|
||||
<h2 class="landing-page--title">{{ 'LandingPage.Welcome' | translate}}</h2>
|
||||
<span class="landing-page--subtitle">{{ 'LandingPage.Description' | translate}}</span>
|
||||
<div class="landing-page__button">
|
||||
<a class="landing-page__button--link" (click)="onContinue()">{{ 'LandingPage.Try' | translate}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,59 +1,37 @@
|
||||
.landing-block {
|
||||
@import '../../../styles';
|
||||
|
||||
.landing-page {
|
||||
padding: 6rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
/* Upper block*/
|
||||
.hero-container {
|
||||
color: $color-black;
|
||||
|
||||
&--container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2.5rem;
|
||||
padding: 2rem 1rem;
|
||||
background: #686AB7;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.landing-links {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
&--title {
|
||||
font-size: 5rem;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button{
|
||||
font-size: 20px;
|
||||
&--subtitle {
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Animated Button*/
|
||||
.landing-links {
|
||||
&__button {
|
||||
padding: .75rem 2rem;
|
||||
background: $color-purple;
|
||||
border-radius: 10px;
|
||||
width: fit-content;
|
||||
padding: 1rem;
|
||||
height: fit-content;
|
||||
|
||||
}
|
||||
|
||||
.button-container {
|
||||
position: relative;
|
||||
margin: auto;
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
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;
|
||||
}
|
||||
color: $color-white;
|
||||
}
|
||||
|
||||
.landing-links:hover .button-container:before {
|
||||
width: calc(100% + 2rem);
|
||||
}
|
||||
|
||||
.button-container .animated-button {
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
}
|
Loading…
Reference in new issue