Skip to content

Commit

Permalink
Changed the website logo
Browse files Browse the repository at this point in the history
  • Loading branch information
matanl490 committed Oct 14, 2024
1 parent 5eebca5 commit 53ce674
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
5 changes: 5 additions & 0 deletions src/CatalogLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/PortLogo.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Catalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const dogs = [
const Catalog: React.FC = () => {
return (
<section className="catalog">
<h3>Port's Dog Catalog</h3>
<h3>Dog's Catalog</h3>
<div className="dog-cards-container">
{dogs.map((dog, index) => (
<DogCard key={index} {...dog} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './Footer.css';
const Footer: React.FC = () => {
return (
<footer className="App-footer">
<p>&copy; {new Date().getFullYear()} The Dog Catalog. All rights reserved.</p>
<p>{new Date().getFullYear()} The Dog Catalog.</p>
</footer>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

.logo img {
height: 20px; /* Set logo height to 20px */
height: 30px; /* Set logo height to 20px */
}

.nav-container {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Link } from 'react-router-dom'; // Import Link for routing
import PortLogo from '../PortLogo.svg';
import CatalogLogo from '../CatalogLogo.svg';
import './Header.css';

const Header: React.FC = () => {
Expand All @@ -9,7 +9,7 @@ const Header: React.FC = () => {
<nav>
<div className="logo">
<Link to="/">
<img src={PortLogo} alt="Port Logo" />
<img src={CatalogLogo} alt="Dog's Catalog Logo" />
</Link>
</div>
</nav>
Expand Down
16 changes: 7 additions & 9 deletions src/components/Manage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ const Manage = () => {
const [dogData, setDogData] = useState({
name: '',
age: '',
picture: '',
height: '',
color: '',
favoritePortFeature: '',
favoriteToy: '',
favoriteMeal: '',
});

Expand All @@ -23,10 +22,9 @@ const Manage = () => {
setDogData({
name: '',
age: '',
picture: '',
height: '',
color: '',
favoritePortFeature: '',
favoriteToy: '',
favoriteMeal: '',
});
};
Expand All @@ -42,23 +40,23 @@ const Manage = () => {
</div>
<div className="form-group">
Age:
<input type="number" value={dogData.age} onChange={handleChange} required />
<input type="number" name="age" value={dogData.age} onChange={handleChange} required />
</div>
<div className="form-group">
height:
<input type="text" value={dogData.height} onChange={handleChange} required />
<input type="text" name="height" value={dogData.height} onChange={handleChange} required />
</div>
<div className="form-group">
color:
<input type="text" value={dogData.color} onChange={handleChange} required />
<input type="text" name="color" value={dogData.color} onChange={handleChange} required />
</div>
<div className="form-group">
favoriteToy:
<input type="text" value={dogData.favoritePortFeature} onChange={handleChange} required />
<input type="text" name="favoriteToy" value={dogData.favoriteToy} onChange={handleChange} required />
</div>
<div className="form-group">
favoriteMeal:
<input type="text" value={dogData.favoriteMeal} onChange={handleChange} required />
<input type="text" name="favoriteMeal" value={dogData.favoriteMeal} onChange={handleChange} required />
</div>
<button type="submit" className="submit-button" onClick={() => alert(`Dog name: ${dogData.name} was added successfully!`)}>Add Dog</button>
</form>
Expand Down

0 comments on commit 53ce674

Please sign in to comment.