Skip to content

Commit

Permalink
Merge pull request #49 from stepanzh/43-add-button-for-support-develo…
Browse files Browse the repository at this point in the history
…pment-on-index-page

feat: donate button on app screen
  • Loading branch information
stepanzh authored Feb 16, 2024
2 parents f88f3e2 + c209868 commit dd6585d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
47 changes: 20 additions & 27 deletions static/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,39 @@ body { background-color: white; }
margin-bottom: 16px;
}

.severity-warning {
color: var(--red-0-color);
}
.severity-warning { color: var(--red-0-color); }

#app-header nav {
position: relative;
display: flex;
justify-content: space-between;
#recipe-nav {
display: grid;
grid-template-columns: 3fr 1fr 1fr 3fr;
column-gap: 8px;
height: 36px;
}

#app-header nav > :first-child { padding-left: 0; }
#command-menu,
#command-menu-back {
padding-left: 0;
justify-self: left;
}

#app-header nav > :last-child { padding-right: 0; }
#command-clear {
justify-self: right;
padding-right: 0;
}

/* Promo link start */
#promo {
/* Center itself, ignore flex */
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 36px;
height: 36px;
border-radius: 18px;
.link-icon {
position: relative;
}

.promo__icon {
position: absolute;
.link-icon > svg {
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -40%);
}

.promo__icon svg {
transform: translate(-50%, -50%);
width: 24px;
height: 24px;
color: var(--special-0-color);
}

/* Promo link end */

.toggle-wide {
display: grid;
Expand Down
3 changes: 3 additions & 0 deletions static/icons/dollar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions static/icons/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
<div id="app-header">
<nav id="recipe-nav">
<button id="command-menu" class="default-button" aria-label="меню программы">Меню</button>
<div id="promo"><a href="promo.html"><span class="promo__icon">{{ icons.gift }}</span></a></div>
<a class="link-icon" href="promo.html">{{ icons.gift }}</a>
<a class="link-icon" href="{{ links.payment }}" target="_blank">{{ icons.dollar }}</a>
<button id="command-clear" class="default-button severity-warning" aria-label="очистить таблицу">Очистить</button>
</nav>
<nav id="menu-nav" style="display: none;">
Expand Down Expand Up @@ -87,7 +88,7 @@
<!-- Help by donation -->
<div class="app-menu-item">
<a href="{{ links.payment }}" target="_blank">
<span class="app-menu-item__icon">{{ icons.credit_card }}</span>
<span class="app-menu-item__icon">{{ icons.dollar }}</span>
<span class="app-menu-item__caption">Помочь монетой</span>
<span class="app-menu-item__external-link-icon">{{ icons.external_link_mini }}</span>
</a>
Expand Down

0 comments on commit dd6585d

Please sign in to comment.