FEWD-CTEC3905/css/styles.css

348 lines
5.9 KiB
CSS
Raw Normal View History

2024-02-04 16:29:54 +00:00
/* MOBILE AND GLOBAL STYLES */
/* applies to screens smaller than 500px (first breakpoint) */
/* and above unless overwritten below */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..600&display=swap');
:root {
--bgColor: #ffffff;
}
2024-02-24 00:07:38 +00:00
2024-02-04 16:29:54 +00:00
body {
font-family: 'Outfit', sans-serif;
font-size: 1.5em;
margin: 0;
padding: 0;
box-sizing: border-box;
}
2024-02-24 00:07:38 +00:00
/* LANDING STYLES */
@keyframes fadeImage {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2024-02-04 16:29:54 +00:00
2024-02-23 23:56:16 +00:00
#landing {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-size: cover;
transition: opacity 1s forwards; /*transition does not work for images*/
position: relative;
}
2024-02-04 16:29:54 +00:00
2024-02-23 23:56:16 +00:00
#landing #background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -2;
}
2024-02-23 23:56:16 +00:00
#landing #background-transition {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0;
transition: opacity 1s;
}
h1 {
font-size: 10vw;
2024-03-08 19:21:51 +00:00
font-weight: 600;
text-align: center;
user-select: none;
}
#titleBanner {
padding-left: 5%;
padding-right: 5%;
transition: color 1s, background-color 1s, border-radius 0.5s ease;
}
#titleBanner:hover {
border-radius: 1em;
}
.black {
background-color: #000;
color: #fff;
mix-blend-mode: multiply;
}
.white {
background-color: #fff;
color: #000;
mix-blend-mode: lighten;
}
#colorSelector {
display: flex;
2024-02-23 23:56:16 +00:00
position: absolute;
top: 0;
right: 0;
margin: 10px;
align-items: center;
padding: 10px;
background-color: #ffffff50;
border-radius: 10px;
}
#colorSelector input {
margin-left: 10px;
}
#colorSelector label {
font-size: 1.5em;
}
2024-02-04 16:29:54 +00:00
/* BELOW LANDING STYLES */
#below-landing {
background-color: #101010;
overflow: auto;
color: white;
padding: 50px;
}
p {
font-weight: 200;
}
2024-03-08 19:21:51 +00:00
h2 {
font-size: 3em;
font-weight: 400;
margin: 0;
text-decoration: underline;
text-decoration-color: var(--bgColor);
2024-03-08 19:21:51 +00:00
}
h3 {
font-size: 1.5em;
font-weight: 300;
margin: 0;
}
.features {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#features-intro p {
2024-03-08 19:24:03 +00:00
text-align: center;
}
#table-heading {
margin-bottom: 25px;
}
.feature-showcase {
display: flex;
flex-direction: column;
border-radius: 40px;
background-color: #181818;
}
.feature-showcase-item {
padding: 30px;
border-bottom: 1px solid var(--bgColor);
}
#modern-css {
border-bottom: none;
}
2024-02-24 00:07:38 +00:00
/* CAROUSEL STYLES */
2024-02-23 23:56:16 +00:00
#carousel {
2024-02-24 00:07:38 +00:00
height: 100vh;
background-color: #101010;
2024-02-23 23:56:16 +00:00
position: relative;
display: flex;
}
#carousel-container {
display: flex;
2024-02-24 00:07:38 +00:00
flex-direction: column;
2024-02-23 23:56:16 +00:00
width: 100%;
padding: 50px 0px;
2024-02-23 23:56:16 +00:00
}
.carousel-item {
position: relative;
display:block;
2024-02-24 15:08:09 +00:00
height: 100px;
2024-02-24 15:12:09 +00:00
width: calc(100% - 34px);
2024-02-24 15:08:09 +00:00
min-height: 100px;
2024-02-24 00:07:38 +00:00
margin: 12px;
border-radius: 52px;
border: 3px solid var(--bgColor);
2024-02-23 23:56:16 +00:00
overflow: hidden;
2024-02-24 00:07:38 +00:00
transition: width 1s ease, height 1s ease;
2024-02-23 23:56:16 +00:00
}
.carousel-item .carousel-id {
position: absolute;
bottom: 0;
left: 0;
2024-02-24 00:12:26 +00:00
transform: translate(10px, 5px);
2024-02-24 15:08:09 +00:00
width: 70px;
height: 70px;
2024-02-23 23:56:16 +00:00
background-color: #202020;
2024-02-24 15:08:09 +00:00
border-radius: 40px;
2024-02-23 23:56:16 +00:00
margin: 0;
margin-bottom: 15px;
border: 3px solid var(--bgColor);
2024-02-23 23:56:16 +00:00
text-shadow: black 5px 5px 5px;
user-select: none;
2024-02-23 23:56:16 +00:00
}
.carousel-item .carousel-title {
position: absolute;
bottom: 0;
left: 0;
2024-02-24 15:08:09 +00:00
transform: translate(100px, -35px);
2024-02-23 23:56:16 +00:00
color: white;
2024-02-24 15:08:09 +00:00
font-size: 25px;
font-weight: 550;
2024-02-23 23:56:16 +00:00
margin: 0;
text-shadow: rgb(0, 0, 0) 3px 3px 3px;
width: 500px;
2024-02-23 23:56:16 +00:00
}
#carousel-container .active {
2024-02-24 00:07:38 +00:00
height:100%;
2024-02-23 23:56:16 +00:00
}
#carousel-container #carousel-1 {
background-image: linear-gradient(to top, #0008, #0000), url("/assets/photos/code-1839406_1920.jpg");
2024-02-23 23:56:16 +00:00
background-size: cover;
background-position: center;
}
#carousel-container #carousel-2 {
background-image: linear-gradient(to top, #000a, #0000), url("/assets/photos/software-3682509_1920.jpg");
2024-02-23 23:56:16 +00:00
background-size: cover;
background-position: center;
}
#carousel-container #carousel-3 {
background-image: linear-gradient(to top, #000a, #0000), url("/assets/photos/keyboard-5466431_1920.jpg");
2024-02-23 23:56:16 +00:00
background-size: cover;
background-position: center;
}
2024-02-04 16:29:54 +00:00
/* TABLET STYLES */
@media screen and (min-width: 500px) {
/* applies to screens wider than 499px */
2024-02-04 16:29:54 +00:00
}
/* DESKTOP STYLES */
@media screen and (min-width: 1000px) {
/* applies to screens wider than 999px */
2024-02-24 00:07:38 +00:00
#carousel {
height: 910px;
}
#carousel-container {
display: flex;
flex-direction: row;
}
.carousel-item {
min-width: 200px;
height: 800px;
width: 150px;
min-width: 150px;
border-radius: 74px;
2024-02-24 15:08:09 +00:00
}
.carousel-item .carousel-id {
width: 120px;
height: 120px;
line-height: 120px;
font-size: 100px;
border-radius: 65px;
2024-02-24 00:07:38 +00:00
}
#carousel-container .active {
width:100%;
height: 800px;
2024-02-24 00:07:38 +00:00
}
2024-02-04 16:29:54 +00:00
2024-02-24 15:08:09 +00:00
.carousel-item .carousel-title {
transform: translate(180px, -50px);
font-size: 50px;
}
.content-column {
max-width: 1300px;
margin: auto;
}
/* BELOW LANDING STYLES */
.feature-showcase {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto;
}
.feature-showcase-item {
padding: 30px;
}
#interactive-ui {
grid-column: 1 / 2;
grid-row: 2 / 3;
border-right: 1px solid var(--bgColor);
}
#responsive-design {
grid-column: 2 / 2;
grid-row: 2 / 3;
}
#user-input {
grid-column: 1 / 2;
grid-row: 3 / 3;
border-right: 1px solid var(--bgColor);
border-bottom: none;
}
#modern-css {
grid-column: 2 / 2;
grid-row: 3 / 3;
}
2024-02-04 16:29:54 +00:00
}