This commit is contained in:
parent
408434ece8
commit
265f03c21f
11 changed files with 139 additions and 44 deletions
|
@ -10,6 +10,11 @@
|
|||
'has too much servers',
|
||||
'is in love with Proxmox VE',
|
||||
'has an irrational hatred for smart toasters',
|
||||
'has a zero-Windows policy',
|
||||
'has a zero-macOS policy',
|
||||
'loves NixOS',
|
||||
'uses Arch Linux, by the way',
|
||||
'installed Gentoo twice',
|
||||
]
|
||||
const fact = facts[Math.floor(Math.random() * facts.length)] ?? ''
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ import { recivi } from '@/stores/recivi'
|
|||
let combinedPronouns: string = ''
|
||||
|
||||
// @ts-ignore
|
||||
if (typeof recivi.bio['pronouns'] !== 'undefined') {
|
||||
// @ts-ignore
|
||||
const pronounSet = recivi.bio['pronouns'] as PronounSet[]
|
||||
const pronounSet = recivi.bio['pronouns'] as PronounSet[] | undefined
|
||||
|
||||
// @ts-ignore
|
||||
if (pronounSet !== undefined) {
|
||||
// TODO: Implement multiple set support
|
||||
if (pronounSet.length === 0) {
|
||||
combinedPronouns = 'any/all'
|
||||
|
@ -22,13 +22,16 @@ if (typeof recivi.bio['pronouns'] !== 'undefined') {
|
|||
return
|
||||
}
|
||||
|
||||
if (pronouns.pronouns.length === 0) {
|
||||
combinedPronouns = 'any/all'
|
||||
return
|
||||
}
|
||||
|
||||
// Use a common English-speaking convention of only showing the first pronoun if we have
|
||||
// multiple pronouns specified
|
||||
|
||||
if (pronouns.language == 'English') {
|
||||
if (pronouns.pronouns.length === 0) {
|
||||
return
|
||||
} else if (pronouns.pronouns.length === 1) {
|
||||
if (pronouns.pronouns.length === 1) {
|
||||
const firstPronoun = pronouns.pronouns[0]
|
||||
|
||||
if (!firstPronoun) {
|
||||
|
@ -49,8 +52,14 @@ if (typeof recivi.bio['pronouns'] !== 'undefined') {
|
|||
}
|
||||
} else {
|
||||
for (const pronounInstance of pronouns.pronouns) {
|
||||
combinedPronouns += pronounInstance.firstSet + '/'
|
||||
combinedPronouns +=
|
||||
pronounInstance.firstSet + '/' + pronounInstance.secondSet + ', '
|
||||
}
|
||||
|
||||
combinedPronouns = combinedPronouns.substring(
|
||||
0,
|
||||
combinedPronouns.length - 2
|
||||
)
|
||||
}
|
||||
}
|
||||
---
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
layout: '@/layouts/content.astro'
|
||||
|
||||
title: Home
|
||||
description: Hi! I'm Tera, a hobbyist software developer, with an affinity for Linux
|
||||
description: Hi! I'm Tera. I'm a hobbyist software developer with a love for backend systems.
|
||||
index: 0
|
||||
---
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
slug: resume
|
||||
|
||||
title: Résumé
|
||||
description: Peruse my résumé, encompassing my time developing software both as a hobbyist and full-time for many years.
|
||||
description: Peruse my résumé, encompassing my time developing software.
|
||||
index: 2
|
||||
---
|
||||
|
||||
|
@ -26,5 +26,5 @@ software. Most of it is open-source. You can find my code on various Git hosting
|
|||
sites, which are all listed on my <Link url='/'>contact page</Link>.
|
||||
|
||||
If you like what you see here and want to work with me, you can grab the
|
||||
<Link url={import.meta.env.DEV ? '/resume/pdf' : '/resume.pdf'}>PDF version</Link>
|
||||
<Link url='/resume/pdf'>PDF version</Link>
|
||||
of this résumé. Print responsibly.
|
||||
|
|
|
@ -7,15 +7,6 @@ export const GET: APIRoute = async function () {
|
|||
JSON.stringify({
|
||||
name: siteStore.title,
|
||||
start_url: '/',
|
||||
icons: [
|
||||
{ src: '/icon-512.png', type: 'image/png', sizes: '512x512' },
|
||||
{
|
||||
src: '/icon-512-maskable.png',
|
||||
type: 'image/png',
|
||||
sizes: '512x512',
|
||||
purpose: 'maskable',
|
||||
},
|
||||
],
|
||||
})
|
||||
)
|
||||
}
|
||||
|
|
|
@ -52,20 +52,6 @@ export function urlToDest(url: Url): string {
|
|||
return typeof url === 'object' && 'dest' in url ? url.dest : url
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a given country code into the country's flag emoji. This is easier
|
||||
* than mapping it to a country name, considering there can be multiple
|
||||
* representations of the name.
|
||||
*
|
||||
* @param countryCode - the ISO 3166-1 Alpha-2 code for the country
|
||||
* @returns the flag emoji
|
||||
*/
|
||||
function countryCodeDisplay(countryCode: string): string {
|
||||
return countryCode
|
||||
.toUpperCase()
|
||||
.replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397))
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the address into a string.
|
||||
*
|
||||
|
@ -73,12 +59,13 @@ function countryCodeDisplay(countryCode: string): string {
|
|||
* @returns the string representation of the address
|
||||
*/
|
||||
export function addressDisplay(address: Address) {
|
||||
let text = countryCodeDisplay(address.countryCode)
|
||||
let text = ''
|
||||
|
||||
if (address.state) {
|
||||
text = `${address.state}, ${text}`
|
||||
text = `${address.state}, ${address.countryCode}`
|
||||
}
|
||||
if (address.city) {
|
||||
text = `${address.city}, ${text}`
|
||||
text = `${address.city}, ${address.countryCode}`
|
||||
}
|
||||
return text
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue