Skip to content

Commit

Permalink
move svgs out of static into assets
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdwheatley committed Jun 7, 2017
1 parent 6597911 commit dbb5d09
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion components/navigation.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Router from "next/router";
import NProgress from "nprogress";
import { Link } from "../routes";
import GitHubRibbon from "../static/github-ribbon.svg";
import GitHubRibbon from "../assets/github-ribbon.svg";

Router.onRouteChangeStart = () => NProgress.start();
Router.onRouteChangeComplete = () => NProgress.done();
Expand Down
4 changes: 2 additions & 2 deletions components/page-selector.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link } from "../routes";
import ChevronLeft from "../static/chevron-l.svg";
import ChevronRight from "../static/chevron-r.svg";
import ChevronLeft from "../assets/chevron-l.svg";
import ChevronRight from "../assets/chevron-r.svg";

function getRouteOptions(prev, secondPage, type) {
if (secondPage && type !== "top") {
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ A Hacker News Progressive Web App built using Next.js

## Features

* Server-rendered React with Next.js
* Aliases React to Preact in production for smaller bundle size
* Service worker support with sw-precache
* Server-rendered [React](https://facebook.github.io/react/) with [Next.js](https://github.com/zeit/next.js/)
* Aliases React to [Preact](https://preactjs.com/) in production for a smaller bundle size
* Service worker support with [sw-precache](https://github.com/GoogleChrome/sw-precache)
* 100/100 Lighthouse score
* Server side in memory LRU cache to improve time to first byte
* DNS prefetching for client side API requests
Expand Down

0 comments on commit dbb5d09

Please sign in to comment.