Skip to content

Commit

Permalink
*main-page
Browse files Browse the repository at this point in the history
  • Loading branch information
JH-anfseo committed Jan 16, 2024
1 parent be93966 commit c86b0a9
Show file tree
Hide file tree
Showing 8 changed files with 206 additions and 57 deletions.
1 change: 0 additions & 1 deletion assets/icons/arrow-right.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/icons/instagram.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/icons/twitter.svg

This file was deleted.

Binary file added assets/images/arrow-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
173 changes: 140 additions & 33 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: 9.375rem;
margin-top: 10rem;
padding: 1rem;
}
.header-container > div {
Expand Down Expand Up @@ -49,9 +49,10 @@
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-primary);
z-index: 1;
position: fixed;
top: 0;
left: 0;
}

.nav-title-link {
Expand All @@ -70,16 +71,6 @@
cursor: pointer;
}

/* Navbar */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 20;
background: var(--bg-primary);
}

.navbar .container {
display: flex;
align-items: center;
Expand Down Expand Up @@ -125,7 +116,7 @@
width: 100%;
height: 100%;
position: fixed;
background: rgba(212, 212, 212, 0.428);
background: rgba(212, 212, 212, 0.6);
}
.bar {
display: block;
Expand All @@ -148,8 +139,62 @@
border-radius: 50%;
}

/* About Section */
/* Main page Section */
.main-page {
width: 90%;
height: 46.875rem;
display: flex;
flex-direction: column;
align-items: flex-start;
flex-wrap: wrap;
gap: 3rem;
margin: 0 auto;
}
.main-page .main-page-title {
text-transform: uppercase;
line-height: 1.1;
letter-spacing: -5px;
font-size: var(--size-large);
font-family: "Montserrat", sans-serif;
font-weight: var(--weight-Exbold);
}
.main-page .main-page-title .main-page-animation {
height: 7.1875rem;
overflow-y: hidden;
}
.slider {
position: relative;
animation: rotate 5s ease-in-out infinite;
}
.main-page .main-page-title .slider .slide:nth-child(1) {
background-color: #f95700;
}
.main-page .main-page-title .slider .slide:nth-child(2) {
background-color: #ffdb26;
}
.main-page .main-page-title .slider .slide:nth-child(3) {
background-color: #16b0e4;
}

@keyframes rotate {
0%,
25% {
transform: translateY(0);
}
30%,
60% {
transform: translateY(calc(var(--size-large) * -1.1));
}
65%,
90% {
transform: translateY(calc(var(--size-large) * -2.2));
}
95%,
100% {
transform: translateY(0);
}
}
/* About Section */
#about-section {
max-width: var(--width-medium);
display: flex;
Expand Down Expand Up @@ -271,6 +316,30 @@
}
/* Extra large devices (large laptops and desktops, 1200px and below) */
@media only screen and (max-width: 1200px) {
.main-page .main-page-title {
font-size: var(--size-medium);
}
.main-page .main-page-title .main-page-animation {
height: 85px;
}
@keyframes rotate {
0%,
25% {
transform: translateY(0);
}
30%,
60% {
transform: translateY(calc(var(--size-medium) * -1.1));
}
65%,
90% {
transform: translateY(calc(var(--size-medium) * -2.2));
}
95%,
100% {
transform: translateY(0);
}
}
#main-content {
width: var(--width-small);
margin: 100px auto;
Expand All @@ -288,6 +357,9 @@

/* Small devices (portrait tablets and large phones, 800px and below) */
@media only screen and (max-width: 800px) {
.main-page {
width: 100%;
}
.btn-group {
flex-direction: column;
}
Expand All @@ -314,6 +386,35 @@
@media (max-width: 768px) {
.header-container {
margin-top: 7rem;
}
.main-page {
height: 32.5rem;
}
.main-page .main-page-title {
font-size: var(--size-small);
}
.main-page .main-page-title .main-page-animation {
height: 4.0625rem;
}
@keyframes rotate {
0%,
25% {
transform: translateY(0);
}
30%,
60% {
transform: translateY(calc(var(--size-small) * -1.1));
}
65%,
90% {
transform: translateY(calc(var(--size-small) * -2.2));
}
95%,
100% {
transform: translateY(0);
}
}
.content-text {
text-align: center;
}
.content-text .main-title h2 {
Expand All @@ -324,11 +425,11 @@
@media (max-width: 670px) {
.navbar .nav-menu {
position: fixed;
right: -97vw;
right: -140vw;
top: 6rem;
flex-direction: column;
width: 100%;
transition: 0.3s;
transition: 0.5s;
padding: 2rem;
border-radius: 5px;
align-items: flex-start;
Expand Down Expand Up @@ -364,7 +465,6 @@
}
.hamburger-bg.active {
display: block;
z-index: 1;
}

.hamburger.active {
Expand All @@ -390,24 +490,31 @@
height: 20rem;
}
}

@media (max-width: 600px) {
.header-container .btn {
border-radius: 2rem;
width: 50%;
.main-page .main-page-title {
font-size: var(--size-exsmall);
}
.main-page .main-page-title .main-page-animation {
height: 2.9375rem;
}
@keyframes rotate {
0%,
25% {
transform: translateY(0);
}
30%,
60% {
transform: translateY(calc(var(--size-exsmall) * -1.1));
}
65%,
90% {
transform: translateY(calc(var(--size-exsmall) * -2.2));
}
95%,
100% {
transform: translateY(0);
}
}
}
/* Icons */

.right-arrow-icon {
width: 16px;
height: 16px;
margin-top: 1px;
}

.footer-icon {
width: 20px;
height: 20px;
}

/* Footer Styling */
Expand Down
29 changes: 23 additions & 6 deletions css/utilities.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
@import url(https://cdn.jsdelivr.net/gh/moonspam/[email protected]/nanumsquare.css);
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&display=swap");
/* variables */
:root {
/* Colors */
--primary-color: #ffc113;
--secondary-color: #ffd35c;
--primary-color: #f95700;
--secondary-color: #fcedda;
--bg-primary: #ffffff;
--text-color: #090909;
--text-color-two: #ffffff;
Expand All @@ -18,17 +19,24 @@
--weight-small: 400;
--weight-semibold: 700;
--weight-bold: 800;
--weight-Exbold: 900;

/* Max width */
--width-small: 800px;
--width-medium: 1100px;
--width-large: 1300px;

/* font-animation */
--size-exsmall: 44px;
--size-small: 60px;
--size-medium: 80px;
--size-large: 110px;
}

[data-theme="dark"] {
--primary-color: #ffc113;
--secondary-color: #e6ae14;
--bg-primary: #090909;
--primary-color: #f95700;
--secondary-color: #f95700;
--bg-primary: #000000;
--text-color: #ffffff;
--text-color-two: #222222;
--text-color-thr: #949494;
Expand Down Expand Up @@ -62,6 +70,15 @@ a {
text-decoration: none;
color: var(--text-color);
}
button {
background: inherit;
border: none;
box-shadow: none;
border-radius: 0;
padding: 0;
overflow: visible;
cursor: pointer;
}

.container {
max-width: var(--width-medium);
Expand All @@ -84,7 +101,7 @@ h2::selection {
padding: 0.75rem 1.9rem;
border-radius: 30px;
text-transform: uppercase;
font-size: 0.75rem;
font-size: 16px;
transition: 0.3s;
}

Expand Down
Loading

0 comments on commit c86b0a9

Please sign in to comment.