From d4e2ed7c53c0d77423109eff8e7d6abbd637f17f Mon Sep 17 00:00:00 2001 From: yashpandav Date: Sat, 18 Jan 2025 16:01:35 +0530 Subject: [PATCH] Improved Home Page UI --- index.html | 823 +++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 581 insertions(+), 242 deletions(-) diff --git a/index.html b/index.html index 8d3a06b..95c3e6f 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,9 @@ src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous" > + + + + + /* Optional: Add a floating animation to the highlight text */ + @keyframes float { + 0% { + transform: translateY(0px); + } + 50% { + transform: translateY(-5px); + } + 100% { + transform: translateY(0px); + } + } + + .highlight-text { + animation: float 3s ease-in-out infinite; + } + + /* Optional: Add a subtle gradient animation to the highlight text */ + @keyframes gradientFlow { + 0% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } + 100% { + background-position: 0% 50%; + } + } + + .highlight-text { + background: linear-gradient(270deg, #ffd465, #ffa500, #ff8c00); + background-size: 200% auto; + animation: gradientFlow 3s ease infinite; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + } + + /* Responsive adjustments */ + @media (max-width: 768px) { + .section-title { + font-size: 24px; + } + + .section-description { + font-size: 16px; + padding: 0 20px; + } + } + + /* Add these CSS rules to ensure no horizontal overflow */ + html, body { + max-width: 100%; + overflow-x: hidden; + } + + .section { + width: 100vw; + max-width: 100vw; + margin: 0; + padding: 0; + box-sizing: border-box; + } + + .options-container { + width: 100%; + max-width: 100%; + margin: 0; + padding: 20px; + box-sizing: border-box; + } + + /* Add responsive adjustments for mobile */ + @media screen and (max-width: 768px) { + .slides-wrapper { + height: 250px; /* Reduced height for tablets */ + } + + .slide-caption { + font-size: 18px; /* Smaller font size for captions */ + padding: 15px; + } + + .prev, .next { + width: 35px; /* Smaller navigation buttons */ + height: 35px; + font-size: 16px; + } + } + + @media screen and (max-width: 480px) { + .slides-wrapper { + height: 200px; /* Further reduced height for mobile phones */ + } + + .slide-caption { + font-size: 16px; + padding: 10px; + } + + .prev, .next { + width: 30px; + height: 30px; + font-size: 14px; + } + + .prev { left: 10px; } + .next { right: 10px; } + + .dot { + height: 12px; + width: 12px; + margin: 0 4px; + } + } + - +