AltitudeWeb/frontend/src/app/pages/home/home.component.scss
akastijn ebe66c87c0 Rework folder structure in frontend
Pages are now grouped per group they appear in on in the header (where possible)
Utilities used by multiple pages in the project are grouped in folders such as services/pipes/etc
2025-07-04 19:50:21 +02:00

360 lines
5.8 KiB
SCSS

#section1 {
background: -webkit-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/town2.jpg");
background: -o-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/town2.jpg");
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/town2.jpg");
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
text-align: center;
}
#section2 {
background: -webkit-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/windmill.png");
background: -o-linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/windmill.png");
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/public/img/backgrounds/windmill.png");
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
main .container {
padding: 80px 0;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.customContainer {
width: 80%;
max-width: 1020px;
margin: auto;
padding: 80px 0;
text-align: center;
}
// Discord Widget
#discord-widget {
margin: 0 auto;
width: 40%;
max-width: 380px;
height: 400px;
}
//Scroll button/anchorpoint
#scroll-button {
position: absolute;
bottom: 50px;
left: 50%;
z-index: 2;
display: inline-block;
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
color: #fff;
transition: opacity .3s;
padding-top: 40px;
}
#scroll-button:hover {
opacity: .5;
cursor: pointer;
}
#scroll-button span {
position: absolute;
top: 0;
left: 50%;
width: 46px;
height: 46px;
margin-left: -23px;
border: 2px solid #fff;
border-radius: 100%;
box-sizing: border-box;
}
#scroll-button span::after {
position: absolute;
top: 50%;
left: 50%;
content: '';
width: 16px;
height: 16px;
margin: -12px 0 0 -8px;
border-left: 1px solid #fff;
border-bottom: 1px solid #fff;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
box-sizing: border-box;
}
#scroll-button span::before {
position: absolute;
top: 0;
left: 0;
z-index: -1;
content: '';
width: 44px;
height: 44px;
box-shadow: 0 0 0 0 rgba(255, 255, 255, .1);
border-radius: 100%;
opacity: 0;
-webkit-animation: sdb03 3s infinite;
animation: sdb03 3s infinite;
box-sizing: border-box;
}
@-webkit-keyframes sdb03 {
0% {
opacity: 0;
}
30% {
opacity: 1;
}
60% {
box-shadow: 0 0 0 60px rgba(255, 255, 255, .1);
opacity: 0;
}
100% {
opacity: 0;
}
}
@keyframes sdb03 {
0% {
opacity: 0;
}
30% {
opacity: 1;
}
60% {
box-shadow: 0 0 0 60px rgba(255, 255, 255, .1);
opacity: 0;
}
100% {
opacity: 0;
}
}
// Survival Shaped by You section
.survivalShapedContainerPlugins {
display: flex;
justify-content: space-between;
}
.pluginColumn {
width: 250px;
}
.pluginColumn div {
margin-top: 30px;
}
.pluginColumn h2 {
color: var(--white);
font-size: 1.4em;
margin-bottom: 10px;
}
.pluginColumn p {
color: var(--white);
}
// Community builds section, removed if on mobile
.sliderWrapper, .sliderContent {
display: flex;
margin: auto;
}
.sliderContent {
position: relative;
box-shadow: 8px 8px 25px 0 rgba(0, 0, 0, 0.2);
}
.indexSlider {
width: 100%;
height: 100%;
position: relative;
background: rgba(0, 0, 0, 0.9);
font-size: 21px;
text-align: center;
border-radius: 5px;
}
.goLeft, .goRight {
display: block;
text-align: center;
position: absolute;
width: 250px;
}
.goRight:hover, .goLeft:hover {
background: rgba(155, 155, 155, 0.3);
box-shadow: -2px 0 15px rgba(200, 200, 200, 0.5);
cursor: pointer;
}
.goLeft {
height: 100%;
color: white;
left: 0;
}
.goRight {
height: 100%;
color: white;
right: 0;
}
.slide {
border-radius: 5px;
}
.display > span {
width: 700px;
height: 400px;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.dots {
text-align: center;
position: absolute;
bottom: 3%;
left: 0;
right: 0;
margin: 0 auto;
}
.dot {
position: relative;
cursor: pointer;
height: 1rem;
width: 1rem;
border: 1px solid rgb(255, 255, 255);
opacity: 0.5;
margin: 0 5px;
border-radius: 50%;
display: inline-block;
transition: all 0.3s ease;
}
.dot:hover {
box-shadow: -2px 0 10px 5px rgba(200, 200, 200, 0.3);
background-color: rgba(200, 200, 200, 0.8);
border: 1px solid rgb(255, 255, 255);
transform: scale(1.2);
}
.active-dot {
background-color: var(--link-color);
}
.inactive-dot {
background-color: rgba(0, 0, 0, 0);
}
// Different resolution changes
@media (max-width: 1150px) {
.container {
width: 90%;
}
h1 {
font-size: 3em;
}
.title h2 {
font-size: 1em;
}
#homeh2 {
font-size: 1.6em;
}
.title {
height: calc(100% - 150px);
margin-top: 0;
}
.container, .customContainer {
width: 90%;
}
#header-img {
width: 45%;
}
}
@media (max-width: 900px) {
.removemobile {
display: none;
}
}
@media (max-width: 690px) {
#discordwidget {
margin: 0 auto;
width: 60%;
max-width: 380px;
height: 400px;
}
#discordp {
margin: 50px auto;
}
.title h2 {
font-size: 0.9em;
}
#homeh2 {
font-size: 1.4em;
width: 100%;
}
#header-img {
width: 65%;
}
.title {
height: calc(100% - 110px);
margin-top: 100px;
}
.columnContainer {
width: 100%;
text-align: center;
}
main .container {
text-align: center;
width: 90%;
padding: 30px 0;
}
.paragraph {
width: 80%;
margin: 0 auto 30px auto;
}
.survivalShapedContainerPlugins {
display: block;
}
.pluginColumn {
margin: 30px auto;
}
#quote {
font-size: 1em;
}
}