Skip to content

Commit

Permalink
feat(demo): add new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
daelmaak committed Nov 13, 2024
1 parent b03d12e commit b960acd
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 11 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Ngx Gallery
<p align="center">
<img width="150px" src="https://raw.githubusercontent.com/daelmaak/ngx-gallery/2bd4e961c590edeeac3cf9a230f504a51b7db8ad/apps/demo/src/assets/icons/logo.png" style="max-width:100%;">
</p>
<h1 align="center">Ngx Gallery</h1>

Small, performant, responsive, dependency free, easy to use Angular **8+** gallery.

Expand Down
5 changes: 4 additions & 1 deletion apps/demo/src/app/components/header/header.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<header>
<div class="header-inner-container">
<div>
<h1>Ngx Gallery</h1>
<div class="heading-container">
<img class="logo" src="./assets/icons/logo.webp" alt="logo" />
<h1>Ngx Gallery</h1>
</div>
<div class="subtitle">
Performant, mobile first, easy to use Angular 8+ Gallery
</div>
Expand Down
22 changes: 13 additions & 9 deletions apps/demo/src/app/components/header/header.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ header {
align-items: center;
justify-content: center;

.logo {
width: 110px;
position: relative;
right: 30px;
filter: drop-shadow(0px 0px 2px black);
}

@media (max-width: 767px) {
display: block;

Expand All @@ -42,8 +35,7 @@ header {

h1 {
text-align: center;
margin-top: 0;
margin-bottom: 10px;
margin: 0;
}

.subtitle {
Expand Down Expand Up @@ -85,3 +77,15 @@ header {
}
}
}

.heading-container {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}

.logo {
width: 3rem;
}
Binary file added apps/demo/src/assets/icons/logo.ico
Binary file not shown.
Binary file added apps/demo/src/assets/icons/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/demo/src/assets/icons/logo.webp
Binary file not shown.
1 change: 1 addition & 0 deletions apps/demo/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<base href="/" />
<meta name="description" content="Angular Gallery/Carousel component" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/assets/icons/logo.ico" />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
Expand Down

0 comments on commit b960acd

Please sign in to comment.