diff --git a/Contributors/contributor.css b/Contributors/contributor.css deleted file mode 100644 index a9aadd71..00000000 --- a/Contributors/contributor.css +++ /dev/null @@ -1,262 +0,0 @@ -body { - font-family: "Poppins"; - color: #333; - display: flex; - justify-content: center; - align-items: center; - min-height: 100vh; - margin: 0; -} - -.container { - text-align: center; -} - -.title { - display: inline-block; - font-size: 3em; - margin-bottom: 20px; - padding: 10px; - color: #f6f2f6; - text-shadow: 1px 1px 2px rgb(184, 45, 235), 0 0 1em rgba(216, 130, 200, 0.617), - 0 0 0.2em rgba(99, 1, 124, 0.623); - /* border-radius: 20px; */ - /* background-color: rgba(209, 209, 255, 0.8); */ -} - -.contributors-grid { - display: flex; - flex-wrap: wrap; - gap: 20px; - justify-content: center; - padding: 20px; - gap: 40px; -} - -.contributor-card { - width: 300px; - position: relative; - overflow: hidden; - max-width: calc(55% - 16px); - display: flex; - flex-direction: column; - align-items: center; - background-color: #f9e2f9; - /* border: 1px solid #00ebdf; */ - border-radius: 8px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); - padding: 16px; - transition: transform 0.5s ease-in-out, box-shadow 0.3s ease; - text-decoration: none; - color: inherit; - /* margin-bottom: 16px; */ -} - -.contributor-card:hover { - transform: scale(1.02); - box-shadow: 1px 1px 23px rgba(170, 1, 175, 0.915); - border: none; - cursor: pointer; -} - -.contributor-card::before { - content: ""; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: linear-gradient(132deg, #5103fa 50%, rgb(218, 46, 146) 51%); - /* background: linear-gradient(130deg, #3b89ff 50%, #eef6ff 50%); */ - transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; - transform: translate(-100%, -100%); - opacity: 0; - z-index: -1; -} - -.contributor-card:hover::before { - transform: translate(0, 0); - opacity: 1; -} - -.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; -} - -.contributor-card:hover img { - border: 2px solid rgb(255, 234, 0); - box-shadow: -1px 2px 27px rgb(0, 217, 255); -} - -/* - .contributor-card h2 { - margin: 0 0 10px; - } */ -/* - .contributor-card p { - } */ - -.contributor-card h2 { - font-size: 1.2em; - color: #040404; - position: relative; - z-index: 1; - transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; -} - -.contributor-card p { - font-size: 1.2em; - color: #040404; - position: relative; - z-index: 1; - transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out; - margin: 0 0 10px; -} - -.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-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; */ -} - -/* dark mode */ -/* Toggle button styles */ -.toggle-container { - position: fixed; /* Change this as needed for positioning */ - top: 25px; - right: 40px; -} - -.toggle { - appearance: none; - outline: none; - cursor: pointer; - width: 100%; - height: 100%; - box-shadow: inset calc(var(--size) * 0.33) calc(var(--size) * -0.25) 0; - border-radius: 999px; - color: hsl(240, 100%, 95%); - transition: all 500ms; - position: absolute; - top: 0; - left: 0; -} - -.toggle:checked { - background-color: #333; -} -.toggle:checked:before { - transform: translateX(25px); -} - -body { - background-color: #f8f9fa; - color: #212529; -} - -.nav-container { - background-color: #ffffff; -} - -.footer { - background-color: #ffffff; - color: #212529; -} - -/* Dark mode styles */ -body.dark-mode { - background-color: #333; - color: #ffffff; -} - -body.dark-mode .nav-container { - background-color: #343a40; -} - -body.dark-mode .footer { - background-color: #343a40; - color: #ffffff; -} -#toggle { - display: inline-block; - border-radius: 50px; - transition: all 0.4s ease-in-out; - padding: 10px 10px; - background-color: transparent; - border: 2px solid #c6c9d8bf; - color: #c6c9d8bf; - font-weight: 600; - font-size: 14px; - letter-spacing: 2px; - text-decoration: none; -} -.toggle-container { - --size: 2rem; - width: var(--size); - height: var(--size); -} - -.toggle { - appearance: none; - outline: none; - cursor: pointer; - width: 100%; - height: 100%; - box-shadow: inset calc(var(--size) * 0.33) calc(var(--size) * -0.25) 0; - border-radius: 999px; - color: hsl(240, 100%, 95%); - transition: all 500ms; - position: absolute; - top: 25px; - right: 0; - - &:checked { - --ray-size: calc(var(--size) * -0.4); - --offset-orthogonal: calc(var(--size) * 0.65); - --offset-diagonal: calc(var(--size) * 0.45); - transform: scale(0.75); - color: hsl(40, 100%, 50%); - box-shadow: inset 0 0 0 var(--size), - calc(var(--offset-orthogonal) * -1) 0 0 var(--ray-size), - var(--offset-orthogonal) 0 0 var(--ray-size), - 0 calc(var(--offset-orthogonal) * -1) 0 var(--ray-size), - 0 var(--offset-orthogonal) 0 var(--ray-size), - calc(var(--offset-diagonal) * -1) calc(var(--offset-diagonal) * -1) 0 - var(--ray-size), - var(--offset-diagonal) var(--offset-diagonal) 0 var(--ray-size), - calc(var(--offset-diagonal) * -1) var(--offset-diagonal) 0 var(--ray-size), - var(--offset-diagonal) calc(var(--offset-diagonal) * -1) 0 var(--ray-size); - } -} - -/* Apply fade-down animation to the toggle container */ -.toggle-container[data-aos="fade-down"] { - transition: opacity 500ms ease-in-out; - opacity: 0; -} - -.toggle-container[data-aos="fade-down"].aos-animate { - opacity: 1; -} -body.dark-mode .contributor-card { - background: #0e1525; -} -body.dark-mode .contributor-card p { - color: white; -} -body.dark-mode .contributor-card h2 { - color: white; -} diff --git a/Contributors/contributor.html b/Contributors/contributor.html deleted file mode 100644 index a55f7ac2..00000000 --- a/Contributors/contributor.html +++ /dev/null @@ -1,122 +0,0 @@ - - -
- - -Contributions: ${contributor.contributions}
- `; - - contributorsContainer.appendChild(contributorCard); - }); - } catch (error) { - console.error("Error fetching contributors:", error); - } - } - - fetchContributors(); -}); - -// Dark mode (remains unchanged) -document.addEventListener("DOMContentLoaded", () => { - const toggleCheckbox = document.getElementById("themeToggle"); - const body = document.body; - - if (localStorage.getItem("dark-mode") === "enabled") { - body.classList.add("dark-mode"); - toggleCheckbox.checked = true; - } else { - toggleCheckbox.checked = false; - } - - toggleCheckbox.addEventListener("change", () => { - if (toggleCheckbox.checked) { - body.classList.add("dark-mode"); - localStorage.setItem("dark-mode", "enabled"); - } else { - body.classList.remove("dark-mode"); - localStorage.setItem("dark-mode", "disabled"); - } - }); -}); diff --git a/contributor/contributor.css b/contributor/contributor.css new file mode 100644 index 00000000..aa00ec6d --- /dev/null +++ b/contributor/contributor.css @@ -0,0 +1,291 @@ +* { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + font-family: Arial, sans-serif; + line-height: 1.6; + color: #333; + background-color: #f5f5f5; +} + +.contributor-container { + margin: 0 auto; +} + +/* 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: 70vh; + 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-hero-content { + position: relative; + z-index: 1; + color: #fff; +} + +.contributor-hero h1 { + font-size: 3.5rem; + margin-bottom: 1rem; +} + +.contributor-hero p { + font-size: 1.5rem; + margin-bottom: 2rem; +} + +/* 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; +} + +.contributor-btn-primary { + background-color: #fff; + color: #333; +} + +.contributor-btn-primary:hover { + background-color: #f0f0f0; +} + +.contributor-btn-secondary { + background-color: #333; + color: #fff; +} + +.contributor-btn-secondary:hover { + background-color: #444; +} + +/* Stats Section */ +.contributor-stats { + max-width: 1200px; + margin: 0 auto; + padding: 4rem 0; + text-align: center; +} + +.contributor-stats h2 { + font-size: 2rem; + margin-bottom: 2rem; +} + +.contributor-stats-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; +} + +.contributor-stat-card { + background-color: #fff; + border: 1px solid #e0e0e0; + border-radius: 10px; + padding: 1.5rem; + text-align: center; +} + +.contributor-stat-card .contributor-icon { + font-size: 2rem; + margin-bottom: 1rem; +} + +.contributor-stat-card h3 { + font-size: 2rem; + margin-bottom: 0.5rem; +} + +.contributor-stat-card p { + color: #666; +} + +/* Contributors Section */ +.contributor-contributors { + max-width: 1200px; + margin: 0 auto; + padding: 4rem 0; + text-align: center; +} + +.contributor-contributors h2 { + font-size: 2rem; + margin-bottom: 2rem; +} + +.contributor-contributors-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; +} + +.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; +} + +.contributor-contributor-card:hover { + transform: translateY(-5px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); +} + +.contributor-contributor-card img { + width: 100px; + height: 100px; + border-radius: 50%; + margin: 1.5rem auto; + display: block; + border: 4px solid #f0f0f0; +} + +.contributor-contributor-card h3 { + font-size: 1.2rem; + margin-bottom: 0.5rem; +} + +.contributor-contributor-card p { + color: #666; + margin-bottom: 1rem; +} + +.contributor-contributor-card .contributor-contributions { + background-color: #f0f0f0; + padding: 0.5rem 1rem; + border-radius: 20px; + display: inline-block; + margin-bottom: 1rem; +} + +.contributor-contributor-card .contributor-footer { + background-color: #f9f9f9; + padding: 1rem; + display: flex; + justify-content: space-between; + align-items: center; +} + +.contributor-contributor-card .contributor-footer a { + color: #333; + text-decoration: none; + display: flex; + align-items: center; +} + +.contributor-contributor-card .contributor-footer svg { + margin-right: 0.5rem; +} + +/* Loading Spinner */ +.contributor-loading { + display: flex; + justify-content: center; + align-items: center; + height: 200px; +} + +.contributor-spinner { + border: 4px solid #f3f3f3; + border-top: 4px solid #333; + border-radius: 50%; + width: 40px; + height: 40px; + animation: contributor-spin 1s linear infinite; +} + +@keyframes contributor-spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} + +/* Call to Action Section */ +.contributor-cta { + background-color: #333; + color: #fff; + padding: 4rem 0; + text-align: center; +} + +.contributor-cta h2 { + font-size: 2rem; + margin-bottom: 1rem; +} + +.contributor-cta p { + font-size: 1.2rem; + margin-bottom: 2rem; +} + +.contributor-cta form { + display: flex; + justify-content: center; + gap: 1rem; + margin-bottom: 1rem; +} + +.contributor-cta input[type="email"] { + padding: 0.8rem; + font-size: 1rem; + border: none; + border-radius: 5px; + width: 300px; +} + +.contributor-notification { + background-color: #4CAF50; + color: white; + padding: 1rem; + border-radius: 5px; + margin-top: 1rem; +} + +.contributor-hidden { + display: none; +} + +/* Responsive Design */ +@media (max-width: 768px) { + .contributor-hero h1 { + font-size: 2.5rem; + } + + .contributor-hero p { + font-size: 1.2rem; + } + + .contributor-cta form { + flex-direction: column; + align-items: center; + } + + .contributor-cta input[type="email"] { + width: 100%; + max-width: 300px; + } +} \ No newline at end of file diff --git a/contributor/contributor.html b/contributor/contributor.html new file mode 100644 index 00000000..e41bedea --- /dev/null +++ b/contributor/contributor.html @@ -0,0 +1,70 @@ + + + + + +Empowering writers, one commit at a time
+ +Join our community and help shape the future with us at Collect-your-GamingTools
+ + +${stat.label}
+${contributor.type}
+