From d1377a8ea81da33a53ba1b6266fe9213e65c5670 Mon Sep 17 00:00:00 2001 From: Manjusri Arumugam Date: Sat, 19 Oct 2024 05:21:36 +0530 Subject: [PATCH] styles.css --- styles.css | 494 +++++++++++------------------------------------------ 1 file changed, 101 insertions(+), 393 deletions(-) diff --git a/styles.css b/styles.css index 5179299..6faea03 100644 --- a/styles.css +++ b/styles.css @@ -1,17 +1,15 @@ - /* Reset styles */ * { margin: 0; padding: 0; text-decoration: none; color: #fff; + box-sizing: border-box; /* Set box-sizing to border-box for all elements */ } /* Base Styles */ body { font-family: "Poppins", sans-serif; - margin: 0; - padding: 0; background-color: #f4f4f4; /* Light background */ color: #333; /* Dark text color */ transition: background-color 0.3s, color 0.3s; @@ -23,16 +21,18 @@ body.dark-theme { color: #dfe1e5; /* Light text color */ } +header { + background: rgba(144, 214, 15, 0.9); /* Header background color */ + color: white; /* Header text color */ + padding: 20px; /* Padding around the header */ +} + .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 */ + max-width: 1200px; /* Optional: Set a max width for the header */ + margin: 0 auto; /* Center the header */ } h1 { @@ -57,67 +57,8 @@ nav ul li a { 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 */ - -} +/* General Styles */ .badge { display: flex; flex-direction: column; @@ -126,84 +67,91 @@ body { border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); height: calc(100vh - 60px); + margin-top: 55px; /* Adjust margin for badge image visibility */ } .badge img { width: 250px; - height: 210px; /* reduce the height of badge image for better user experience */ + 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 { - display: block; - width: 100%; - padding: 20px; - background-color: #1c1f24; /* Dark background */ - border-bottom: 2px solid #58a6ff; /* Border for separation */ +.badge-details { + text-align: center; + margin-top: 15px; /* Adjust spacing */ } -.header-container { - display: flex; - justify-content: space-between; - align-items: center; - max-width: 1200px; - margin: 0 auto; +.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 */ } -.logo { - display: flex; - align-items: center; +.badge-details strong { + color: #e8d07e; /* Accent color for awardee email */ } -.logo img { - width: 40px; - height: 40px; - margin-right: 10px; +/* Button Styles */ +.download-button, .share-button { + background-color: #007bff; + color: white; + padding: 15px; + text-decoration: none; + border-radius: 1000px; + margin-top: 10px; } -.logo h1 { - font-size: 24px; - color: #dfe1e5; - font-weight: 900; +.download-button:hover, .share-button:hover { + background-color: #0056b3; } -nav { - font-size: 18px; - display: flex; - align-items: center; +.download-card, .qr-download-card { + margin-top: 20px; /* Adjust margin for spacing */ } -.nav-links ul { - width: 100%; - list-style: none; - display: flex; - justify-content: flex-end; - align-items: center; +/* Confetti Animation */ +@keyframes fadeIn { + from { + opacity: 0; + transform: scale(0.95); + } + to { + opacity: 1; + transform: scale(1); + } } -.nav-links ul li { - margin-left: 20px; +@keyframes fadeOut { + from { + opacity: 1; + } + to { + opacity: 0.2; + } } - ul li a { - height: 100%; - padding: 0; - display: flex; - align-items: center; - text-decoration: none; - color: #dfe1e5; - font-size: 18px; - transition: color 0.3s ease; +.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 */ } -.nav-links ul li a:hover { - color: #58a6ff; +@keyframes fall { + to { + transform: translateY(100vh); + opacity: 1; + } } +/* Sidebar Styles */ .sidebar { position: fixed; top: 0; @@ -239,10 +187,6 @@ nav { display: block; } -.menu-btn { - display: none; -} - /* Mobile Responsive Styles */ @media (max-width: 768px) { .hideOnMobile { @@ -250,273 +194,29 @@ nav { } .showOnMobile { - display: flex; + display: flex; } .menu-btn { - display: block; + display: block; } -} - -/* For smaller devices */ -@media (max-width: 480px) { - .sidebar { - 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 */ - -} - -footer { - min-height: 15vh; - text-align: center; - padding: 40px; - background: linear-gradient(135deg, #1c1f24, #2d3b45, #000000); - color: #dfe1e5; - width: 100%; - border-top: 3px solid #58a6ff; -} - -footer p { - font-weight: 900; -} - -footer a { - color: #4183c4; - font-weight: 900; -} -.share-section { - text-align: center; - margin-top: 20px; - margin-bottom: 34px; /* add margin bottom for proper visibility of share section */ -} - -.share-section p { - font-size: 18px; - color: #fff; - margin-bottom: 8px; - font-weight: bold; -} - -.share-button { - display: inline-block; - margin: 0 10px; - text-decoration: none; - font-size: 20px; - padding: 15px; - border-radius: 50%; - color: #fff; - 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); + .badges-container { + grid-template-columns: repeat(2, 1fr); /* Two badges per row on smaller screens */ } } -@keyframes fadeOut { - from { - opacity: 1; - } - to { - opacity: 0.2; +@media (max-width: 500px) { + .badges-container { + grid-template-columns: 1fr; /* One badge per row on very small screens */ } -} - -.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; + .sidebar { + width: 100%; } } -.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 */ +/* Badge Cards */ .badges-section { padding: 20px; background-color: #f9f9f9; @@ -525,7 +225,7 @@ footer a { .badges-container { display: grid; - grid-template-columns: repeat(3,1fr); /* Three equal-width columns */ + grid-template-columns: repeat(3, 1fr); /* Three equal-width columns */ gap: 30px; /* Space between cards */ justify-items: center; align-items: center; @@ -565,23 +265,31 @@ footer a { 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 */ - } +/* Footer Styles */ +footer { + min-height: 15vh; + text-align: center; + padding: 40px; + background: linear-gradient(135deg, #1c1f24, #2d3b45, #000000); + color: #dfe1e5; + width: 100%; + border-top: 3px solid #58a6ff; } -@media (max-width: 500px) { - .badges-container { - grid-template-columns: 1fr; /* One badge per row on very small screens */ - } +footer p { + font-weight: 900; +} + +footer a { + color: #4183c4; + font-weight: 900; +} +/* Share Section Styles */ +.share-section { + text-align: center; + margin-top: 20px; + margin-bottom: 34px; /* Add margin bottom for proper visibility of share section */ } -@media (min-width:768px) { - .hideOnMobile{ - display: none; - } - -} \ No newline at end of file +.share-section p {