-
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3147 icon: add html page to showcase icons on different backgrounds
Signed-off-by: Patrizio Bekerle <[email protected]>
- Loading branch information
Showing
1 changed file
with
107 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
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> |