From 9286105b98faf0c102bda94d20001b069da37f27 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Tue, 25 Apr 2023 14:59:51 +0200 Subject: [PATCH] make css menu icon --- css/0-1-nav.css | 12 ++++++ css/0-general.css | 3 ++ css/3-open-sesame.css | 15 +++---- css/4-content.css | 39 ++++++++++-------- index.html | 14 ++++--- js/main.js | 94 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 146 insertions(+), 31 deletions(-) diff --git a/css/0-1-nav.css b/css/0-1-nav.css index e12df54..d758e58 100644 --- a/css/0-1-nav.css +++ b/css/0-1-nav.css @@ -16,6 +16,18 @@ main nav { width: 150px; float: left; } +.icon-burger{ + cursor: pointer; + width: 40px; + height: 1em; + float: left; + margin-top: 0.3rem; +} +.icon-burger .line{ + border-top: 2px solid #fff; + margin-bottom: 6px; + display: block; +} .nav-main { text-align: center; diff --git a/css/0-general.css b/css/0-general.css index 6a679e4..bff3a2a 100644 --- a/css/0-general.css +++ b/css/0-general.css @@ -24,3 +24,6 @@ main section h2 { /* Secondary 100 */ color: #FFFDFC; } +img{ + max-width: 100vw; +} diff --git a/css/3-open-sesame.css b/css/3-open-sesame.css index a474f9a..798d43a 100644 --- a/css/3-open-sesame.css +++ b/css/3-open-sesame.css @@ -2,12 +2,9 @@ #open { box-sizing: border-box; - position: absolute; - width: 1177px; + position: relative; - left: calc(50% - 1177px / 2 - 0.5px); - top: 100px; - font-family: 'GT Walsheim Pro'; + top: 223vh; font-style: normal; font-weight: 600; font-size: 200px; @@ -15,14 +12,14 @@ text-align: center; letter-spacing: -0.04em; color: rgba(248, 243, 241, 0.1); - backdrop-filter: blur(7.5px); - height: 180px; + height: 100vh; padding-top: 310px; padding-bottom: 310px; - background: url('/img/unlock.png') bottom center no-repeat; + color: rgba(248, 243, 241, 0.1); } -#open .text{ + +#open .text { color: #fff; margin-bottom: 400px; } diff --git a/css/4-content.css b/css/4-content.css index 15d775f..21c29f2 100644 --- a/css/4-content.css +++ b/css/4-content.css @@ -1,21 +1,26 @@ #content_all { position: relative; - top:200vh; + top: 200vh; padding-top: 100px; - background: url('/img/bg_content.png'); - background-size: cover; color: #FFFDFC; } -#content_all .columns{ +#content_all_img{ + background: url('/img/bg_content.png'); + background-size: cover; +} + +#content_all .columns { margin: 0 auto; max-width: 80vw; } -#content_all .text{ + +#content_all .text { padding-top: 1vh; padding-left: 80px; } -#content_all .color-emphasis{ + +#content_all .color-emphasis { color: #1E33DA; } @@ -27,41 +32,41 @@ margin-left: 10vw; } -#content{ +#content { height: 200px; min-height: 200px; } -#content .first { +#content h2 { + margin-top: 33vh; +} + +#content_first { + + opacity: 0; width: 1680px; height: 35px; - margin-bottom: 40px; font-style: normal; font-weight: 600; font-size: 40px; line-height: 95%; - text-align: center; letter-spacing: 0.2em; text-transform: uppercase; - color: #E77064; - backdrop-filter: blur(5px); - flex: none; order: 0; flex-grow: 0; - } -#content .second{ - margin-bottom: 100px; +#content_second { + opacity: 0; + margin-bottom: 100px; width: 1680px; height: 170px; - font-family: 'GT Walsheim Pro'; font-style: normal; font-weight: 700; diff --git a/index.html b/index.html index 26b07c3..6005249 100644 --- a/index.html +++ b/index.html @@ -65,17 +65,17 @@

- Open Sesame + Open Sesame

-

Transactional

-

Content

- +

Transactional

+

Content

+

@@ -205,7 +205,11 @@