From a32257569190727e12c7e433b82e0a6da0fdc2f4 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 22 Oct 2022 23:56:21 +0300 Subject: feat: use remote logo --- public/eug-vs.png | Bin 32216 -> 0 bytes public/favicon.ico | Bin 15406 -> 0 bytes src/benzinConfig.ts | 1 + src/lib/types.ts | 1 + src/pages/_app.tsx | 7 ++++--- src/styles/globals.css | 5 +++++ 6 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 public/eug-vs.png delete mode 100644 public/favicon.ico create mode 100644 src/styles/globals.css diff --git a/public/eug-vs.png b/public/eug-vs.png deleted file mode 100644 index f853fed..0000000 Binary files a/public/eug-vs.png and /dev/null differ diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index efd76f1..0000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/src/benzinConfig.ts b/src/benzinConfig.ts index 12cdada..3f355ed 100644 --- a/src/benzinConfig.ts +++ b/src/benzinConfig.ts @@ -6,6 +6,7 @@ const benzinConfig: BenzinConfig = { CDN: 'https://git.eug-vs.xyz/eug-vs/eug-vs-xyz/plain/src', adapter: nginxAdapter, faviconPath: '/public/icon-64.png', + logoPath: '/public/eug-vs.png', emojiRootPath: '/emoji', cssPath: '/public/style.css?h=benzin-next-cdn' }; diff --git a/src/lib/types.ts b/src/lib/types.ts index a177dcd..e6bb22a 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -12,6 +12,7 @@ export interface BenzinConfig { adapter: Adapter; title: string; faviconPath: string; + logoPath: string; emojiRootPath: string; cssPath: string; } diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 3dd15a2..715179b 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,13 +1,14 @@ -import logo from '../../public/eug-vs.png'; +import '../styles/globals.css'; import type { AppProps } from 'next/app'; import Image from 'next/future/image'; +import benzinConfig from '../benzinConfig'; function MyApp({ Component, pageProps }: AppProps) { return ( <> - logo -

{"Eugene's Space"}

+ logo +

{benzinConfig.title}

diff --git a/src/styles/globals.css b/src/styles/globals.css new file mode 100644 index 0000000..7c6c955 --- /dev/null +++ b/src/styles/globals.css @@ -0,0 +1,5 @@ +@font-face { + font-family: "Bitter"; + src: url(../../public/fonts/Bitter-Regular.woff) format("truetype"); +} + -- cgit v1.2.3