💅 style(root): changes in css

This commit is contained in:
alokify
2024-11-07 20:15:20 +05:30
parent e155bd20db
commit 8171f64f92
2 changed files with 364 additions and 352 deletions

View File

@@ -90,7 +90,7 @@
<path d="M7.646 15.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 14.293V5.5a.5.5 0 0 0-1 0v8.793l-2.146-2.147a.5.5 0 0 0-.708.708z"/> <path d="M7.646 15.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 14.293V5.5a.5.5 0 0 0-1 0v8.793l-2.146-2.147a.5.5 0 0 0-.708.708z"/>
</svg> </svg>
</a> </a>
<a href="/documentation" class="btn glow-on-hover"> <a href="/documentation" target="_blank" class="btn glow-on-hover">
Documentation Documentation
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-journal-text" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-journal-text" viewBox="0 0 16 16">
<path d="M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5"/> <path d="M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5"/>

710
style.css
View File

@@ -1,617 +1,629 @@
:root { :root {
--primary-blue: #754ffe; --primary-blue: #754ffe;
--dark-blue: #1a1f2c; --dark-blue: #1a1f2c;
--gold: #f0a500; --gold: #f0a500;
--purple: #8957e5; --purple: #8957e5;
} }
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
font-family: "Ubuntu", sans-serif; font-family: "Ubuntu", sans-serif;
} }
body { body {
background-color: var(--dark-blue); background-color: var(--dark-blue);
color: white; color: white;
line-height: 1.6; line-height: 1.6;
justify-content: center; justify-content: center;
} }
.navbar { .navbar {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
position: fixed; position: fixed;
width: 100%; width: 100%;
top: 0; top: 0;
background-color: rgba(26, 31, 44, 0.0); background-color: rgba(26, 31, 44, 0);
z-index: 1000; z-index: 1000;
padding-inline:5rem; padding-inline: 5rem;
backdrop-filter:blur(5px); backdrop-filter: blur(5px);
border: }
}
.logo { .logo {
height: 40px; height: 40px;
} }
a { a {
color: #000; color: #000;
position: relative; position: relative;
text-decoration: none; text-decoration: none;
} }
a::before { a::before {
background: #754ffe; background: #754ffe;
content: ""; content: "";
inset: 0; inset: 0;
position: absolute; position: absolute;
transform: scaleX(0); transform: scaleX(0);
transform-origin: left; transform-origin: left;
transition: transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out;
z-index: -1; z-index: -1;
} }
a:hover::before {
transform: scaleX(1);
transform-origin: left;
}
a:hover::before {
transform: scaleX(1);
transform-origin: left;
}
.nav-links { .nav-links {
display: flex; display: flex;
gap: 2rem; gap: 2rem;
} }
.nav-links a { .nav-links a {
color: white; color: white;
text-decoration: none; text-decoration: none;
font-size: 0.9rem; font-size: 0.9rem;
text-transform: uppercase; text-transform: uppercase;
font-weight: 800; font-weight: 800;
} }
.hero { .hero {
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 5%; padding: 0 5%;
background-image: url(/assets/background.png); background-image: url(/assets/background.png);
position: relative; position: relative;
overflow: hidden; overflow: hidden;
background-position: bottom; background-position: bottom;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
} }
.hero-content { .hero-content {
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: 4rem; gap: 4rem;
align-items: center; align-items: center;
} }
.hero-text h1 { .hero-text h1 {
font-size: 3rem; font-size: 3rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
line-height: 1.2; line-height: 1.2;
} }
.hero-text h2 { .hero-text h2 {
font-size: 2rem; font-size: 2rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
line-height: 1.2; line-height: 1.2;
} }
.hero-text p { .hero-text p {
font-size: 1.1rem; font-size: 1.1rem;
margin-bottom: 2rem; margin-bottom: 2rem;
color: #ffffff; color: #ffffff;
} }
.cta-buttons { .cta-buttons {
display: flex; display: flex;
gap: 1rem; gap: 1rem;
} }
.glow-on-hover { .glow-on-hover {
border: none; border: none;
outline: none; outline: none;
color: #fff; color: #fff;
background: #111; background: #111;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
z-index: 0; z-index: 0;
border-radius: 10px; border-radius: 10px;
} }
.glow-on-hover:before { .glow-on-hover:before {
content: ''; content: "";
background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000); background: linear-gradient(
position: absolute; 45deg,
top: -2px; #ff0000,
left:-2px; #ff7300,
background-size: 400%; #fffb00,
z-index: -1; #48ff00,
filter: blur(5px); #00ffd5,
width: calc(100% + 4px); #002bff,
height: calc(100% + 4px); #7a00ff,
animation: glowing 20s linear infinite; #ff00c8,
opacity: 0; #ff0000
transition: opacity .3s ease-in-out; );
border-radius: 10px; position: absolute;
top: -2px;
left: -2px;
background-size: 400%;
z-index: -1;
filter: blur(5px);
width: calc(100% + 4px);
height: calc(100% + 4px);
animation: glowing 20s linear infinite;
opacity: 0;
transition: opacity 0.3s ease-in-out;
border-radius: 10px;
} }
.glow-on-hover:active { .glow-on-hover:active {
color: #000 color: #000;
} }
.glow-on-hover:active:after { .glow-on-hover:active:after {
background: transparent; background: transparent;
} }
.glow-on-hover:hover:before { .glow-on-hover:hover:before {
opacity: 1; opacity: 1;
} }
.glow-on-hover:after { .glow-on-hover:after {
z-index: -1; z-index: -1;
content: ''; content: "";
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #111; background: #111;
left: 0; left: 0;
top: 0; top: 0;
border-radius: 10px; border-radius: 10px;
} }
@keyframes glowing { @keyframes glowing {
0% { background-position: 0 0; } 0% {
50% { background-position: 400% 0; } background-position: 0 0;
100% { background-position: 0 0; } }
50% {
background-position: 400% 0;
}
100% {
background-position: 0 0;
}
} }
.btn { .btn {
padding: 0.8rem 1.5rem; padding: 0.8rem 1.5rem;
border-radius: 4px; border-radius: 4px;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
text-transform: uppercase; text-transform: uppercase;
font-size: 0.9rem; font-size: 0.9rem;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
transition: transform 0.2s; transition: transform 0.2s;
} }
.btn:hover { .btn:hover {
transform: translateY(-2px); transform: translateY(-2px);
} }
.btn-primary { .btn-primary {
background-color: var(--gold); background-color: var(--gold);
color: black; color: black;
} }
.btn-secondary { .btn-secondary {
background-color: var(--primary-blue); background-color: var(--primary-blue);
color: white; color: white;
} }
.features { .features {
padding: 5rem 5%; padding: 5rem 5%;
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
} }
.section-title { .section-title {
text-align: center; text-align: center;
color: var(--purple); color: var(--purple);
font-size: 2.5rem; font-size: 2.5rem;
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.features-grid { .features-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 2rem; gap: 2rem;
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
} }
.feature-card { .feature-card {
padding: 2rem; padding: 2rem;
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.05);
border-radius: 8px; border-radius: 8px;
transition: transform 0.3s; transition: transform 0.3s;
} }
.feature-card:hover { .feature-card:hover {
transform: translateY(-5px); transform: translateY(-5px);
} }
.feature-card h3 { .feature-card h3 {
color: var(--primary-blue); color: var(--primary-blue);
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.laptop-showcase { .laptop-showcase {
padding: 5rem 5%; padding: 5rem 5%;
text-align: center; text-align: center;
} }
.laptop-image { .laptop-image {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
} }
.tools-section { .tools-section {
padding: 5rem 5%; padding: 5rem 5%;
text-align: center; text-align: center;
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
} }
.tools-grid { .tools-grid {
display: grid; display: grid;
grid-template-columns: repeat(6, 1fr); grid-template-columns: repeat(6, 1fr);
gap: 2rem; gap: 2rem;
max-width: 1000px; max-width: 1000px;
margin: 3rem auto; margin: 3rem auto;
} }
.tool-icon { .tool-icon {
width: 64px; width: 64px;
height: 64px; height: 64px;
margin: 0 auto; margin: 0 auto;
transition: transform 0.3s; transition: transform 0.3s;
} }
.tool-icon:hover { .tool-icon:hover {
transform: scale(1.1); transform: scale(1.1);
} }
.kali-everywhere { .kali-everywhere {
padding: 5rem 5%; padding: 5rem 5%;
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
} }
.platform-showcase { .platform-showcase {
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 2rem; gap: 2rem;
margin-bottom: 4rem; margin-bottom: 4rem;
padding: 2rem 0; padding: 2rem 0;
} }
.platform-card { .platform-card {
flex: 1; flex: 1;
max-width: 300px; max-width: 300px;
text-align: center; text-align: center;
padding: 1rem; padding: 1rem;
} }
.platform-card.featured { .platform-card.featured {
transform: scale(1.1); transform: scale(1.1);
} }
.platform-image { .platform-image {
width: 100%; width: 100%;
height: auto; height: auto;
border-radius: 8px; border-radius: 8px;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.platform-grid { .platform-grid {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 2rem; gap: 2rem;
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
} }
.platform-item { .platform-item {
text-align: center; text-align: center;
padding: 1.5rem; padding: 1.5rem;
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.05);
border-radius: 8px; border-radius: 8px;
transition: transform 0.3s; transition: transform 0.3s;
} }
.platform-item:hover { .platform-item:hover {
transform: translateY(-5px); transform: translateY(-5px);
} }
.platform-icon { .platform-icon {
width: 64px; width: 64px;
height: 64px; height: 64px;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.desktop-environments { .desktop-environments {
padding: 10px; padding: 10px;
} }
.desktop-grid { .desktop-grid {
display: grid; display: grid;
gap: 3rem; gap: 3rem;
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
} }
.desktop-card { .desktop-card {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: 2rem; gap: 2rem;
padding: 2rem; padding: 2rem;
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.05);
border-radius: 8px; border-radius: 8px;
align-items: center; align-items: center;
} }
.desktop-image { .desktop-image {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.hero-content { .hero-content {
grid-template-columns: 1fr; grid-template-columns: 1fr;
text-align: center; text-align: center;
} }
.nav-links { .nav-links {
display: none; display: none;
} }
.hero-text h1 { .hero-text h1 {
font-size: 2rem; font-size: 2rem;
} }
.cta-buttons { .cta-buttons {
justify-content: center; justify-content: center;
} }
.kali-dragon { .kali-dragon {
margin: 0 auto; margin: 0 auto;
} }
.features-grid { .features-grid {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.tools-grid { .tools-grid {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 1rem; gap: 1rem;
} }
.platform-showcase { .platform-showcase {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.platform-card.featured { .platform-card.featured {
transform: none; transform: none;
} }
.platform-grid { .platform-grid {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
} }
.desktop-card { .desktop-card {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.desktop-content { .desktop-content {
order: -1; order: -1;
} }
} }
@media (max-width: 480px) { @media (max-width: 480px) {
.platform-grid { .platform-grid {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
} }
.footer { .footer {
background-color: #000; background-color: #000;
color: white; color: white;
padding: 4rem 5% 2rem; padding: 4rem 5% 2rem;
margin-top: 4rem; margin-top: 4rem;
} }
.footer-container { .footer-container {
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
} }
.theme-toggle { .theme-toggle {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 1rem; gap: 1rem;
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.switch { .switch {
position: relative; position: relative;
display: inline-block; display: inline-block;
width: 60px; width: 60px;
height: 30px; height: 30px;
} }
.switch input { .switch input {
opacity: 0; opacity: 0;
width: 0; width: 0;
height: 0; height: 0;
} }
.slider { .slider {
position: absolute; position: absolute;
cursor: pointer; cursor: pointer;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background-color: #ccc; background-color: #ccc;
transition: .4s; transition: 0.4s;
} }
.slider:before { .slider:before {
position: absolute; position: absolute;
content: ""; content: "";
height: 22px; height: 22px;
width: 22px; width: 22px;
left: 4px; left: 4px;
bottom: 4px; bottom: 4px;
background-color: white; background-color: white;
transition: .4s; transition: 0.4s;
} }
input:checked + .slider { input:checked + .slider {
background-color: var(--primary-blue); background-color: var(--primary-blue);
} }
input:checked + .slider:before { input:checked + .slider:before {
transform: translateX(30px); transform: translateX(30px);
} }
.slider.round { .slider.round {
border-radius: 34px; border-radius: 34px;
} }
.slider.round:before { .slider.round:before {
border-radius: 50%; border-radius: 50%;
} }
.footer-content { .footer-content {
display: grid; display: grid;
grid-template-columns: repeat(6, 1fr); grid-template-columns: repeat(6, 1fr);
gap: 2rem; gap: 2rem;
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.footer-section { .footer-section {
grid-column: span 1; grid-column: span 1;
} }
.footer-section h3 { .footer-section h3 {
color: white; color: white;
font-size: 1rem; font-size: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
font-weight: bold; font-weight: bold;
} }
.footer-section ul { .footer-section ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
} }
.footer-section ul li { .footer-section ul li {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
.footer-section a { .footer-section a {
color: #a0a0a0; color: #a0a0a0;
text-decoration: none; text-decoration: none;
transition: color 0.3s; transition: color 0.3s;
font-size: 0.9rem; font-size: 0.9rem;
} }
.footer-section a:hover { .footer-section a:hover {
color: white; color: white;
} }
.with-icon { .with-icon {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
} }
.with-icon img { .with-icon img {
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.footer-logo { .footer-logo {
grid-column: span 1; grid-column: span 1;
} }
.footer-dragon { .footer-dragon {
width: 100px; width: 100px;
height: auto; height: auto;
} }
.footer-bottom { .footer-bottom {
text-align: center; text-align: center;
padding-top: 2rem; padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1); border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem; font-size: 0.9rem;
color: #a0a0a0; color: #a0a0a0;
} }
.section-subtitle { .section-subtitle {
text-align: center; text-align: center;
margin-bottom: 2%; margin-bottom: 2%;
} }
.follow-us { .follow-us {
margin-top: 2rem; margin-top: 2rem;
} }
@media (max-width: 1024px) { @media (max-width: 1024px) {
.footer-content { .footer-content {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
} }
.footer-logo { .footer-logo {
grid-column: 3; grid-column: 3;
grid-row: 1; grid-row: 1;
justify-self: end; justify-self: end;
} }
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.footer-content { .footer-content {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
} }
.footer-logo { .footer-logo {
grid-column: 1 / -1; grid-column: 1 / -1;
grid-row: 1; grid-row: 1;
justify-self: center; justify-self: center;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
} }
@media (max-width: 480px) { @media (max-width: 480px) {
.footer-content { .footer-content {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
nav.navbar{ nav.navbar {
width: 100%; width: 100%;
} }
.footer-section { .footer-section {
text-align: center; text-align: center;
} }
.with-icon { .with-icon {
justify-content: center; justify-content: center;
} }
.desktop-card{ .desktop-card {
width: 460px; width: 460px;
text-align: left; text-align: left;
} }
.desktop-card p { .desktop-card p {
text-align: left; text-align: left;
}
}
} }