Skip to content

Commit

Permalink
slight landing page refactor re: inline svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
romannurik committed Jul 23, 2018
1 parent 95012a8 commit b011ec9
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 9 deletions.
5 changes: 4 additions & 1 deletion app/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ <h1>Android Asset Studio</h1>
{% for generator in group.items %}
<a href="{{ generator.url }}"
class="home-generator-card{% if generator.extraClasses %} {{ generator.extraClasses }}{% endif %}">
<img class="generator-image" src="{{ generator.image }}" alt="{{ generator.title }}">
<div class="generator-image">
{% set imgIncludePath = '../' + generator.image %}
{% include imgIncludePath %}
</div>
<div class="generator-title">{{ generator.title }}</div>
<div class="generator-description">{{ generator.description }}</div>
</a>
Expand Down
2 changes: 1 addition & 1 deletion app/res/generator-thumbs/icon-animator.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/res/generator-thumbs/icons-actionbar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/res/generator-thumbs/icons-app-shortcut.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/res/generator-thumbs/icons-generic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/res/generator-thumbs/icons-launcher.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/res/generator-thumbs/icons-notification.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/res/generator-thumbs/nine-patches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/styles/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ body.page-home {
.generator-image {
width: $homeCardWidth;
height: $homeCardWidth / 1.48;
color: $colorAccent;
}

.generator-title {
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ gulp.task('__serve__', ['styles', 'html', 'webpack'], () => {

gulp.watch(['app/html/**/*.html'], ['html', reload]);
gulp.watch(['app/**/*.{scss,css}'], ['styles', reload]);
gulp.watch(['app/res/**/*'], reload);
gulp.watch(['app/res/**/*'], ['res', reload]);

if (webpackInstance) {
webpackInstance.watch({}, (err, stats) => {
Expand Down

0 comments on commit b011ec9

Please sign in to comment.