diff --git a/src/app.postcss b/src/app.postcss index b5c61c9..b2d6f6d 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -1,3 +1,10 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer base { + @font-face { + font-family: "Fira Code"; + src: local("fira-code"), url("/fonts/fira-code/FiraCode-VariableFont_wght.ttf"); + } +} diff --git a/src/lib/components/CommonCard.svelte b/src/lib/components/CommonCard.svelte new file mode 100644 index 0000000..4c7e6c0 --- /dev/null +++ b/src/lib/components/CommonCard.svelte @@ -0,0 +1,34 @@ + + + +
+
+ {term} +

{name}

+
+ +

{description}

+
+
+ + +
+ +
+
diff --git a/src/lib/components/Tag.svelte b/src/lib/components/Tag.svelte new file mode 100644 index 0000000..92e595c --- /dev/null +++ b/src/lib/components/Tag.svelte @@ -0,0 +1,13 @@ + + + + {category} + diff --git a/src/lib/data/projects.json b/src/lib/data/projects.json new file mode 100644 index 0000000..14d0122 --- /dev/null +++ b/src/lib/data/projects.json @@ -0,0 +1,25 @@ +{ + "projects": [ + { + "term": "2024-1s", + "name": "Polipromedios", + "category": "web", + "description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.", + "authors": ["Person 1", "Person 2"] + }, + { + "term": "2024-1s", + "name": "Polipromedios", + "category": "web", + "description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.", + "authors": ["Person 1", "Person 2"] + }, + { + "term": "2024-1s", + "name": "Polipromedios", + "category": "web", + "description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.", + "authors": ["Person 1", "Person 2"] + } + ] +} diff --git a/src/routes/projects/+page.svelte b/src/routes/projects/+page.svelte new file mode 100644 index 0000000..8e69570 --- /dev/null +++ b/src/routes/projects/+page.svelte @@ -0,0 +1,17 @@ + + +

{data.description}

+
+ {#each data.projects as project} + + {/each} +
diff --git a/src/routes/projects/+page.ts b/src/routes/projects/+page.ts new file mode 100644 index 0000000..5320232 --- /dev/null +++ b/src/routes/projects/+page.ts @@ -0,0 +1,12 @@ +import type { PageLoad } from "./$types"; +import { projects } from "$lib/data/projects.json"; + +export const load = (async () => { + return { + title: "Proyectos", + // TODO: change this to a real description + description: "Aquí ponemos los proyectos que nos enorgullecen... y lo que hay ¯\\_(ツ)_/¯", + // TODO: fetch from API + projects, + }; +}) satisfies PageLoad; diff --git a/static/fonts/fira-code/FiraCode-VariableFont_wght.ttf b/static/fonts/fira-code/FiraCode-VariableFont_wght.ttf new file mode 100644 index 0000000..5655ed5 Binary files /dev/null and b/static/fonts/fira-code/FiraCode-VariableFont_wght.ttf differ diff --git a/tailwind.config.ts b/tailwind.config.ts index d3a2500..75447ab 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -6,7 +6,11 @@ export default { darkMode: ["class"], content: ["./src/**/*.{html,js,svelte,ts}"], theme: { - extend: {}, + extend: { + fontFamily: { + fira: ["Fira Code", "mono-space"], + }, + }, }, plugins: [forms({ strategy: "class" }), typography], } satisfies Config;