From 04da92ecd0a05cc71508f2ecfc5a0e7f6556b09e Mon Sep 17 00:00:00 2001 From: vikash <120444720+vikashmurugesh@users.noreply.github.com> Date: Sat, 19 Oct 2024 03:47:43 +0530 Subject: [PATCH] Update styles.css Contact page seems to have a text color of white and need improvement in UI issue Solved --- styles.css | 455 ++++++----------------------------------------------- 1 file changed, 45 insertions(+), 410 deletions(-) diff --git a/styles.css b/styles.css index 5179299..8b30361 100644 --- a/styles.css +++ b/styles.css @@ -1,19 +1,19 @@ - /* Reset styles */ * { margin: 0; padding: 0; + box-sizing: border-box; text-decoration: none; - color: #fff; + color: inherit; } /* Base Styles */ body { font-family: "Poppins", sans-serif; - margin: 0; - padding: 0; background-color: #f4f4f4; /* Light background */ color: #333; /* Dark text color */ + margin: 0; + padding: 0; transition: background-color 0.3s, color 0.3s; } @@ -23,126 +23,13 @@ body.dark-theme { color: #dfe1e5; /* Light text color */ } -.header-container { - display: flex; /* Flexbox for aligning items */ - justify-content: space-between; /* Space between title and nav */ - align-items: center; /* Center vertically */ -} - -header { - background: rgba(144, 214, 15, 0.9); /* Blue background color */ - color: white; /* White text color */ - padding: 20px; /* Padding around the header */ -} - -h1 { - font-size: 24px; /* Font size for header title */ -} - -nav ul { - list-style: none; /* Remove bullet points */ - display: flex; /* Flexbox for horizontal layout */ -} - -nav ul li { - margin-left: 20px; /* Space between nav items */ -} - -nav ul li a { - color: white; /* Link color */ - text-decoration: none; /* Remove underline */ - transition: color 0.3s; /* Smooth color transition */ -} - -nav ul li a:hover { - color: #ff85a1; /* Change color on hover */ -} -/* General Styles */ -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -body { - font-family: Arial, sans-serif; - margin: 0; - padding: 0; - background-color: #f9f9f9; - color: #dfe1e5; - background: linear-gradient(135deg, #1c1f24, #2d3b45, #000000); -} - -/* Keyframes for Confetti Animation */ -@keyframes fadeIn { - from { - opacity: 0; - transform: scale(0.95); - } - to { - opacity: 1; - transform: scale(1); - } -} - -@keyframes fadeOut { - from { - opacity: 1; - } - to { - opacity: 0.2; - } -} - -@keyframes fall { - to { - transform: translateY(100vh); - opacity: 1; - } -} - -.confetti { - position: fixed; - width: 12px; - height: 12px; - background-color: rgb(97, 5, 5); - top: -50px; - animation: fall linear forwards, fadeOut ease-out forwards; -} - -body { - background: linear-gradient(135deg, #1c1f24, #2d3b45, #000000); - font-family: "Poppins", sans-serif; - color: #dfe1e5; /* Light text color */ - margin: 0; /* Remove default margin */ - -} - -.badge { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - border-radius: 10px; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); - height: calc(100vh - 60px); -} - -.badge img { - width: 250px; - height: 210px; /* reduce the height of badge image for better user experience */ - transition: transform 0.3s ease; /* Smooth transition */ -} - - -/* HEADER CSS */ -/* Header container styling */ +/* Header Styles */ header { display: block; width: 100%; padding: 20px; background-color: #1c1f24; /* Dark background */ - border-bottom: 2px solid #58a6ff; /* Border for separation */ + border-bottom: 2px solid #58a6ff; } .header-container { @@ -151,7 +38,6 @@ header { align-items: center; max-width: 1200px; margin: 0 auto; - } .logo { @@ -172,29 +58,21 @@ header { } nav { - font-size: 18px; display: flex; align-items: center; + font-size: 18px; } .nav-links ul { - width: 100%; list-style: none; display: flex; - justify-content: flex-end; - align-items: center; } .nav-links ul li { margin-left: 20px; } - ul li a { - height: 100%; - padding: 0; - display: flex; - align-items: center; - text-decoration: none; +.nav-links ul li a { color: #dfe1e5; font-size: 18px; transition: color 0.3s ease; @@ -204,38 +82,33 @@ nav { color: #58a6ff; } +/* Sidebar Styles */ .sidebar { position: fixed; top: 0; right: 0; - margin-top: 2px; height: 100vh; - max-width: 250px; - z-index: 999; + width: 250px; background-color: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1); display: none; flex-direction: column; - align-items: flex-start; - justify-content: flex-start; } .sidebar ul { list-style-type: none; padding: 0; - margin: 0; } .sidebar li { width: 100%; - height: 120px !important; - margin: 5px 0; + height: 120px; } .sidebar a { width: 100%; - height: 120px !important; + height: 120px; display: block; } @@ -243,72 +116,50 @@ nav { display: none; } -/* Mobile Responsive Styles */ +/* Contact Page Styles */ +.contact-page { + background-color: #f4f4f4; /* Light background for better contrast */ + padding: 20px; /* Optional padding for layout enhancement */ +} + +.contact-page .contact-text { + color: #333333; /* Dark gray text color for readability */ + font-size: 16px; /* Adjust font size if needed */ + line-height: 1.5; /* Optional for better text spacing */ +} + +.contact-page .contact-text a { + color: #007BFF; /* Ensure links are a distinct color */ + text-decoration: underline; /* Keep links underlined for clarity */ +} + +.contact-page .contact-text a:hover { + color: #0056b3; /* Darker shade on hover for interactive feedback */ +} + +/* Responsive Styles */ @media (max-width: 768px) { .hideOnMobile { display: none; } - - .showOnMobile { - display: flex; - } - .menu-btn { - display: block; + display: block; } } -/* For smaller devices */ @media (max-width: 480px) { .sidebar { - width: 100% ; + width: 100%; } } -.badge-details { - text-align: center; - margin-top: 15px; /* Adjust spacing */ -} - -.badge-details h2 { - font-size: 24px; /* Increase heading size */ - margin-bottom: 5px; /* Add spacing between heading and text */ - color: #fff; /* White heading for better contrast */ -} - -.badge-details p { - font-size: 18px; /* Adjust paragraph size */ - margin: 0; /* Remove default margin for tighter spacing */ -} - -.badge-details strong { - color: #e8d07e; /* Accent color for awardee email */ -} - -.download-card { - margin-top: 20px; /* Adjust margin for spacing */ -} - -.download-button { - display: inline-block; - padding: 10px 20px; - background-color: #58a6ff; - color: white; - border: none; - border-radius: 5px; - text-decoration: none; - font-weight: bold; - transition: background-color 0.3s ease, transform 0.3s ease; -} -.qr-download-card{ - margin-top: 15px; -} -.download-button:hover { - background-color: #4183c4; - transform: scale(1.05); /* Slightly increases the button size */ - +@media (min-width: 768px) { + .hideOnMobile { + display: none; + } } +/* Footer Styles */ footer { min-height: 15vh; text-align: center; @@ -328,10 +179,11 @@ footer a { font-weight: 900; } +/* Share Section */ .share-section { text-align: center; margin-top: 20px; - margin-bottom: 34px; /* add margin bottom for proper visibility of share section */ + margin-bottom: 34px; } .share-section p { @@ -352,236 +204,19 @@ footer a { transition: transform 0.3s ease, box-shadow 0.3s ease; } -.share-button i { - transition: color 0.3s ease; -} - -/* Twitter Button */ .share-button.twitter { background-color: #1da1f2; } -.share-button.twitter:hover { - transform: scale(1.2); - box-shadow: 0 4px 10px rgba(29, 161, 242, 0.5); -} - -/* LinkedIn Button */ .share-button.linkedin { background-color: #0077b5; } -.share-button.linkedin:hover { - transform: scale(1.2); - box-shadow: 0 4px 10px rgba(0, 119, 181, 0.5); -} - -/* Facebook Button */ .share-button.facebook { background-color: #3b5998; } -.share-button.facebook:hover { - transform: scale(1.2); - box-shadow: 0 4px 10px rgba(59, 89, 152, 0.5); -} - -/* Icon Colors on Hover */ -.share-button:hover i { - color: #fff; -} - -/* Adding smooth hover effects */ .share-button:hover { - transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; -} - -/* Confetti Animation */ -@keyframes fadeIn { - from { - opacity: 0; - transform: scale(0.95); - } - to { - opacity: 1; - transform: scale(1); - } -} - -@keyframes fadeOut { - from { - opacity: 1; - } - to { - opacity: 0.2; - } -} - -.confetti { - position: fixed; - width: 12px; - height: 12px; - background-color: rgb(97, 5, 5); - top: -50px; - animation: fall linear forwards, fadeOut ease-out forwards; /* Add fadeOut */ -} - -@keyframes fall { - to { - transform: translateY(100vh); - opacity: 1; - } -} - -.search-bar-container { - margin: 20px auto; - text-align: center; - display: flex; - justify-content: center; - align-items: center; - gap: 10px; -} - -#badge-search { - padding: 10px; - width: 80%; - max-width: 400px; - font-size: 1rem; - border: 2px solid #0d6efd; - border-radius: 5px; - box-sizing: border-box; - outline: none; -} - -#badge-search:focus { - border-color: #007bff; -} - -.search-button { - padding: 10px 20px; - font-size: 1rem; - background-color: #0d6efd; - color: #fff; - border: none; - border-radius: 5px; - cursor: pointer; - transition: background-color 0.3s ease; -} - -.search-button:hover { - background-color: #0a58ca; -} - -.search-button:active { - background-color: #084298; -} - -.badge-slide { - min-width: 100%; - box-sizing: border-box; - padding: 10px; - box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5); -} - -.badge { - display: flex; - flex-direction: column; - align-items: center; - text-align: center; - margin-top: 55px; /* add margin top for badge image proper visibility */ -} - -.badge-details h2 { - font-size: 1.5rem; - margin-top: 10px; -} - -.badge-details p { - margin: 5px 0; -} - -.download-button, .share-button { - background-color: #007bff; - color: white; - padding: 15px; - text-decoration: none; - border-radius: 1000px; - margin-top: 10px; -} - -.download-button:hover, .share-button:hover { - background-color: #0056b3; -} - -.share-section a { - margin-right: 10px; -} -/* Styles for the badge cards */ -.badges-section { - padding: 20px; - background-color: #f9f9f9; - background: linear-gradient(135deg, #1c1f24, #2d3b45, #000000); -} - -.badges-container { - display: grid; - grid-template-columns: repeat(3,1fr); /* Three equal-width columns */ - gap: 30px; /* Space between cards */ - justify-items: center; - align-items: center; -} - -.badge-card { - background-color: white; - border: 1px solid #ddd; - border-radius: 10px; - width: 100%; - display: grid; - place-items: center; - max-width: 300px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); - text-align: center; - padding: 20px; - transition: transform 0.3s ease; -} - -.badge-card img { - max-width: 100px; - margin-bottom: 15px; -} - -.badge-card h3 { - font-size: 1.2em; - color: #3a3a3a; - margin-bottom: 10px; -} - -.badge-card p { - font-size: 0.9em; - color: #2b2b2b; -} - -.badge-card:hover { - transform: scale(1.05); -} - -/* Responsive design for smaller screens */ -@media (max-width: 768px) { - .badges-container { - grid-template-columns: repeat(2, 1fr); /* Two badges per row on smaller screens */ - } -} - -@media (max-width: 500px) { - .badges-container { - grid-template-columns: 1fr; /* One badge per row on very small screens */ - } - + transform: scale(1.2); + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); } -@media (min-width:768px) { - .hideOnMobile{ - display: none; - } - - -} \ No newline at end of file