-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f9d319
commit 1dccaac
Showing
2 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,90 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Multiple Images Webpage</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 20px; | ||
background-color: #f0f0f0; | ||
} | ||
h1 { | ||
text-align: center; | ||
color: #333; | ||
} | ||
.image-grid { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | ||
gap: 20px; | ||
padding: 20px; | ||
} | ||
.image-item { | ||
background-color: white; | ||
border-radius: 8px; | ||
overflow: hidden; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
} | ||
.image-item img { | ||
width: 100%; | ||
height: 200px; | ||
object-fit: cover; | ||
} | ||
.image-caption { | ||
padding: 10px; | ||
text-align: center; | ||
font-size: 14px; | ||
color: #666; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>A Page with Multiple Images</h1> | ||
<div class="image-grid"> | ||
<div class="image-item"> | ||
<img | ||
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Crect width='200' height='150' fill='%233498db'/%3E%3Ctext x='100' y='75' font-family='Arial' font-size='18' fill='white' text-anchor='middle' dominant-baseline='middle'%3EImage 1%3C/text%3E%3C/svg%3E" | ||
alt="Blue Rectangle" | ||
/> | ||
<div class="image-caption">Image 1: Blue Rectangle</div> | ||
</div> | ||
<div class="image-item"> | ||
<img | ||
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Ccircle cx='100' cy='75' r='70' fill='%23e74c3c'/%3E%3Ctext x='100' y='75' font-family='Arial' font-size='18' fill='white' text-anchor='middle' dominant-baseline='middle'%3EImage 2%3C/text%3E%3C/svg%3E" | ||
alt="Red Circle" | ||
/> | ||
<div class="image-caption">Image 2: Red Circle</div> | ||
</div> | ||
<div class="image-item"> | ||
<img | ||
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Cpolygon points='100,20 180,130 20,130' fill='%232ecc71'/%3E%3Ctext x='100' y='95' font-family='Arial' font-size='18' fill='white' text-anchor='middle' dominant-baseline='middle'%3EImage 3%3C/text%3E%3C/svg%3E" | ||
alt="Green Triangle" | ||
/> | ||
<div class="image-caption">Image 3: Green Triangle</div> | ||
</div> | ||
<div class="image-item"> | ||
<img | ||
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Cellipse cx='100' cy='75' rx='90' ry='60' fill='%23f39c12'/%3E%3Ctext x='100' y='75' font-family='Arial' font-size='18' fill='white' text-anchor='middle' dominant-baseline='middle'%3EImage 4%3C/text%3E%3C/svg%3E" | ||
alt="Orange Ellipse" | ||
/> | ||
<div class="image-caption">Image 4: Orange Ellipse</div> | ||
</div> | ||
<div class="image-item"> | ||
<img | ||
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Crect x='25' y='25' width='150' height='100' fill='%239b59b6'/%3E%3Ctext x='100' y='75' font-family='Arial' font-size='18' fill='white' text-anchor='middle' dominant-baseline='middle'%3EImage 5%3C/text%3E%3C/svg%3E" | ||
alt="Purple Rectangle" | ||
/> | ||
<div class="image-caption">Image 5: Purple Rectangle</div> | ||
</div> | ||
<div class="image-item"> | ||
<img | ||
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Cpath d='M100 20 L180 130 H20 Z' fill='%231abc9c'/%3E%3Ctext x='100' y='95' font-family='Arial' font-size='18' fill='white' text-anchor='middle' dominant-baseline='middle'%3EImage 6%3C/text%3E%3C/svg%3E" | ||
alt="Teal Triangle" | ||
/> | ||
<div class="image-caption">Image 6: Teal Triangle</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |