Skip to content

Commit

Permalink
#3147 icon: add html page to showcase icons on different backgrounds
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Nov 11, 2024
1 parent f29e59e commit 3c9f21a
Showing 1 changed file with 107 additions and 0 deletions.
107 changes: 107 additions & 0 deletions icons/icons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SVG Icon Display</title>
<style>
.light-bg {
background-color: #f0f0f0;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}

.dark-bg {
background-color: #333;
color: #fff;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}

.blue-bg {
background-color: #007bff;
color: #fff;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}

.green-bg {
background-color: #28a745;
color: #fff;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}

.red-bg {
background-color: #dc3545;
color: #fff;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}

.icon-container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}

.icon {
width: 100px;
height: 100px;
margin: 0 20px;
}
</style>
</head>
<body>
<div class="light-bg">
<h2>Light Background</h2>
<div class="icon-container">
<img src="icon.svg" alt="Icon" class="icon">
<img src="icon-dark.svg" alt="Dark Icon" class="icon">
</div>
</div>

<div class="dark-bg">
<h2>Dark Background</h2>
<div class="icon-container">
<img src="icon.svg" alt="Icon" class="icon">
<img src="icon-dark.svg" alt="Dark Icon" class="icon">
</div>
</div>

<div class="blue-bg">
<h2>Blue Background</h2>
<div class="icon-container">
<img src="icon.svg" alt="Icon" class="icon">
<img src="icon-dark.svg" alt="Dark Icon" class="icon">
</div>
</div>

<div class="green-bg">
<h2>Green Background</h2>
<div class="icon-container">
<img src="icon.svg" alt="Icon" class="icon">
<img src="icon-dark.svg" alt="Dark Icon" class="icon">
</div>
</div>

<div class="red-bg">
<h2>Red Background</h2>
<div class="icon-container">
<img src="icon.svg" alt="Icon" class="icon">
<img src="icon-dark.svg" alt="Dark Icon" class="icon">
</div>
</div>
</body>
</html>

0 comments on commit 3c9f21a

Please sign in to comment.