Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cv download #619

Merged
merged 10 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.14.0
- name: install pnpm
run: npm i -g pnpm
- name: use pnpm
run: corepack enable pnpm
- name: install dependencies
run: pnpm i
- name: validate code style
Expand Down
9 changes: 9 additions & 0 deletions components/profile/person.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
:social="social"
/>
</div>
<div v-if="person.files">
<template v-for="{filename, title} in person.files" :key="filename">
<a :href="`/files/${filename}`">
<CustomTag type="gray" icon="heroicons-document-text-20-solid">
{{ useLocalizedString(title) }}
</CustomTag>
</a>
</template>
</div>
</div>
</template>

Expand Down
Binary file added public/files/sebastian-di-luzio.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions server/profile.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export type Image = string;
// Require en, allow any other language
export type LocalizedString = { en: string } & Partial<Record<Locales, string>>;

export type Files = Array<{
title: LocalizedString,
filename: string,
icon: string,
}>

type Person = {
name: {
first: string;
Expand All @@ -45,6 +51,7 @@ type Person = {
pronouns?: Array<LocalizedString>;
languages?: Array<string>;
};
files?: Files
};

export enum ProjectType {
Expand Down
7 changes: 5 additions & 2 deletions server/profiles/sebastian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export const sebastian: Profile = {
pronouns: [{ en: 'he', de: 'er' }, { en: 'they' }],
languages: ['en', 'de'],
},
files: [
{ title: { en: 'Resume', de: 'Lebenslauf' }, filename: 'sebastian-di-luzio.pdf', icon: 'heroicons-document-text-20-solid' },
],
},
highlights: {
title: { en: 'Favored Tech Stack', de: 'Lieblings Tech Stack' },
Expand Down Expand Up @@ -65,7 +68,7 @@ export const sebastian: Profile = {
{ en: 'GitLab' },
],
description: {
en: 'Building and maintaining the foundation of the platform for students. Providing core services and utilities as well as a platform for feature teams to build upon, enabling multiple cross department initiatives to bring a new user experience to over 150K students.',
en: 'Building and maintaining the foundation of the platform for students. Providing core services and utilities as well as a platform for domain teams to build upon, enabling multiple cross department initiatives to bring a new user experience to over 150K students.',
},
highlights: [
{ en: 'Enriching the developer experience' },
Expand Down Expand Up @@ -168,7 +171,7 @@ export const sebastian: Profile = {
{ en: 'GitHub' },
],
description: {
en: 'Magibot is a Discord bot that helps voice-chat focused servers build communities. It is currently serving 1.000.000+ users in over 2500 guilds.',
en: 'Magibot is a Discord bot that helps voice-chat focused servers build communities. It is currently serving 1.000.000+ users in over 2500 servers.',
de: 'Magibot ist ein Discord Bot, der sprachchat-fokussierten Servern hilft, Communities aufzubauen. Er bedient derzeit 1.000.000+ Benutzer in über 2500 Gilden.',
},
showInProfile: true,
Expand Down
Loading