Skip to content

Commit

Permalink
refactor: major rework of favicons based on effective/favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Aug 1, 2024
1 parent 3189012 commit 8f10fcb
Show file tree
Hide file tree
Showing 27 changed files with 147 additions and 201 deletions.
25 changes: 0 additions & 25 deletions app/components/page/favicon/FavIcon.tsx

This file was deleted.

19 changes: 19 additions & 0 deletions app/components/page/favicon/SebastianSoftware.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import icoPath from "./sebastian-software.ico";
import appManifestPath from "./sebastian-software.webmanifest";
import touchIcon152 from "./sebastian-software-apple-152.png";
import touchIcon167 from "./sebastian-software-apple-167.png";
import touchIcon180 from "./sebastian-software-apple-180.png";
import svgPath from "./sebastian-software-opt.svg";

export function Favicon() {
return (
<>
<link rel="icon" href={icoPath} sizes="32x32" />
<link rel="manifest" href={appManifestPath} />
<link rel="icon" href={svgPath} type="image/svg+xml" />
<link rel="apple-touch-icon" sizes="152x152" href={touchIcon152} />
<link rel="apple-touch-icon" sizes="167x167" href={touchIcon167} />
<link rel="apple-touch-icon" sizes="180x180" href={touchIcon180} />
</>
);
}
Binary file removed app/components/page/favicon/apple-touch-icon.png
Binary file not shown.
Binary file removed app/components/page/favicon/favicon.ico
Binary file not shown.
Binary file removed app/components/page/favicon/icon-192.png
Binary file not shown.
Binary file removed app/components/page/favicon/icon-512.png
Binary file not shown.
1 change: 0 additions & 1 deletion app/components/page/favicon/icon.svg

This file was deleted.

2 changes: 1 addition & 1 deletion app/components/page/favicon/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./FavIcon"
export * from "./SebastianSoftware"
Binary file added app/components/page/favicon/sebastian-software.ico
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"name": "sebastian-software-homepage",
"short_name": "sebastian-software-homepage",
"description": "Sebastian Software Homepage",
"start_url": ".",
"scope": "/",
"display": "standalone",
"icons": [
{
"src": "sebastian-software-pwa-192.png",
Expand Down
16 changes: 0 additions & 16 deletions app/components/page/favicon2/SebastianSoftware.tsx

This file was deleted.

Binary file removed app/components/page/favicon2/sebastian-software.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "@remix-run/react"
import type { PropsWithChildren } from "react"

import { Body, FavIcon, Footer, Header, Main } from "./components/page"
import { Body, Favicon, Footer, Header, Main } from "./components/page"

export function Layout({ children }: PropsWithChildren) {
return (
Expand All @@ -19,7 +19,7 @@ export function Layout({ children }: PropsWithChildren) {
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Links />
<FavIcon />
<Favicon />
</head>
<Body>
<Header />
Expand Down
22 changes: 0 additions & 22 deletions app/routes/[manifest.webmanifest].tsx

This file was deleted.

14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "sebastian-software-remix",
"name": "sebastian-software-homepage",
"description": "Sebastian Software Homepage",
"private": false,
"sideEffects": false,
"type": "module",
Expand All @@ -9,8 +10,7 @@
"test:lint": "eslint .",
"test:json-schema": "pnpm create:json-schema ; ajv -s ./.tmp/data.schema.json -d 'app/data/*.json'",
"create:json-schema": "mkdir -p ./.tmp && typescript-json-schema app/data/data.types.ts ProjectsType -o ./.tmp/data.schema.json --skipLibCheck --ignoreErrors --required",
"create:favicons": "tsx tools/favicon-generator/favicon-generator.ts",
"create:favicons2": "effective-favicon app/components/page/favicon2",
"create:favicons": "effective-favicon app/components/page/favicon",
"fix": "eslint --fix .; prettier --write .",
"format": "prettier --write .",
"test:format": "prettier --check .",
Expand All @@ -21,8 +21,7 @@
"update:latest": "ncu --deep --upgrade --interactive",
"update:minor": "ncu --deep --upgrade --interactive --target minor",
"update:pnpm": "corepack up",
"deploy:prod": "sst deploy --stage production",
"prepare": "pnpm create:favicons"
"deploy:prod": "sst deploy --stage production"
},
"dependencies": {
"@effective/shadow": "^1.0.1",
Expand All @@ -43,11 +42,10 @@
"@effective/color": "^1.0.1",
"@effective/css-reset": "^3.1.0",
"@effective/eslint-config": "^5.4.7",
"@effective/favicon": "^2.0.0",
"@mdx-js/rollup": "^3.0.1",
"@effective/favicon": "2.0.0-0",
"@remix-run/dev": "^2.10.3",
"@storybook/react": "^8.2.6",
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.14.13",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
Expand All @@ -56,10 +54,8 @@
"@vercel/remix": "^2.10.3",
"ajv-cli": "^5.0.0",
"eslint": "^8.57.0",
"ico-endec": "^0.1.6",
"npm-check-updates": "^16.14.20",
"prettier": "^3.3.3",
"sharp": "^0.33.4",
"sst": "ion",
"svgo": "^3.3.2",
"tsx": "^4.16.3",
Expand Down
Loading

0 comments on commit 8f10fcb

Please sign in to comment.