Skip to content

Commit

Permalink
Stronger iconkitchen banner
Browse files Browse the repository at this point in the history
  • Loading branch information
romannurik committed Nov 22, 2022
1 parent 24d8e4f commit 827eb37
Show file tree
Hide file tree
Showing 7 changed files with 18,561 additions and 729 deletions.
2 changes: 1 addition & 1 deletion app/_generator-base.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends '_base.html' %}

{% block body %}
{% block banner %}{% endblock %}
<header class="page-header">
<a class="page-header-back-button icon-button theme-dark" href="index.html">
<i class="material-icons">arrow_back</i>
Expand Down Expand Up @@ -33,5 +34,4 @@ <h1 class="page-header-title">{{ title }}</h1>
</div>
{% endblock %}
</div>
{% block banner %}{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion app/components/page-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
justify-content: center;
padding: 16px 0;
box-shadow: material-shadow(4);
background-color: $colorAccent;
background-color: material-color('red', '700');
color: $colorWhitePrimary;
font-weight: 500;
z-index: 4;
Expand Down
4 changes: 3 additions & 1 deletion app/pages/home/home.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:math';

$homeCardWidth: 296px;
$homeCardGutter: 24px;
$homeHeaderOverlap: 48px;
Expand Down Expand Up @@ -106,7 +108,7 @@ body.page-home {

.generator-image {
width: $homeCardWidth;
height: $homeCardWidth / 1.48;
height: math.div($homeCardWidth, 1.48);
color: $colorAccent;
}

Expand Down
7 changes: 3 additions & 4 deletions app/pages/launcher-icon-generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@

{% block banner %}
<div class="page-header-banner">
<i class="material-icons">new_releases</i>
<i class="material-icons">error</i>
<span>
<a href="https://icon.kitchen">Try IconKitchen</a>, the successor to the
Android Asset Studio, and a great new way to make highly customizable
app icons for Android, iOS, and the web.
This page is no longer maintained. <a href="https://icon.kitchen">Switch to IconKitchen</a>, the successor to the
Android Asset Studio.
</span>
</div>
{% endblock %}
Expand Down
3 changes: 2 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const path = require('path');
const workboxBuild = require('workbox-build');
const prettyBytes = require('pretty-bytes');
const webpack = require('webpack');
const sass = require('gulp-sass')(require('sass'));

const AUTOPREFIXER_BROWSERS = [
'ff >= 30',
Expand Down Expand Up @@ -93,7 +94,7 @@ gulp.task('styles', () => {
return gulp.src('app/app.entry.scss')
.pipe($.changed('styles', {extension: '.scss'}))
.pipe($.sassGlob())
.pipe($.sass({
.pipe(sass({
style: 'expanded',
precision: 10,
quiet: true
Expand Down
Loading

0 comments on commit 827eb37

Please sign in to comment.