From 3a368155936b1b6dc436e316a928acd803c31f5b Mon Sep 17 00:00:00 2001 From: Souvik Majee Date: Fri, 8 Nov 2024 17:56:36 +0530 Subject: [PATCH 1/2] Contributors page redesigned --- contributor.css | 846 +++++++++++++++++++++++++++-------------------- contributor.html | 781 ++++++++----------------------------------- contributor.js | 161 ++------- 3 files changed, 658 insertions(+), 1130 deletions(-) diff --git a/contributor.css b/contributor.css index 5244677..91ef267 100644 --- a/contributor.css +++ b/contributor.css @@ -1,537 +1,683 @@ -* { - box-sizing: border-box; +*{ + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; margin: 0; padding: 0; } -body { - font-family: Arial, sans-serif; - line-height: 1.6; - color: #333; - background-color: #f5f5f5; -} -#scrollBackBtn { - position: fixed; - bottom: 20px; - right: 20px; - background-color: #005842; - color: white; - border: none; - padding: 10px 15px; - border-radius: 5px; - cursor: pointer; - display: none; /* Hidden by default */ - z-index: 1000; /* Ensure it's above other elements */ +.container { + text-align: center; } -#scrollBackBtn:hover { - background-color: #007B5F; /* Darker shade on hover */ +.title { + display: inline-block; + font-size: 3em; + margin-bottom: 20px; + padding: 10px; + color: #fffdff; + + /* border-radius: 20px; */ + /* background-color: rgba(209, 209, 255, 0.8); */ } -.navbar { - background-color: #1f2937; - color: white; - padding: 15px 20px; - display: flex; - justify-content: space-between; - align-items: center; - position: sticky; - top: 0; - z-index: 1000; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +.theme-switch::before { + content: ""; + position: absolute; + top: 3px; + left: 3px; + width: 24px; + height: 24px; + background-size: contain; + background-repeat: no-repeat; + background-position: center; + transition: left 0.3s ease-in-out, background-image 0.3s ease-in-out; + background-image: url("../Assets/moon.png"); } -.nav-container { - display: flex; - align-items: center; /* Vertically center items */ - justify-content: space-between; /* Space between logo and nav items */ +.theme-switch.dark-theme::before { + left: 33px; + background-image: url("../Assets/sun.png"); } -.navbar .logo { - font-size: 24px; - font-weight: bold; - color: #12e9cc; -} +.contributors-grid { -.nav-links { - list-style: none; + width: 100vw; + flex-wrap: wrap; + gap: 40px; + padding: 20px; display: flex; - gap: 30px; } -.nav-links a { - color: #fff; +.contributor-card { + min-height: 300px; + display: flex; + justify-content: center; + position: relative; + max-width: calc(55% - 16px); + display: flex; + flex-direction: column; + align-items: center; + background-color: #253745; + border-radius: 8px; + padding: 16px; + transition: transform 0.5s ease-in-out, box-shadow 0.3s ease; text-decoration: none; - font-weight: bold; - transition: color 0.3s ease; + color: inherit; + /* margin-bottom: 16px; */ + word-wrap: wrap; + transition: transform 0.5s ease-in-out, box-shadow 0.3s ease; + width:14%; } -.nav-links a:hover { - color: #00bfa6; +#contributors { + perspective: 1000px; /* This adds depth for 3D transformations */ + margin-left: -19px; } -#darkModeToggle { - background-color: transparent; - border: none; - color: #fff; - font-size: 1.2rem; - cursor: pointer; -} -.caption { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - color: white; - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); - font-size: 2rem; - font-weight: bold; - text-align: center; -} -@media (max-width: 500px) { - .navbar .logo { - font-size: 20px; - } - - .btn { - padding: 8px 20px; - font-size: 0.9rem; - } - .caption { - font-size: 1.2rem; - } -} -.contributor-container { - margin: 0 auto; +.contributor-card img { + border-radius: 50%; + width: 100px; + height: 100px; + object-fit: cover; + margin-bottom: 10px; + transition: box-shadow 0.3s ease-in-out, border 0.1s ease-in-out; } -/* Hero Section */ -.contributor-hero { - background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=2850&q=80'); - background-size: cover; - background-position: center; - - height: 85vh; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - position: relative; -} -.contributor-hero::before { - content: ''; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.7); +.contributor-card h2 { + color: #040404; + position: relative; + z-index: 1; + transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; } -.contributor-hero-content { +.contributor-card p { + font-size: 1.2em; position: relative; z-index: 1; - color: #fff; + transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; + margin: 0 0 10px; } -.contributor-hero h1 { - color: #008876; - font-size: 3.5rem; - margin-bottom: 1rem; +.contributor-card:hover h2 { + text-shadow: 1px 1px 2px rgb(0, 108, 108), 0 0 0.2em rgb(0, 14, 108), + 0 0 0.8em rgb(0, 14, 108); + color: white; } -.contributor-hero p { - opacity: 0.8; - color:#b7d5cc ; - font-size: 1.5rem; - margin-bottom: 2rem; +.contributor-card:hover p { + text-shadow: 1px 1px 2px rgba(4, 0, 127, 0.715), 0 0 0.2em rgb(5, 18, 168), + 0 0 0.3em rgb(134, 136, 250); + color: white; + + /* font-weight: 400; */ } -/* Buttons */ -.contributor-btn { - display: inline-block; - padding: 0.8rem 1.5rem; - border: none; - border-radius: 5px; - font-size: 1rem; - cursor: pointer; - transition: background-color 0.3s ease; +body { + background-color:#2c394c; + color: hsl(0, 0%, 100%); } -.contributor-btn-primary { - font-weight: 600; - background-color: #009a73; - color: #333; +header { + height: 100px; } -.contributor-btn-primary:hover { - background-color: #f0f0f0; +.logo { + margin: 30px 0 0 0; } +footer { + background-color: #333; + color: white; + text-align: center; + padding: 20px 0; + margin-top: auto; +} +.footer-container { + margin: auto; + padding: 0 20px; +} -.contributor-btn-secondary { - - background-color: #00c2a8; - color: #fff; +.footer-contact a { + color: white; } -.contributor-btn-secondary:hover { - - transform: scale(1.025); - background-color: #006b50; +header { + height: 100px; +} +body { + min-height: 100vh; + max-width: 100vw; +} +.logo { + margin: 5px 0px 0px 0px; } -/* Stats Section */ -.contributor-stats { - max-width: 1200px; - margin: 0 auto; - padding: 4rem 0; +footer { + background: #333; + color: white; text-align: center; + padding: 20px 0; + margin-top: auto; } -.contributor-stats h2 { - font-size: 2rem; - margin-bottom: 2rem; +.footer-container { + margin: auto; + padding: 0 20px; } -.contributor-stats-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); - gap: 2rem; +@media (max-width: 900px) { + header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0.5rem 0.5rem; + /* Adjust padding to reduce overall height */ + } + + header nav { + flex-direction: column; + align-items: flex-start; + max-width: 100vw; + } + + header nav .hamburger { + display: block; + font-size: 28px; + cursor: pointer; + color: #fff; + padding: 1rem; /* Adjust padding for hamburger icon */ + position: absolute; + top: 0; + right: 1rem; /* Adjust right position as needed */ + } + + header nav ul { + flex-direction: column; + align-items: flex-start; + display: none; /* Hide the navbar items */ + max-height: 100vw; /* Full width for mobile view */ + position: absolute; + top: 100%; + right: 0; + background-color: #333; /* Background color for the floating menu */ + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a box shadow */ + padding: 1rem; /* Add padding */ + border-radius: 0 0 8px 8px; /* Rounded corners at the bottom */ + } + + header nav ul.show { + display: flex; /* Show the navbar items when the hamburger is clicked */ + align-items: flex-start; + } + + header nav ul li { + margin: 0.5rem 1rem; /* Adjust margin for vertical spacing */ + } + header nav ul li a:hover { + color: #00c6ff; + + border-bottom: 2px solid #00c6ff; + + } } -.contributor-stat-card { - background-color: #fff; - border: 1px solid #e0e0e0; - border-radius: 10px; - padding: 1.5rem; +/* Styles for larger screens */ +@media (min-width: 901px) { + header { + height: auto; + } + header nav .hamburger { + display: none; + } + + header nav ul { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: center; + } + + /* header nav ul li { + margin: 0 0.5rem; /* Reduce margin between items */ +} +*/ header nav ul li a:hover { + background-color: #00c6ff; + color: #000; + border-radius: 0.75rem; /* Rounded corners for active link */ +} + +footer { + background-color: #1a1a1a; + color: white; + padding: 40px 0; text-align: center; } -.contributor-stat-card .contributor-icon { - font-size: 2rem; - margin-bottom: 1rem; +footer p { + margin: 10px 0; } -.contributor-stat-card h3 { - font-size: 2rem; - margin-bottom: 0.5rem; +footer p a { + color: #00c6ff; + text-decoration: none; } -.contributor-stat-card p { - color: #666; +footer p a:hover { + text-decoration: underline; } -/* Contributors Section */ -.contributor-contributors { - max-width: 1200px; - margin: 0 auto; - padding: 4rem 0; +/* Footer Styles */ +footer { + background-color: #1a1a1a; + color: white; + padding: 40px 0; text-align: center; } -.contributor-contributors h2 { - font-size: 2rem; - margin-bottom: 2rem; +footer p { + margin: 10px 0; } -.contributor-contributors-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: 2rem; +footer p a { + color: #00c6ff; + text-decoration: none; } -.contributor-contributor-card { - background-color: #fff; - border: 1px solid #e0e0e0; - border-radius: 10px; - overflow: hidden; - transition: transform 0.3s ease, box-shadow 0.3s ease; - box-shadow: 2px 2px 10px rgb(172, 140, 140); +footer p a:hover { + text-decoration: underline; } -.contributor-contributor-card:hover { - transform: translateY(-5px); - - background-color: aqua; - box-shadow: 1px 1px 12px 4px blue; - border-radius: 10px ; +footer { + background: #333; + color: white; + text-align: center; + padding: 20px 0; + margin-top: auto; } -.contributor-contributor-card img { - width: 100px; - height: 100px; - border-radius: 50%; - margin: 1.5rem auto; - display: block; - border: 4px solid #f0f0f0; +.footer-container { + margin: auto; + padding: 0 20px; } -.contributor-contributor-card h3 { - font-size: 1.2rem; - margin-bottom: 0.5rem; + +.footer-contact { + margin: 10px 0; } -.contributor-contributor-card p { - color: #666; - margin-bottom: 1rem; + + + + +html { + scroll-behavior: smooth; + max-width: 100vw; + max-height: 100vh; } -.contributor-contributor-card .contributor-contributions { - background-color: #f0f0f0; - padding: 0.5rem 1rem; - border-radius: 20px; - display: inline-block; - margin-bottom: 1rem; +body { + background-color: #021024; + overflow-x: hidden; + margin: 0; + + } -.contributor-contributor-card .contributor-footer { - background-color: #f9f9f9; - padding: 1rem; +header { + background-color: #1a1a1a; + padding: 0px 20px; + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); + position: sticky; + top: 0; + z-index: 1000; + border-bottom: 3px solid #00c6ff; display: flex; justify-content: space-between; align-items: center; } -.contributor-contributor-card .contributor-footer a { - color: #333; - text-decoration: none; +header nav { display: flex; + justify-content: space-between; align-items: center; + padding: 0.5rem 1rem; } -.contributor-contributor-card .contributor-footer svg { - margin-right: 0.5rem; -} - -/* Loading Spinner */ -.contributor-loading { +header nav ul { + list-style: none; display: flex; - justify-content: center; - align-items: center; - height: 200px; + gap: 30px; } -.contributor-spinner { - border: 4px solid #f3f3f3; - border-top: 4px solid #333; - border-radius: 50%; - width: 40px; - height: 40px; - animation: contributor-spin 1s linear infinite; +header nav ul li a { + color: #fff; + text-decoration: none; + font-weight: 600; + font-size: 18px; + transition: color 0.3s, border-bottom 0.3s; + background-color: rgb(72, 71, 71); + padding: 15px; } -@keyframes contributor-spin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } +header nav ul li a:hover { + background-color: #00c6ff; + color: #000; + border-radius: 0.75rem; } -/* Call to Action Section */ -.contributor-cta { - background-color: #333; - color: #fff; - padding: 4rem 0; - text-align: center; +@media (max-width: 900px) { + header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0.5rem 1rem; + } + + header nav { + flex-direction: column; + align-items: flex-start; + width: 100%; + } + + header nav .hamburger { + display: block; + font-size: 28px; + cursor: pointer; + color: #fff; + padding: 1rem; + position: absolute; + top: 0; + right: 1rem; + } + + header nav ul { + flex-direction: column; + display: none; + width: 100%; + height: 100vh; + background-color: #333; + padding: 1rem; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + border-radius: 0 0 8px 8px; + } + + header nav ul.show { + display: flex; + } } -.contributor-cta h2 { - color:#07a893 ; - font-size: 2rem; - margin-bottom: 1rem; +@media (min-width: 901px) { + header nav .hamburger { + display: none; + } + + header nav ul { + display: flex; + flex-direction: row; + align-items: center; + } } -.contributor-cta p { - font-size: 1.2rem; - margin-bottom: 2rem; +header .logo h1 { + color: #fff; + font-weight: 700; + font-size: 28px; + margin: 0; } -.contributor-cta form { + +.homeBtn{ + text-decoration: none; + color: #000; + top: 20px; + left: 20px; + position: absolute; + background-color: #0e99ea; + width: 60px; + height: 40px; display: flex; justify-content: center; - gap: 1rem; - margin-bottom: 1rem; + align-items: center; + border-radius: 40px; + border: #000 2px solid; } - -.contributor-cta input[type="email"] { - padding: 0.8rem; - font-size: 1rem; - border: none; - - border-radius: 0.75rem; - width: 300px; +.homeBtn:hover{ + background-color: #00c6ff; + color: #000; + border: #00c6ff 2px solid; } -.contributor-contributor-card:hover { - transform: translateY(-5px); - - background-color: aqua; - box-shadow: 1px 1px 12px 4px blue; - border-radius: 10px ; +/* Stats Section */ +.contributor-stats { +max-width: 1200px; +margin: 0 auto; +padding: 2rem 2rem; +text-align: center; +background-color: rgba(255,255,255,0.3); +border-radius: 25px; +margin-top: 60px; } -.contributor-notification { - background-color: #4CAF50; - color: white; - padding: 1rem; - border-radius: 5px; - margin-top: 1rem; +.contributor-stats h2 { +font-size: 3rem; +margin-bottom: 2rem; } -.contributor-hidden { - display: none; +.contributor-stats-grid { +display: grid; +grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); +gap: 2rem; } -/* Responsive Design */ -@media (max-width: 768px) { - .contributor-hero h1 { - font-size: 2.5rem; - } +.contributor-stat-card { +background-color: rgba(0,0,0,0.4); +border-radius: 10px; +padding: 1.5rem; +text-align: center; +} - .contributor-hero p { - font-size: 1.2rem; - } +.contributor-stat-card .contributor-icon { +font-size: 2rem; +margin-bottom: 1rem; +} - .contributor-cta form { - flex-direction: column; - align-items: center; - } +.contributor-stat-card h3 { +font-size: 2rem; +margin-bottom: 0.5rem; +} - .contributor-cta input[type="email"] { - width: 100%; - max-width: 300px; - } +.contributor-stat-card p { +color: #ffffff; } +div#contributors{ +gap: 2rem 7rem; +flex-wrap: wrap; +justify-content: center; +} +a{ + text-decoration: none; + color: white; + margin-top: 20px; + font-size: 1.2rem; +} +.home-nav a { + text-decoration: none; + height: 50px; + width: 250px; + color: white; + font-size: 1.25rem; + position: absolute; + top: 20px; + left: 40px; + background-color: rgba(255, 255, 255, 0.2); + display: flex; + justify-content: center; + align-items: center; + border-radius: 30px; + transition: all 0.4s ease; +} +.home-nav a:hover { + transform: scale(1.02); + background-color: #fff; + color: black; +} +@media (max-width: 600px) { + .contributor-card { + width: 90%; + margin: 10px auto; + } + .contributors-grid { + + } +} -/* General Footer Styling */ +/* Footer Container */ .footer-container { - background-color: #1f2937; + background-color: #1a1a1a; color: #ffffff; - padding: 40px 0; + padding: 40px 20px; font-family: Arial, sans-serif; } -/* Logo and Tagline */ +/* Footer Top Section */ +.footer-top { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + padding-bottom: 20px; + border-bottom: 1px solid #444; +} + +/* Logo and Description Section */ .footer-logo-section { + flex: 1 1 250px; + max-width: 300px; text-align: center; - margin-bottom: 30px; } + .footer-logo { - max-width: 150px; + max-width: 80%; margin-bottom: 10px; - border-radius: 50px; } + .footer-logo-section p { margin: 5px 0; - font-size: 0.95rem; } + .follow-us { - margin-top: 10px; font-weight: bold; + color: #dcfffa; + margin-top: 10px; } -/* Social Media Icons */ .social-icons a { - display: inline-block; - margin: 0 10px; - color: #12e9cc; - font-size: 1.5rem; - text-decoration: none; + color: #ffffff; + margin: 0 5px; + font-size: 20px; + transition: color 0.3s; } + .social-icons a:hover { - color: #76b2ab; + color: #b5fdf4; } -/* Footer Link Sections */ +#visitorCounter { + margin-top: 15px; + background-color: #00aaff; + border: none; + padding: 8px 16px; + cursor: pointer; +} + +/* Footer Links Section */ .footer-links { display: flex; - justify-content: space-around; + flex: 2 1 500px; + justify-content: space-between; flex-wrap: wrap; - margin: 20px 100px; + gap: 20px; } + .footer-column { - flex-basis: 20%; - margin-bottom: 10px; + flex: 1 1 200px; + max-width: 250px; } + .footer-column h4 { - font-size: 1rem; + color: #b5fdf4; margin-bottom: 10px; - color: #12e9cc; + font-size: 16px; } + .footer-column ul { list-style: none; padding: 0; } -.footer-column ul li { - margin-bottom: 8px; + +.footer-column li { + margin: 8px 0; } -.footer-column ul li a { + +.footer-column li a { color: #ffffff; text-decoration: none; - font-size: 0.95rem; + transition: color 0.3s; } -.footer-column ul li a:hover { - text-decoration: underline; + +.footer-column li a:hover { + color: #00aaff; } -/* Footer Bottom Links */ +/* Footer Bottom Section */ .footer-bottom { text-align: center; - border-top: 1px solid #ddd; padding-top: 20px; } + .footer-bottom ul { list-style: none; padding: 0; - margin: 0; + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 20px; } -.footer-bottom ul li { - display: inline-block; - margin: 0 15px; + +.footer-bottom li { + margin: 5px 0; } -.footer-bottom ul li a { - color: #12e9cc; + +.footer-bottom li a { + color: #b5fdf4; text-decoration: none; - font-size: 0.95rem; + font-weight: bold; + transition: color 0.3s; } -.footer-bottom ul li a:hover { - text-decoration: underline; + +.footer-bottom li a:hover { + color: #00aaff; } -/* Responsive Adjustments */ +/* Responsive Design */ @media (max-width: 768px) { - .footer-links { - flex-direction: column; - align-items: center; + .footer-top { + flex-direction: column; + align-items: center; + text-align: center; } - .footer-column { - flex-basis: 100%; - text-align: center; + + .footer-links { + flex-direction: column; + align-items: center; } } - -.contributor-stats-grid, -.contributor-contributors-grid { - color: #000000; /* Default text color for grids */ -} - - -body.dark-mode .contributor-stats-grid, -body.dark-mode .contributor-contributors-grid { - color: #000000; /* Text color for content in dark mode */ -} -/* Optional: Background color for dark mode */ -body.dark-mode { - background-color: #121212; /* Example dark background */ -} - diff --git a/contributor.html b/contributor.html index 0153a5b..4874fbc 100644 --- a/contributor.html +++ b/contributor.html @@ -1,669 +1,146 @@ - - - BuddyTrail Contributors - - - - - - - - - - - - - - - - - - - - - + + + Contributors + + + -
-
- - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- -
-
-
Ready to Explore the World...
-
- - -
- - -
- - - - - - - - -
-
Ticket Bot
-
- - -
- - Contributors - Login - - - - - - - +
+   Return to Home
-
-
×
- -
- - - - -
- -
-
-

Welcome to Ticket Booking platform

-

Empowering writers, one commit at a time

-
-
- - -
-

Project Statistics

-
- -
-
- - -
-

Meet Our Contributors

-
- -
-
-
-
-
- - - - -
- -
-
-
-