Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Add favicon (minor)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Cuadra committed Sep 2, 2018
1 parent 7f4ecc5 commit 2c1b3ba
Show file tree
Hide file tree
Showing 39 changed files with 158 additions and 61 deletions.
98 changes: 92 additions & 6 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Event handlers like onClick can't be added to this file
import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
import meta from '../src/meta';

export default class MyDocument extends Document {
static async getInitialProps(ctx) {
Expand All @@ -13,12 +14,91 @@ export default class MyDocument extends Document {
return (
<html lang="en">
<Head>
<title>Cheff - food macro planner</title>
<meta charset="UTF-8" />
<title>{meta.title}</title>
<meta name="description" content={meta.description} />

<link
rel="apple-touch-icon"
sizes="57x57"
href="/static/icons/apple-icon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="/static/icons/apple-icon-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="/static/icons/apple-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="/static/icons/apple-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="/static/icons/apple-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="/static/icons/apple-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="/static/icons/apple-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="/static/icons/apple-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/static/icons/apple-icon-180x180.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="/static/icons/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/static/icons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="/static/icons/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/static/icons/favicon-16x16.png"
/>
<link rel="manifest" href="/static/icons/manifest.json" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="/static/icons/ms-icon-144x144.png"
/>
<meta name="theme-color" content="#fd6721" />

<meta
name="viewport"
content="initial-scale=1.0, width=device-width, user-scalable=no"
/>
<link rel="manifest" href="/static/manifest.json" />
<link
href="https://fonts.googleapis.com/css?family=Roboto"
rel="stylesheet"
Expand All @@ -27,13 +107,19 @@ export default class MyDocument extends Document {
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/utilities.min.css"
rel="stylesheet"
/>

<link rel="stylesheet" href="/_next/static/style.css" />

{/* <meta property="og:url" content={meta.url} />
<meta property="og:title" content={meta.title || ''} />
<meta property="og:description" content={meta.description || ''} />
<meta name="twitter:site" content={meta.url || ''} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content={meta.ogImage || ''} />
<meta property="og:image" content={meta.ogImage || ''} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" /> */}

<script
dangerouslySetInnerHTML={{
__html: `
Expand Down
12 changes: 10 additions & 2 deletions src/MenuDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ import React from 'react';

import Link from 'next/link';

import { Drawer, DrawerContent, DrawerHeader, DrawerTitle } from 'rmwc/Drawer';
import {
Drawer,
DrawerContent,
DrawerHeader,
DrawerTitle,
DrawerSubtitle,
} from 'rmwc/Drawer';
import { ListDivider, SimpleListItem } from 'rmwc/List';
import { Typography } from 'rmwc/Typography';
import { Icon } from 'rmwc';
import meta from './meta';

const MenuDrawer = ({ isMobile, open, onClose }) => {
return (
<Drawer onClose={onClose} open={open} modal={isMobile}>
<DrawerHeader>
<DrawerTitle theme="primary">Cheff</DrawerTitle>
<DrawerTitle theme="primary">{meta.title}</DrawerTitle>
<DrawerSubtitle>{meta.subtitle}</DrawerSubtitle>
</DrawerHeader>

<DrawerContent>
Expand Down
6 changes: 6 additions & 0 deletions src/meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
title: 'Cheff',
subtitle: 'Food Macros Planner',
description:
'Cheff is a food macros planner calculator inspired in Kinobody KinoCheff.',
};
Binary file added static/icons/android-icon-144x144.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/android-icon-192x192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/android-icon-36x36.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/android-icon-48x48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/android-icon-72x72.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/android-icon-96x96.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-114x114.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-120x120.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-144x144.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-152x152.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-180x180.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-57x57.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-60x60.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-72x72.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-76x76.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon-precomposed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/apple-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions static/icons/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
Binary file added static/icons/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/favicon-96x96.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/favicon.ico
Binary file not shown.
48 changes: 48 additions & 0 deletions static/icons/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "Cheff",
"short_name": "Cheff",
"theme_color": "#fd6721",
"background_color": "#ffffff",
"display": "browser",
"orientation": "portrait",
"Scope": "/",
"start_url": "/",
"icons": [
{
"src": "/static/icons/android-icon-36x36.png",
"sizes": "36x36",
"type": "image/png",
"density": "0.75"
},
{
"src": "/static/icons/android-icon-48x48.png",
"sizes": "48x48",
"type": "image/png",
"density": "1.0"
},
{
"src": "/static/icons/android-icon-72x72.png",
"sizes": "72x72",
"type": "image/png",
"density": "1.5"
},
{
"src": "/static/icons/android-icon-96x96.png",
"sizes": "96x96",
"type": "image/png",
"density": "2.0"
},
{
"src": "/static/icons/android-icon-144x144.png",
"sizes": "144x144",
"type": "image/png",
"density": "3.0"
},
{
"src": "/static/icons/android-icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"density": "4.0"
}
]
}
Binary file added static/icons/ms-icon-144x144.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/ms-icon-150x150.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/ms-icon-310x310.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/icons/ms-icon-70x70.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/images/icons/icon-128x128.png
Binary file not shown.
Binary file removed static/images/icons/icon-144x144.png
Diff not rendered.
Binary file removed static/images/icons/icon-152x152.png
Diff not rendered.
Binary file removed static/images/icons/icon-192x192.png
Diff not rendered.
Binary file removed static/images/icons/icon-384x384.png
Diff not rendered.
Binary file removed static/images/icons/icon-512x512.png
Diff not rendered.
Binary file removed static/images/icons/icon-72x72.png
Diff not rendered.
Binary file removed static/images/icons/icon-96x96.png
Diff not rendered.
53 changes: 0 additions & 53 deletions static/manifest.json

This file was deleted.

0 comments on commit 2c1b3ba

Please sign in to comment.