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'
export const theme: ThemeConfig = [
{
name: 'dracula',
text: '🧛 Dark'
},
{
name: 'coffee',
text: '☕ Coffee'
},
{
name: 'cmyk',
text: '🖨 Light'
},
{
name: 'night',
text: '🌃 Night'
},
{
name: 'retro',
text: '🌇 Retro'
},
{
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'
{
name: 'dracula',
text: '🧛 Dark'
},
{
name: 'coffee',
text: '☕ Coffee'
},
{
name: 'cmyk',
text: '🖨 Light'
},
{
name: 'night',
text: '🌃 Night'
},
{
name: 'retro',
text: '🌇 Retro'
},
{
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 = {
custom: ({ dev, post, page }) =>
dev
? []
: [
// IndieAuth
'<link rel="authorization_endpoint" href="https://indieauth.com/auth">',
'<link rel="token_endpoint" href="https://tokens.indieauth.com/token">'
],
me: ['https://github.com/matthieu42morin']
custom: ({ dev, post, page }) =>
dev
? []
: [
// IndieAuth
'<link rel="authorization_endpoint" href="https://indieauth.com/auth">',
'<link rel="token_endpoint" href="https://tokens.indieauth.com/token">'
],
me: ['https://github.com/matthieu42morin']
}
export const header: HeaderConfig = {
nav: [
{
text: 'Get Started',
link: '/hello-world'
},
{
text: 'Elements',
link: '/hello-world/elements'
}
]
nav: [
{
text: 'Projects',
link: '/projects'
},
{
text: 'Skillset',
link: '/#skills'
},
{
text: 'Resume',
link: 'https://git.mattmor.in/Madmin/Academic-cv/src/branch/master/matt_morin_cv_academic.pdf'
}
]
}
export const footer: FooterConfig = {
nav: [
{
text: 'Feed',
link: '/atom.xml'
},
{
text: 'Sitemap',
link: '/sitemap.xml'
}
]
nav: [
{
text: 'Feed',
link: '/atom.xml'
},
{
text: 'Sitemap',
link: '/sitemap.xml'
}
]
}
export const date: DateConfig = {
locales: 'en-US',
options: {
year: '2-digit',
weekday: 'long',
month: 'short',
day: 'numeric'
}
locales: 'en-US',
options: {
year: 'numeric',
month: 'short',
day: 'numeric'
}
}
export const feed: FeedConfig = {}

View File

@ -1,20 +1,91 @@
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 = {
protocol: PUBLIC_SITE_PROTOCOL ?? import.meta.env.DEV ? 'http://' : 'https://',
domain: PUBLIC_SITE_DOMAIN ?? 'mattmor.in',
title: "Matt's Portfolio",
subtitle: 'The portfolio and blog of Matt Morin - ideas, projects and thoughts',
lang: 'en-US',
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: 'Matt Morin',
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!',
},
themeColor: '#111111'
protocol: URARA_SITE_PROTOCOL ?? import.meta.env.DEV ? 'http://' : 'https://',
domain: URARA_SITE_DOMAIN ?? 'mattmor.in',
title: "Matt's Portfolio",
subtitle: 'The portfolio and blog of Matt Morin - ideas, projects and thoughts',
lang: 'en-US',
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: 'Matt Morin',
status: '👨‍💻',
bit: bio[~~(Math.random() * bio.length)],
metadata: [
{
// 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: 'ajv', level: 'A' },
{ title: 'Playwright', level: 'B'},
{ title: 'SEO, performance optimizations', level: 'B'},
{ title: 'node', level: 'B'},
]},
]},
{ 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