configs update - add themes, socials, data

This commit is contained in:
matthieu42morin 2024-04-29 05:03:50 +02:00
parent a57f126d6c
commit 7f6f93027f
4 changed files with 184 additions and 97 deletions

View File

@ -1,100 +1,104 @@
import type { ThemeConfig, HeadConfig, HeaderConfig, FooterConfig, DateConfig, FeedConfig } from '$lib/types/general' import type { ThemeConfig, HeadConfig, HeaderConfig, FooterConfig, DateConfig, FeedConfig } from '$lib/types/general'
export const theme: ThemeConfig = [ export const theme: ThemeConfig = [
{ {
name: 'dracula', name: 'dracula',
text: '🧛 Dark' text: '🧛 Dark'
}, },
{ {
name: 'coffee', name: 'coffee',
text: '☕ Coffee' text: '☕ Coffee'
}, },
{ {
name: 'cmyk', name: 'cmyk',
text: '🖨 Light' text: '🖨 Light'
}, },
{ {
name: 'night', name: 'night',
text: '🌃 Night' text: '🌃 Night'
}, },
{ {
name: 'retro', name: 'retro',
text: '🌇 Retro' text: '🌇 Retro'
}, },
{ {
name: 'Chocolate', name: 'Chocolate',
text: '🍪 My choc Theme', text: '🍪 My choc Theme',
colors: { colors: {
primary: '#e6ccb2', primary: '#e6ccb2',
'primary-content': '1f140d', 'primary-content': '1f140d',
secondary: '#b9ca88', secondary: '#b9ca88',
'secondary-content': '#1f140d', 'secondary-content': '#1f140d',
accent: '#7b8f4b', accent: '#7b8f4b',
'accent-content': '#1f140d', 'accent-content': '#1f140d',
neutral: '#36241c', neutral: '#36241c',
'neutral-content': '#f0e5e1', 'neutral-content': '#f0e5e1',
'base-100': '#422c22', 'base-100': '#422c22',
'base-200': '#4d3328', 'base-200': '#4d3328',
'base-300': '#644234', 'base-300': '#644234',
'base-content': '#f0e5e1', 'base-content': '#f0e5e1',
info: '#00d3ff', info: '#00d3ff',
'info-content': '#001016', 'info-content': '#001016',
success: '#4a834c', success: '#4a834c',
'success-content': '#000e06', 'success-content': '#000e06',
warning: '#d53b00', warning: '#d53b00',
'warning-content': '#fcdbd1', 'warning-content': '#fcdbd1',
error: '#991218', error: '#991218',
'error-content': '#ffd8d4' 'error-content': '#ffd8d4'
}
} }
}
] ]
export const head: HeadConfig = { export const head: HeadConfig = {
custom: ({ dev, post, page }) => custom: ({ dev, post, page }) =>
dev dev
? [] ? []
: [ : [
// IndieAuth // IndieAuth
'<link rel="authorization_endpoint" href="https://indieauth.com/auth">', '<link rel="authorization_endpoint" href="https://indieauth.com/auth">',
'<link rel="token_endpoint" href="https://tokens.indieauth.com/token">' '<link rel="token_endpoint" href="https://tokens.indieauth.com/token">'
], ],
me: ['https://github.com/matthieu42morin'] me: ['https://github.com/matthieu42morin']
} }
export const header: HeaderConfig = { export const header: HeaderConfig = {
nav: [ nav: [
{ {
text: 'Get Started', text: 'Projects',
link: '/hello-world' link: '/projects'
}, },
{ {
text: 'Elements', text: 'Skillset',
link: '/hello-world/elements' link: '/#skills'
} },
]
{
text: 'Resume',
link: 'https://git.mattmor.in/Madmin/Academic-cv/src/branch/master/matt_morin_cv_academic.pdf'
}
]
} }
export const footer: FooterConfig = { export const footer: FooterConfig = {
nav: [ nav: [
{ {
text: 'Feed', text: 'Feed',
link: '/atom.xml' link: '/atom.xml'
}, },
{ {
text: 'Sitemap', text: 'Sitemap',
link: '/sitemap.xml' link: '/sitemap.xml'
} }
] ]
} }
export const date: DateConfig = { export const date: DateConfig = {
locales: 'en-US', locales: 'en-US',
options: { options: {
year: '2-digit', year: 'numeric',
weekday: 'long', month: 'short',
month: 'short', day: 'numeric'
day: 'numeric' }
}
} }
export const feed: FeedConfig = {} export const feed: FeedConfig = {}

View File

