From 84156796bef8872f10f51601f79e25cfb4357e17 Mon Sep 17 00:00:00 2001 From: matthieu42morin Date: Sun, 28 Apr 2024 13:56:49 +0200 Subject: [PATCH] personal configs --- src/lib/config/general.ts | 70 +++++++++++++++++++++----------------- src/lib/config/icon.ts | 5 +++ src/lib/config/index.ts | 51 +++++++++++++++++++++++++++ src/lib/config/post.ts | 14 +++++++- src/lib/config/projects.ts | 22 ++++++++++++ src/lib/config/site.ts | 15 ++++---- 6 files changed, 138 insertions(+), 39 deletions(-) create mode 100644 src/lib/config/index.ts create mode 100644 src/lib/config/projects.ts diff --git a/src/lib/config/general.ts b/src/lib/config/general.ts index 13b9e3f..396539c 100644 --- a/src/lib/config/general.ts +++ b/src/lib/config/general.ts @@ -1,57 +1,65 @@ import type { ThemeConfig, HeadConfig, HeaderConfig, FooterConfig, DateConfig, FeedConfig } from '$lib/types/general' export const theme: ThemeConfig = [ - { - name: 'cmyk', - text: '🖨 Light' - }, { name: 'dracula', text: '🧛 Dark' }, { - name: 'valentine', - text: '🌸 Valentine' + name: 'coffee', + text: '☕ Coffee' }, { - name: 'aqua', - text: '💦 Aqua' - }, - { - name: 'synthwave', - text: '🌃 Synthwave' + name: 'cmyk', + text: '🖨 Light' }, { name: 'night', text: '🌃 Night' }, - { - name: 'lofi', - text: '🎶 Lo-Fi' - }, - { - name: 'lemonade', - text: '🍋 Lemonade' - }, - { - name: 'cupcake', - text: '🧁 Cupcake' - }, - { - name: 'garden', - text: '🏡 Garden' - }, { name: 'retro', text: '🌇 Retro' }, { - name: 'black', - text: '🖤 Black' + name: 'Chocolate', + text: '🍪 My choc Theme', + colors: { + primary: '#e6ccb2', + 'primary-content': '1f140d', + secondary: '#b9ca88', + 'secondary-content': '#1f140d', + accent: '#7b8f4b', + 'accent-content': '#1f140d', + neutral: '#36241c', + 'neutral-content': '#f0e5e1', + 'base-100': '#422c22', + 'base-200': '#4d3328', + 'base-300': '#644234', + 'base-content': '#f0e5e1', + info: '#00d3ff', + 'info-content': '#001016', + success: '#4a834c', + 'success-content': '#000e06', + warning: '#d53b00', + 'warning-content': '#fcdbd1', + error: '#991218', + 'error-content': '#ffd8d4' + } } ] -export const head: HeadConfig = {} +export const head: HeadConfig = { + custom: ({ dev, post, page }) => + dev + ? [] + : [ + // IndieAuth + '', + '' + ], + me: ['https://github.com/matthieu42morin'] +} export const header: HeaderConfig = { nav: [ diff --git a/src/lib/config/icon.ts b/src/lib/config/icon.ts index 54909d6..845beec 100644 --- a/src/lib/config/icon.ts +++ b/src/lib/config/icon.ts @@ -26,6 +26,11 @@ export const any: { [key: number]: Icon } = { } export const maskable: { [key: number]: Icon } = { + 180: { + src: site.protocol + site.domain + '/assets/maskable@180.png', + sizes: '180x180', + type: 'image/png' + }, 192: { src: site.protocol + site.domain + '/assets/maskable@192.png', sizes: '192x192', diff --git a/src/lib/config/index.ts b/src/lib/config/index.ts new file mode 100644 index 0000000..117b525 --- /dev/null +++ b/src/lib/config/index.ts @@ -0,0 +1,51 @@ +import { dev } from '$app/environment' + +/* Website config */ +const siteTitle = '' +const siteShortTitle = '' +const description = + 'I code, I think, I write. My thoughts go into the world of Free & Open Source Software, AI and philosophy of mind, Climate Change, Cybersecurity.' +const siteUrl = dev ? 'http://localhost:5174' : 'https://mattmor.in' +const author = 'Matt Morin' +const backgroundColor = '#111827' +const themeColor = '#3b82f6' +const logo = '/Logo.png' +const keywords = 'Dev, FOSS, Nix, Philosopher, DevOps, Climate' +const ogLanguage = 'en_US' +const siteLanguage = 'en-US' +const defaultOgImage = '' +const defaultOgSquareImage = '' +const defaultTwitterImage = '' + +// prettier-ignore +const website = { siteTitle, siteShortTitle, description, siteUrl, author, backgroundColor, themeColor, logo, keywords, ogLanguage, siteLanguage, defaultOgImage, defaultOgSquareImage, defaultTwitterImage }; + +/* Social Nicknames */ +const GHNick = 'matthieu42morin' +const LINick = 'mattmor-in' +const MatrixServer = '' +const MatrixNick = '' +const MastodonServer = 'mastodon.social' +const MastodonNick = '@matt_mor' + +const socialNicks = { GHNick, LINick, MatrixNick, MastodonNick } + +/* Social links */ +const Email = 'matt.b.morin@protonmail.com' +const Github = `https://github.com/${GHNick}` +const LinkedIn = `https://linkedin.com/in/${LINick}` +const Matrix = `https://${MatrixServer}/${MatrixNick}` +const Gitea = 'https://git.mattmor.in' +const Mastodon = `https://${MastodonServer}/${MastodonNick}` +const RSS = '/blog/feed' + +const socialLinks = { Email, Github, LinkedIn, Matrix, Gitea, Mastodon, RSS } + +// Routes +const NavRoutes = [ + { title: 'Home', href: '/' }, + { title: 'Blog', href: '/blog' }, + { title: 'Projects', href: '/projects' } +] + +export { website, socialNicks, socialLinks, NavRoutes } diff --git a/src/lib/config/post.ts b/src/lib/config/post.ts index acfa406..2a9fedb 100644 --- a/src/lib/config/post.ts +++ b/src/lib/config/post.ts @@ -1,3 +1,15 @@ import type { PostConfig } from '$lib/types/post' -export const post: PostConfig = {} +export const post: PostConfig = { + comment: { + use: ['Webmention'], + style: 'boxed', // comment system bar styles: none / bordered / lifted / boxed + webmention: { + username: '[mattmor.in]', + sortBy: 'created', // sort by: created / updated + sortDir: 'down', // sort order: up / down + form: true, // enable comments: true / false + commentParade: true // enable anonymous comments: true / false + } + } +} diff --git a/src/lib/config/projects.ts b/src/lib/config/projects.ts new file mode 100644 index 0000000..5ac22df --- /dev/null +++ b/src/lib/config/projects.ts @@ -0,0 +1,22 @@ +export type Project = { + id: string + name: string + tags?: string[] + feature?: string + description?: string + img: string + link?: string +} + +export const projects: Project[] = [ + { + id: 'seedling', // HTML ID + name: 'Seedling', // project Name + tags: ['Svelte', 'TypeScript'], // tag + // description + description: '🌸 Sweet, Powerful, IndieWeb-Compatible SvelteKit Blog Starter. [δ](Delta)', + feature: 'Svelte', // feature + img: 'https://github.com/importantimport/urara/raw/main/urara/hello-world/urara.webp', + link: 'https://github.com/importantimport/urara' + } +] diff --git a/src/lib/config/site.ts b/src/lib/config/site.ts index db0492c..f615eb1 100644 --- a/src/lib/config/site.ts +++ b/src/lib/config/site.ts @@ -1,16 +1,17 @@ import type { SiteConfig } from '$lib/types/site' export const site: SiteConfig = { - protocol: import.meta.env.URARA_SITE_PROTOCOL ?? import.meta.env.DEV ? 'http://' : 'https://', - domain: import.meta.env.URARA_SITE_DOMAIN ?? 'urara-demo.netlify.app', - title: 'Urara', - subtitle: 'Sweet & Powerful SvelteKit Blog Template', + protocol: import.meta.env.PUBLIC_SITE_PROTOCOL ?? import.meta.env.DEV ? 'http://' : 'https://', + domain: import.meta.env.PUBLIC_SITE_DOMAIN ?? 'urara-demo.netlify.app', + title: "Matt's Portfolio", + subtitle: 'The portfolio and blog of Matt Morin - ideas, projects and thoughts', lang: 'en-US', - description: 'Powered by SvelteKit/Urara', + description: + 'I code, I think, I write. My thoughts go into the world of Free & Open Source Software, AI and philosophy of mind, Climate Change, Cybersecurity.', author: { avatar: '/assets/maskable@512.png', - name: 'John Doe', - status: '🌸', + name: 'Matt Morin', + status: '👨‍💻', bio: 'lorem ipsum dolor sit amet, consectetur adipiscing elit.' }, themeColor: '#3D4451'