Skip to content

I have added one page related to Dog's breed. #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Dachshund.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pomeranian.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shih Tzu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Siberian Husky.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions Website/Contributor_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@
"name":"Austin Varshney",
"action":"Made the Proper Indentation of the Body and Improvements in the Form",
"github_url": "https://github.com/AustinVarshney"
},
{
"name":"Swapnanil Manna",
"action":"Added Dog Breed Section and Reformat This Webpage.",
"github_url": "https://github.com/Swapnanilmanna1701"
}

]
94 changes: 40 additions & 54 deletions Website/HomePage.css
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ body.dark-mode nav {
}

/* Other existing styles... */
/* Form styling starts */

/* Form styling */
#pet-name-form {
background-color: #ed6d1e;
border-radius: 25px;
Expand All @@ -275,7 +273,6 @@ body.dark-mode nav {
width: 100%; /* Responsive width */
}

/* Input area styling */
input[type="text"] {
width: 100%;
padding: 8px;
Expand All @@ -285,7 +282,6 @@ input[type="text"] {
}


/* Button styling */
button {
width: 100%;
font-size: medium;
Expand All @@ -302,8 +298,7 @@ button:hover {
}

#generated-name {
background-color: #efe22f;
color: #141111;
background-color: #a51eed;
visibility: hidden;
border-radius: 25px;
padding: 25px;
Expand All @@ -313,56 +308,47 @@ button:hover {
}


<style>
/* Basic contributor grid styling */
.contributor-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

/* Form styling ends */



/* Basic contributor grid styling */
.contributor-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

/* Contributor profile styling */
.contributor {
width: 200px;
text-align: center;
padding: 10px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #f9f9f9;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
}

/* Animation for hovering over the profile */
.contributor:hover {
transform: translateY(-15px); /* Float up effect */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Increase shadow to enhance floating look */
}

/* Contributor images */
.contributor img {
width: 100%;
border-radius: 50%;
}
/* Contributor profile styling */
.contributor {
width: 200px;
text-align: center;
padding: 10px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #f9f9f9;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
}

.contributor a {
text-decoration: none;
color: #333;
font-weight: bold;
}
/* Animation for hovering over the profile */
.contributor:hover {
transform: translateY(-15px); /* Float up effect */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Increase shadow to enhance floating look */
}

.contributor a:hover {
color: #007BFF;
}
/* Contributor images */
.contributor img {
width: 100%;
border-radius: 50%;
}

.contributor a {
text-decoration: none;
color: #333;
font-weight: bold;
}

/* Card comment */
#action {
color: #000000;
text-align: justify;
}
.contributor a:hover {
color: #007BFF;
}
</style>
main
87 changes: 10 additions & 77 deletions Website/dashboard.html → Website/HomePage.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@
<nav>
<ul class="nav-links">
<li><a href="#">Dashboard</a></li>
<li class="center"><a href="#contributors">Contributors</a></li>
<li class="center"><a href="./contributors.html">Contributors</a></li>
<li class="upward"><a href="#kittens">Kittens</a></li>
<li class="forward"><a href="#puppies">Puppies</a></li>
<li class="forward"><a href="./pet.html">Name Your Pet</a></li>
<li class="forward"><a href="./dogs.html">Puppies</a></li>
<li class="auth"><a href="./login.html">Login</a></li> <!-- Login Page Working -->
<li class="forward"><a href="./nameGenerator.html">Name Your Pet</a></li>

<!-- Login buttons (Google and Facebook) -->
<li id="login-buttons">
Expand All @@ -125,19 +126,12 @@
<li id="user-name" style="float: right; margin-right: 20px;"></li>
</ul>

<!-- Dark Mode Toggle
<button id="dark-mode-toggle" class="dark-mode-toggle">
🌙/☀️
</button> -->
<!-- Dark Mode Toggle -->

</nav>


<!-- Contributors Section -->
<section id="contributors">
<h2>Hacktoberfest Contributors</h2>
<div class="contributor-grid" id="contributor-grid">
<!-- Contributors will be dynamically injected here by JavaScript -->
</div>
</section>


<!-- Kittens Section -->
<section id="kittens">
Expand All @@ -154,75 +148,14 @@ <h2>Adorable Kittens</h2>
</div>
</section>

<!-- Puppies Section -->
<section id="puppies">
<h2>Cute Puppies</h2>
<div class="contributor-grid">
<div class="contributor">
<img src="https://placedog.net/400/300" alt="Puppy">
<a href="https://dogs.ie/">Meet the Puppies</a>
</div>
<div class="contributor">
<img src="https://placedog.net/401/300" alt="Puppy">
<a href="https://www.dogstrust.ie/">Puppy Cuteness Overload</a>
</div>
</div>
</section>


<footer>
<p> &copy; <span id="year"></span> Hacktoberfest. All rights reserved.</p>
</footer>

<!-- JavaScript for Contributors and Dark Mode -->
<script>
document.addEventListener('DOMContentLoaded', function () {
// Fetch the contributor list JSON file
fetch('./Contributor_list.json')
.then(response => response.json())
.then(data => {
const contributorGrid = document.getElementById('contributor-grid');

data.forEach(contributor => {
const contributorElement = document.createElement('div');
contributorElement.className = 'contributor';

const githubUrl = contributor.github_url;
const username = githubUrl.match(/https:\/\/github\.com\/([^\/]+)/)[1];

if (username) {
fetch(`https://api.github.com/users/${username}`)
.then(response => response.json())
.then(data => {
if (data && data.avatar_url) {
const avatar_img = data.avatar_url;
contributorElement.innerHTML = `
<img src="${avatar_img}" alt="Contributor Avatar">
<a href="${contributor.github_url}" target="_blank">${contributor.name}</a>
<br>
<p id="action">${contributor.action}</p>
`;
}
});
}

contributorGrid.appendChild(contributorElement);
});
});

// Set year in the footer
document.getElementById('year').textContent = new Date().getFullYear();

// Dark Mode Toggle
const darkModeToggle = document.getElementById('dark-mode-toggle');
const body = document.body;

darkModeToggle.addEventListener('click', () => {
body.classList.toggle('dark-mode');
const isDarkMode = body.classList.contains('dark-mode');
darkModeToggle.textContent = isDarkMode ? '☀️ Light Mode' : '🌙 Dark Mode';
});
});
</script>


<!-- Facebook Login Logic -->
<script>
Expand Down
Loading