-
Notifications
You must be signed in to change notification settings - Fork 62
Maja - Business site #61
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
majaengberg02
wants to merge
9
commits into
Technigo:main
Choose a base branch
from
majaengberg02:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c38c065
Navbar, hero image, about section, card section
majaengberg02 47d13bc
contact form
majaengberg02 7d40cbe
.
majaengberg02 e8b5506
Hamburger menu and js
majaengberg02 2217ad6
Readme file and comments
majaengberg02 f3cbe21
cleaning up code
majaengberg02 1285816
cleaning up css code and adding some comments
majaengberg02 7b921ff
Small changes to clean up the code
majaengberg02 5cf9814
Code Review changes
majaengberg02 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,45 @@ | ||
| # js-project-business-site | ||
| # js-project-business-site | ||
|
|
||
| # Paws of Hope Website | ||
|
|
||
| A website for **Paws of Hope**, an organization dedicated to rescuing and rehoming animals. | ||
| Built with **HTML**, **CSS**, and **JavaScript**. | ||
|
|
||
| Live site: https://business-site-pawsofhope.netlify.app/ | ||
|
|
||
| --- | ||
|
|
||
| ## Purpose | ||
| - Share the mission of Paws of Hope | ||
| - Showcase adoptable pets | ||
| - Provide contact information and newsletter signup | ||
|
|
||
| --- | ||
|
|
||
| ## Pages | ||
| - **Home** – Introduction and mission | ||
| - **About** – Information about the organization | ||
| - **Adopt** – Profiles of pets available for adoption | ||
| - **Contact** – Contact details and newsletter subscription | ||
|
|
||
| --- | ||
|
|
||
| ## Tech Stack | ||
| - HTML5 | ||
| - CSS3 | ||
| - JavaScript | ||
|
|
||
| --- | ||
|
|
||
| ## Setup | ||
| 1. Clone or download this repository. | ||
| 2. Open the project in VS Code (or another editor). | ||
| 3. Open `index.html` in a browser or use Live Server in VS Code. | ||
|
|
||
| --- | ||
|
|
||
| ## Future Improvements | ||
| - Add detailed pet pages | ||
| - Implement search and filters for adoptions | ||
| - Improve form validation | ||
| - Optimize images for performance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,206 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Paws of Hope</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| <script src="script.js" defer></script> | ||
| <style> | ||
| @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); | ||
| </style> | ||
| </head> | ||
|
|
||
| <body> | ||
|
|
||
| <section> | ||
| <nav class="navbar" id="navbar"> | ||
| <h1 class="logo">Paws of Hope</h1> | ||
| <button | ||
| id="open-menu-btn" | ||
| onclick="openSidebar()" | ||
| aria-label="Open Menu"> | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width="30" | ||
| height="30" | ||
| viewBox="0 0 24 22" | ||
| fill="none" | ||
| stroke="#2446C2" | ||
| stroke-width="3" | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round"> | ||
| <line x1="3" y1="13" x2="21" y2="13"></line> | ||
| <line x1="3" y1="6" x2="21" y2="6"></line> | ||
| <line x1="3" y1="20" x2="21" y2="20"></line> | ||
| </svg> | ||
| </button> | ||
| <div class="nav-links" id="navbarLinks"> | ||
| <button | ||
| id="close-menu-btn" | ||
| onclick="closeSidebar()" | ||
| aria-label="Close Menu"> | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| height="30px" | ||
| viewBox="0 0 24 22" | ||
| width="30px" | ||
| fill="none" | ||
| stroke="#2446C2" | ||
| stroke-width="3" | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round"> | ||
| <line x1="18" y1="6" x2="6" y2="18"></line> | ||
| <line x1="6" y1="6" x2="18" y2="18"></line> | ||
| </svg> | ||
| </button> | ||
| <a href="#home">Home</a> | ||
| <a href="#about">About</a> | ||
| <a href="#adopt">Adopt</a> | ||
| <a href="#contact">Contact</a> | ||
| </div> | ||
| </nav> | ||
| </section> | ||
|
|
||
| <div | ||
| id="overlay" | ||
| onclick="closeSidebar()" | ||
| aria-hidden="true"> | ||
| </div> | ||
|
|
||
| <section> | ||
| <div class="hero-container"> | ||
| <img class="hero-image" | ||
| src="Images/lum3n-DwDCTnlp-V4-unsplash.jpg" | ||
| alt="Hero image of a dog"> | ||
|
|
||
| <div class="hero-text"> | ||
| <h2>ADOPT</h2> | ||
| <h3>Don't shop</h3> | ||
| <div class="hero-button"> | ||
| <a href="#adopt">Meet the Pack!</a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <section> | ||
| <div class="about"> | ||
| <h4 id="about">About Us</h4> | ||
| <p>We are a non-profit organization dedicated to rescuing and rehoming abandoned and abused animals. Our mission is to provide a safe haven for these animals and find them loving forever homes.</p> | ||
| </div> | ||
|
|
||
| <section id="adopt"> | ||
| <div class="card-section"> | ||
| <div class="card"> | ||
| <img class="card-image" | ||
| src="/Images/sebastian-herrmann-yEmTlB3CdS8-unsplash.jpg" | ||
| alt="Dog Image"> | ||
| <h5>Nala</h5> | ||
| <p>Female</p> | ||
| <a href="#adopt">Read more</a> | ||
| </div> | ||
|
|
||
| <div class="card"> | ||
| <img class="card-image" | ||
| src="/Images/g-l-q3XE0HnCEGc-unsplash.jpg" | ||
| alt="Dog Image"> | ||
| <h5>Willow</h5> | ||
| <p>Female</p> | ||
| <a href="#adopt">Read more</a> | ||
| </div> | ||
|
|
||
| <div class="card"> | ||
| <img class="card-image" | ||
| src="/Images/haberdoedas-Zc3fR4AiH4U-unsplash.jpg" | ||
| alt="Dog Image"> | ||
| <h5>Billy</h5> | ||
| <p>Male</p> | ||
| <a href="#adopt">Read more</a> | ||
| </div> | ||
|
|
||
| <div class="card"> | ||
| <img class="card-image" | ||
| src="/Images/natalia-gusakova-oWiWdIO1rfQ-unsplash.jpg" | ||
| alt="Dog Image"> | ||
| <h5>Zeke</h5> | ||
| <p>Male</p> | ||
| <a href="#adopt">Read more</a> | ||
| </div> | ||
| </section> | ||
|
|
||
| <div class="view-all-button"> | ||
| <a href="#adopt">View All Pets</a> | ||
| </div> | ||
|
|
||
| <div class="contact-section"> | ||
| <div class="contact-text"> | ||
| <h4>Contact Us</h4> | ||
| <p> | ||
| If you have any questions or would like to learn more about our organization, please don't hesitate to reach | ||
| out. | ||
| We would love to hear from you! | ||
| </p> | ||
| </div> | ||
|
|
||
|
|
||
| <div class="contact-form" id="contact"> | ||
| <form | ||
| action="https://httpbin.org/anything" method="POST"> | ||
|
|
||
| <div class="name-email"> | ||
| <input | ||
| required | ||
| type="text" | ||
| id="name" | ||
| name="name" | ||
| placeholder="Name" | ||
| style="width: 100%;"> | ||
|
|
||
| <input | ||
| required | ||
| type="email" | ||
| id="email" | ||
| name="email" | ||
| placeholder="Email" | ||
| style="width: 100%;"> | ||
| </div> | ||
|
|
||
| <div class="subject-message"> | ||
| <input | ||
| required | ||
| type="text" | ||
| id="subject" | ||
| name="subject" | ||
| placeholder="Subject"> | ||
|
|
||
| <textarea | ||
| required | ||
| name="message" | ||
| id="message" | ||
| cols="30" | ||
| rows="5" | ||
| placeholder="Message"></textarea> | ||
| </div> | ||
|
|
||
| <div class="subscribe-checkbox"> | ||
| <label class="checkbox-container">Subscribe to our monthly newsletter? | ||
| <input type="checkbox" checked> | ||
| <span class="custom-checkbox"></span> | ||
| </label> | ||
| </div> | ||
| <button class="send-button">Send</button> | ||
|
|
||
| </form> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <section> | ||
| <footer class="footer"> | ||
| <p>© 2025 Paws of Hope. All rights reserved.</p> | ||
| </footer> | ||
| </body> | ||
|
|
||
| </html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| const navbar = document.getElementById('navbarLinks') | ||
|
|
||
| // Makes the sidebar open and close when clicking the buttons | ||
| function openSidebar() { | ||
| navbar.classList.add('show') | ||
| } | ||
|
|
||
| function closeSidebar() { | ||
| navbar.classList.remove('show') | ||
| } | ||
|
|
||
|
|
||
| // Overlay functionality to close the sidebar when clicking outside of it | ||
| function openSidebar() { | ||
| document.querySelector('.nav-links').classList.add('show'); | ||
| document.body.classList.add('menu-open'); | ||
| } | ||
|
|
||
| function closeSidebar() { | ||
| document.querySelector('.nav-links').classList.remove('show'); | ||
| document.body.classList.remove('menu-open'); | ||
| } | ||
|
|
||
| // Close sidebar when clicking on a navigation link | ||
| const navLinks = document.querySelectorAll('.nav-links a'); | ||
| navLinks.forEach(link => { | ||
| link.addEventListener('click', closeSidebar); | ||
| }); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just a preference but I think this would look best in all upper or lower case :)