@ -1,20 +1,91 @@
import type { SiteConfig } from '$lib/types/site' import type { SiteConfig } from '$lib/types/site'
import {PUBLIC_SITE_PROTOCOL, PUBLIC_SITE_DOMAIN} from '$env/static/public'; import { URARA_SITE_PROTOCOL, URARA_SITE_DOMAIN } from '$env/static/public'
export const socialNicks = {
/* Social Nicknames */
Email: 'matt.b.morin@protonmail.com',
GHNick: 'matthieu42morin',
LINick: 'mattmor-in',
MatrixServer: 'matrix.to',
MatrixNick: '@matt:matrix.org',
MastodonServer: 'mastodon.social',
MastodonNick: '@matt_mor',
TelegramNick: '@mattmor-in'
}
export const social = {
/* Social links */
MailMe: `mailto:${socialNicks.Email}`,
Github: `https://github.com/${socialNicks.GHNick}`,
LinkedIn: `https://linkedin.com/in/${socialNicks.LINick}`,
Matrix: `https://${socialNicks.MatrixServer}/#/${socialNicks.MatrixNick}`,
Gitea: 'https://git.mattmor.in',
Mastodon: `https://${socialNicks.MastodonServer}/${socialNicks.MastodonNick}`,
RSS: `https://mattmor.in/blog/feed`,
Telegram: `//t.me/${socialNicks.TelegramNick}`
}
const bio = [
'じゃあ名前考えようか<br>「ゆめ」とかどう?可愛いでしょ?<br><sub>——「ゆめゆめ」</sub>',
'冬は良いけど夏は嫌<br><sub>——「夏に去りし君を想フ」</sub>',
'ゴミ溜めで埋もれたまま、星空を眺めてるよ<br><sub>——「ぼくらはみんな意味不明」</sub>',
'薄氷を履み回れ踊れ、醒!<br><sub>——「ムーンウォークフィーバー」</sub>',
'ちょっとは上手になれたかな?<br><sub>——「私の時間」</sub>',
'どこまで漸近しても<br>ゼロじゃない<br><sub>——「Unfragment」</sub>',
'だからバイバイ<br>"むかしむかしのきょうのぼく"<br><sub>——「むかしむかしのきょうのぼく」</sub>',
'いま歌うから<br>照らしてよね<br>スピカ<br><sub>——「SPiCa」</sub>',
'甘いのもいいと思うけれど苦いのも嫌いじゃない<br><sub>——「え?あぁ、そう。」</sub>',
'今日も西武線でぽつりと<br>イヤフォンに自分閉じ込めて<br><sub>——「八日目、雨が止む前に。」</sub>',
'もうどうかしたいと思うくせに<br>僕はどうもしないままで<br><sub>——「メリュー」</sub>',
'透明な君は<br>僕を指差してた―。<br><sub>——「少女レイ」</sub>',
'明日も僕は夢うつつ<br>このまま僕は消えていいのに<br><sub>——「自傷無色」</sub>',
'それはさあ... それはさあ、それがさあ!<br>逃げ切ったつもりなの?<br><sub>——「脳内革命ガール」</sub>',
"声が無くたって、届かなくたって、今もずっと叫んでいる。<br>聞こえますか?私は生きている。<br><sub>——「M'AIDER遭難ガール」</sub>"
]
export const site: SiteConfig = { export const site: SiteConfig = {
protocol: PUBLIC_SITE_PROTOCOL ?? import.meta.env.DEV ? 'http://' : 'https://', protocol: URARA_SITE_PROTOCOL ?? import.meta.env.DEV ? 'http://' : 'https://',
domain: PUBLIC_SITE_DOMAIN ?? 'mattmor.in', domain: URARA_SITE_DOMAIN ?? 'mattmor.in',
title: "Matt's Portfolio", title: "Matt's Portfolio",
subtitle: 'The portfolio and blog of Matt Morin - ideas, projects and thoughts', subtitle: 'The portfolio and blog of Matt Morin - ideas, projects and thoughts',
lang: 'en-US', lang: 'en-US',
description: 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.', '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: { author: {
avatar: '/assets/maskable@512.png', avatar: '/assets/maskable@512.png',
name: 'Matt Morin', name: 'Matt Morin',
status: '👨‍💻', status: '👨‍💻',
bio: 'I code, I am beginning to write this blog and I also sleep sometimes. If you like what I am doing, dm me somewhere!', bit: bio[~~(Math.random() * bio.length)],
}, metadata: [
themeColor: '#111111' {
// text: 'kwaa',
icon: 'i-simple-icons-gitea',
link: social.Gitea
},
{
// text: 'kwaa',
icon: 'i-simple-icons-linkedin',
link: social.LinkedIn
},
{
// text: '@mattmor-in',
icon: 'i-simple-icons-telegram',
link: social.Telegram
},
{
// text: '@kwaa:matrix.org',
icon: 'i-simple-icons-element',
link: social.Matrix
},
{
// text: '0x4444777733334444',
icon: 'i-simple-icons-gnuprivacyguard',
link: 'https://kwaa.dev/pgp/4734.pgp',
rel: 'pgpkey'
}
]
// bio: 'I code, I am beginning to write this blog and I also sleep sometimes. If you like what I am doing, dm me somewhere!'
},
themeColor: '#111111'
} }

View File

@ -42,7 +42,7 @@ const list: Category[] = [
{ title:'Testing & Validation', level: 50, skills: [ { title:'Testing & Validation', level: 50, skills: [
{ title: 'ajv', level: 'A' }, { title: 'ajv', level: 'A' },
{ title: 'Playwright', level: 'B'}, { title: 'Playwright', level: 'B'},
{ title: 'SEO, performance optimizations', level: 'B'}, { title: 'node', level: 'B'},
]}, ]},
]}, ]},
{ icon: '🔁🔁', title:'DevOps', level: 70, subCategories: [ { icon: '🔁🔁', title:'DevOps', level: 70, subCategories: [

View File

@ -0,0 +1,12 @@
import { social as socialLinks } from '$lib/config/site'
const socials = [
{ title: 'Email', href: socialLinks.Email, icon: 'fa-solid fa-envelope' },
{ title: 'LinkedIn', href: socialLinks.LinkedIn, icon: 'fa-brands fa-linkedin' },
{ title: 'Matrix', href: socialLinks.Matrix, icon: 'i-simple-icons-matrix' },
{ title: 'Gitea', href: socialLinks.Gitea, icon: 'i-simple-icons-gitea' },
{ title: 'Mastodon', href: socialLinks.Mastodon, icon: 'fa-brands fa-mastodon' },
{ title: 'RSS feed', href: socialLinks.RSS, icon: 'fa-solid fa-square-rss' }
]
export default socials