Skip to content
Closed
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
104 changes: 104 additions & 0 deletions cat photo app
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cat Photo App</title>
<link rel="stylesheet" href="catphoto.css"> <!-- Linking the CSS file -->
</head>
<body>
<header>
<h1>🐾 Cat Photo Gallery 🐾</h1>
</header>
<main>
<section class="gallery">
<!-- Image 1 -->
<div class="image-container">
<img src="images/cat1.png" alt="Cute Cat 1">
<p>Cute Cat 1</p>
</div>
<!-- Image 2 -->
<div class="image-container">
<img src="images/cat2.png" alt="Cute Cat 2">
<p>Cute Cat 2</p>
</div>
<!-- Placeholder Images -->
<div class="image-container">
<img src="images/cat3.jpg" alt="Placeholder Cat 3">
<p>Placeholder Cat 3</p>
</div>
<div class="image-container">
<img src="images/cat4.jpg" alt="Placeholder Cat 4">
<p>Placeholder Cat 4</p>
</div>
</section>
</main>
<footer>
<p>Made with ❤️ by Ather</p>
</footer>
</body>
</html>


#CSS code
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

header {
background-color: #4CAF50;
color: white;
padding: 20px;
text-align: center;
width: 100%;
}

main {
padding: 20px;
width: 100%;
max-width: 1200px;
}

.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
}

.image-container {
overflow: hidden;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-container img {
width: 100%;
height: auto;
transition: transform 0.3s ease-in-out;
}

.image-container img:hover {
transform: scale(1.1);
}

footer {
margin-top: 20px;
text-align: center;
background-color: #333;
color: white;
padding: 10px 0;
width: 100%;
}
Loading