From 73511da2e610d9e39bb3c21b5d2f5b3532d0daaf Mon Sep 17 00:00:00 2001 From: ayan878 Date: Thu, 9 Mar 2023 22:38:21 +0530 Subject: [PATCH 1/4] title update --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 64c5cda..9975663 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@
+ + diff --git a/majicNav.css b/majicNav.css new file mode 100644 index 0000000..1627dec --- /dev/null +++ b/majicNav.css @@ -0,0 +1,145 @@ +* +{ + margin: 0; + padding: 0; + box-sizing: border-box; +} +body +{ + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; + background: #222327; +} +.navigation +{ + position: relative; + width: 400px; + height: 60px; + background: #6d1e1e; + display: flex; + justify-content: center; + align-items: center; + border-radius: 10px; +} +.navigation ul +{ + display: flex; + width: 350px; +} +.navigation ul li +{ + list-style: none; + position: relative; + /* 350 / 5 = 70 */ + width: 70px; + height: 60px; + z-index: 2; +} +.navigation ul li a +{ + position: relative; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + width: 100%; + text-align: center; +} +.navigation ul li a .icon +{ + position: relative; + display: block; + line-height: 65px; + font-size: 1.5em; + width: 55px; + height: 55px; + border-radius: 50%; + transition: 0.5s; + transition-delay: 0s; + color: #222327; +} +.navigation ul li.active a .icon +{ + transform: translateY(-27px); + color: #fff; + transition-delay: 0.25s; + background: var(--clr); +} +.navigation ul li a .icon::before +{ + content: ''; + position: absolute; + top: 10px; + left: 0; + width: 100%; + height: 100%; + transition: 0.5s; + transition-delay: 0s; + border-radius: 50%; + background: var(--clr); + filter: blur(5px); + opacity: 0; +} +.navigation ul li.active a .icon::before +{ + transition-delay: 0.5s; + opacity: 0.5; +} +.indicator +{ + position: absolute; + top: -35px; + width: 70px; + height: 70px; + background: #fff; + border-radius: 50%; + z-index: 1; + transition: 0.5s; +} +.indicator::before +{ + content: ''; + position: absolute; + top: 5px; + left: -28px; + width: 30px; + height: 30px; + background: transparent; + border-radius: 50%; + box-shadow: 15px 18px #fff; +} +.indicator::after +{ + content: ''; + position: absolute; + top: 5px; + right: -28px; + width: 30px; + height: 30px; + background: transparent; + border-radius: 50%; + box-shadow: -15px 18px #fff; +} + +.navigation ul li:nth-child(1).active ~ .indicator +{ + transform: translateX(calc(70px * 0)); +} +.navigation ul li:nth-child(2).active ~ .indicator +{ + transform: translateX(calc(70px * 1)); +} +.navigation ul li:nth-child(3).active ~ .indicator +{ + transform: translateX(calc(70px * 2)); +} +.navigation ul li:nth-child(4).active ~ .indicator +{ + transform: translateX(calc(70px * 3)); +} +.navigation ul li:nth-child(5).active ~ .indicator +{ + transform: translateX(calc(70px * 4)); +} \ No newline at end of file diff --git a/majicNav.html b/majicNav.html new file mode 100644 index 0000000..e101269 --- /dev/null +++ b/majicNav.html @@ -0,0 +1,64 @@ + + + +Magic Menu Indicator | 03 + + + + + + + + + + + + \ No newline at end of file diff --git a/responsive.css b/responsive.css new file mode 100644 index 0000000..cd814bf --- /dev/null +++ b/responsive.css @@ -0,0 +1,58 @@ +/* for small device/smartphones */ + +@media (max-width: 537px) { + .form { + /* background-color: red; + width: 40%; */ + display: none; + } + .form > h2 { + font-size: 1.3rem; + color: yellow; + } + .hero .content, + .hero .form { + width: 50%; + } + + body{ + background-color: white !important; + } + .navbar{ + + + + } + + + .nav { + width: 50%; + display: flex; + flex-direction: row; + gap: 0.5rem; + /* box-shadow: 14px 0 6px 4px rgba(255, 255, 255, 0.25); */ + background: blue; + display: inline-block; +margin-top: 60px; +position: relative; + +} +.navbar{ + background-color: red !important; + margin: 2px 5px 3px 5px; +} +nav h1{ + position:absolute; + left: -10; + bottom: 0; +} + +.content{ + display: none; + width: 45%; + min-height: 800px; + background-color: orange; +} +} + + diff --git a/style.css b/style.css index d63d0ad..eca2b4a 100644 --- a/style.css +++ b/style.css @@ -14,16 +14,17 @@ box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);*/ margin: 0; padding: 0; box-sizing: border-box; + font-family: "inter", sans-serif; } body { + height: 100vh; font-family: "inter", sans-serif; /* background: linear-gradient( to top, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 50% - ), - url("2.jpg"); - */ + ) + url("2.jpg"); */ background: linear-gradient( 138deg, @@ -31,8 +32,9 @@ body { rgb(0, 8, 187) 84.4%, rgb(255, 255, 255) 119.7% ); - border-style: dotted; - + background-size: cover; + + } .nav { @@ -41,10 +43,10 @@ body { display: flex; flex-direction: row; gap: 0.5rem; - box-shadow: 0 0 6px rgba(255, 255, 255, 0.25); + box-shadow: 14px 0 6px 4px rgba(255, 255, 255, 0.25); } .navbar { - width: 8rem; + width: 7.7rem; height: 2rem; margin: 22px 10px; @@ -59,6 +61,12 @@ body { border-radius: 0.5rem; font-size: 1rem; font-weight: bold; + list-style: none; + text-align: center; + + + + /* display: inline-block; */ } .navbar a { @@ -85,9 +93,8 @@ body { padding-top: 10px; } .logo span { - color: #0073ff; + color: #6217e4; } - ul li a:hover { color: #0073ff; } @@ -96,9 +103,9 @@ ul li a:hover { margin-top: 22px; font-family: "inter", sans-serif; width: 200px; - height: 24px; + height: 2rem; background: transparent; - border: 1px solid #0073ff; + border: 1px solid #fff; color: #fff; border-right: none; font-size: 16px; @@ -108,15 +115,15 @@ ul li a:hover { border-bottom-left-radius: 8px; } .srch::placeholder { - color: grey; + color: #fff; } .search_btn { width: 60px; - height: 24px; - background: #0073ff; - border: 2px solid #0073ff; + height: 2rem; + background: #3de417; + border: 1px solid #ffffff; margin-left: 22px; - color: #fff; + color: #0073ff; font-size: 12px; margin: 22px auto; } @@ -126,6 +133,7 @@ ul li a:hover { .srch:focus { outline: none; } + /* description/hero section */ .hero { @@ -140,7 +148,6 @@ ul li a:hover { right: 20%; color: #fff; position: relative; - /* background-color: red; */ } .content h1 { @@ -187,7 +194,7 @@ ul li a:hover { background-color: #fff; } .content span { - color: #0073ff; + color: #6217e4; font-size: 60px; } @@ -243,7 +250,7 @@ ul li a:hover { margin: 10px auto; font-family: "inter" sans-serif; } -.form p{ +.form p { color: #fff; } .form input:focus { @@ -252,7 +259,7 @@ ul li a:hover { ::placeholder { color: #fff; font-family: "inter", sans-serif; - font-size: 16px; + font-size: 1rem; } .btnn { @@ -313,20 +320,5 @@ ul li a:hover { .icon ion-icon:hover { color: #0073ff; } -/* making responsive */ -/* small device/smartphones */ - -/* @media only screen and(max-width:537px) { - .form{ - background: red; - } - form h1{ - color: pink; - font-size: 1rem; - } -} */ - - -