feat: implement barebone zola templates

This commit is contained in:
Alexander Navarro 2024-11-10 21:45:59 +00:00
parent 9c20f5ed2e
commit f99a9ae2ac
198 changed files with 2434 additions and 227991 deletions

44
public/config.ts Normal file
View file

@ -0,0 +1,44 @@
import { defineCollection, z } from 'astro:content';
// AstroJS collection configuration
const blog = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
draft: z.boolean().optional(),
tags: z.array(z.string()).optional(),
published_at: z.coerce.date().optional(),
updated_at: z.coerce.date().optional(),
}),
});
const portafolio = defineCollection({
type: 'content',
schema: ({ image }) =>
z.object({
title: z.string(),
draft: z.boolean().optional(),
brief: z.string(),
status: z.enum(['Backlog', 'Activo', 'Fixes', 'Finalizado']),
tags: z.array(z.string()).optional(),
technologies: z.array(z.string()),
created_at: z.coerce.date().optional(),
updated_at: z.coerce.date().optional(),
thumbnail: image().refine((img) => img.width >= 1080, {
message: 'Cover image must be at least 1080 pixels wide!',
}),
timeframe: z.string().optional(),
links: z
.object({
repo: z.string().url(),
url: z.string().url(),
})
.optional(),
}),
});
export const collections = {
blog,
portafolio,
};

10
public/elasticlunr.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
public/foundation.min.css vendored Normal file
View file

@ -0,0 +1 @@
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#eee;color:#000}.hljs-addition,.hljs-attribute,.hljs-emphasis,.hljs-link{color:#070}.hljs-emphasis{font-style:italic}.hljs-deletion,.hljs-string,.hljs-strong{color:#d14}.hljs-strong{font-weight:700}.hljs-comment,.hljs-quote{color:#998;font-style:italic}.hljs-section,.hljs-title{color:#900}.hljs-class .hljs-title,.hljs-title.class_,.hljs-type{color:#458}.hljs-template-variable,.hljs-variable{color:#369}.hljs-bullet{color:#970}.hljs-meta{color:#34b}.hljs-code,.hljs-keyword,.hljs-literal,.hljs-number,.hljs-selector-tag{color:#099}.hljs-regexp{background-color:#fff0ff;color:#808}.hljs-symbol{color:#990073}.hljs-name,.hljs-selector-class,.hljs-selector-id,.hljs-tag{color:#070}

684
public/highlight.min.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
public/images/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB

BIN
public/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB

BIN
public/images/ss01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

157
public/main.css Normal file
View file

@ -0,0 +1,157 @@
.text-slate-200 {
--tw-text-opacity: 1;
color: rgb(226 232 240 / var(--tw-text-opacity));
}
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.no-underline {
-webkit-text-decoration-line: none;
text-decoration-line: none;
}
.text-sky-200 {
--tw-text-opacity: 1;
color: rgb(186 230 253 / var(--tw-text-opacity));
}
.text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}
.text-slate-50 {
--tw-text-opacity: 1;
color: rgb(248 250 252 / var(--tw-text-opacity));
}
.flex {
display: flex;
}
.items-center {
align-items: center;
}
.w-5 {
width: 1.25rem;
}
.h-5 {
height: 1.25rem;
}
.leading-relaxed {
line-height: 1.625;
}
.text-base {
font-size: 1rem;
line-height: 1.5rem;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.mt-2 {
margin-top: 0.5rem;
}
.w-11\/12 {
width: 91.666667%;
}
@media (min-width: 640px) {
.sm\:w-2\/3 {
width: 66.666667%;
}
}
@media (min-width: 640px) {
.sm\:max-w-lg {
max-width: 32rem;
}
}
.font-sans {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
}
.bg-slate-900 {
--tw-bg-opacity: 1;
background-color: rgb(15 23 42 / var(--tw-bg-opacity));
}
.items-start {
align-items: flex-start;
}
.border-slate-50 {
--tw-border-opacity: 1;
border-color: rgb(248 250 252 / var(--tw-border-opacity));
}
.rounded-full {
border-radius: 9999px;
}
.ml-auto {
margin-left: auto;
}
.justify-end {
justify-content: flex-end;
}
.items-baseline {
align-items: baseline;
}
.border-amber-200 {
--tw-border-opacity: 1;
border-color: rgb(253 230 138 / var(--tw-border-opacity));
}
.my-4 {
margin-top: 1rem;
margin-bottom: 1rem;
}
.flex-col {
flex-direction: column;
}
.underline {
-webkit-text-decoration-line: underline;
text-decoration-line: underline;
}
.text-indigo-200 {
--tw-text-opacity: 1;
color: rgb(199 210 254 / var(--tw-text-opacity));
}
.text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
}
.mb-2 {
margin-bottom: 0.5rem;
}
.text-right {
text-align: right;
}
.mb-4 {
margin-bottom: 1rem;
}

View file

@ -0,0 +1 @@
window.searchIndex = {"fields":["title","body"],"pipeline":["trimmer","stopWordFilter","stemmer"],"ref":"id","version":"0.9.5","index":{"body":{"root":{"docs":{},"df":0,"a":{"docs":{},"df":0,"w":{"docs":{},"df":0,"e":{"docs":{},"df":0,"s":{"docs":{},"df":0,"o":{"docs":{},"df":0,"m":{"docs":{"http://127.0.0.1:3000/":{"tf":1.0}},"df":1}}}}}},"d":{"docs":{"http://127.0.0.1:3000/":{"tf":1.0},"http://127.0.0.1:3000/garden/test/":{"tf":1.0}},"df":2},"f":{"docs":{},"df":0,"o":{"docs":{},"df":0,"o":{"docs":{"http://127.0.0.1:3000/garden/":{"tf":1.0}},"df":1}}},"g":{"docs":{},"df":0,"a":{"docs":{},"df":0,"r":{"docs":{},"df":0,"d":{"docs":{},"df":0,"e":{"docs":{},"df":0,"n":{"docs":{"http://127.0.0.1:3000/garden/":{"tf":1.0}},"df":1}}}}}},"p":{"docs":{},"df":0,"a":{"docs":{},"df":0,"g":{"docs":{},"df":0,"e":{"docs":{"http://127.0.0.1:3000/":{"tf":1.0}},"df":1}}},"o":{"docs":{},"df":0,"r":{"docs":{},"df":0,"t":{"docs":{},"df":0,"a":{"docs":{},"df":0,"f":{"docs":{},"df":0,"o":{"docs":{},"df":0,"l":{"docs":{},"df":0,"i":{"docs":{},"df":0,"o":{"docs":{"http://127.0.0.1:3000/portafolio/":{"tf":1.4142135623730951}},"df":1}}}}}}}}}},"t":{"docs":{},"df":0,"e":{"docs":{},"df":0,"s":{"docs":{},"df":0,"t":{"docs":{"http://127.0.0.1:3000/garden/test/":{"tf":1.4142135623730951}},"df":1}}}}}},"title":{"root":{"docs":{},"df":0,"g":{"docs":{},"df":0,"a":{"docs":{},"df":0,"r":{"docs":{},"df":0,"d":{"docs":{},"df":0,"e":{"docs":{},"df":0,"n":{"docs":{"http://127.0.0.1:3000/garden/":{"tf":1.0}},"df":1}}}}}},"p":{"docs":{},"df":0,"o":{"docs":{},"df":0,"r":{"docs":{},"df":0,"t":{"docs":{},"df":0,"a":{"docs":{},"df":0,"f":{"docs":{},"df":0,"o":{"docs":{},"df":0,"l":{"docs":{},"df":0,"i":{"docs":{},"df":0,"o":{"docs":{"http://127.0.0.1:3000/portafolio/":{"tf":1.0}},"df":1}}}}}}}}}},"t":{"docs":{},"df":0,"e":{"docs":{},"df":0,"s":{"docs":{},"df":0,"t":{"docs":{"http://127.0.0.1:3000/garden/test/":{"tf":1.0}},"df":1}}}}}}},"documentStore":{"save":true,"docs":{"http://127.0.0.1:3000/":{"body":"This is a awesome page :D\n","id":"http://127.0.0.1:3000/","title":""},"http://127.0.0.1:3000/garden/":{"body":"foo\n","id":"http://127.0.0.1:3000/garden/","title":"Garden"},"http://127.0.0.1:3000/garden/test/":{"body":"This is a test :D\n","id":"http://127.0.0.1:3000/garden/test/","title":"test"},"http://127.0.0.1:3000/portafolio/":{"body":"This is the Portafolio\n","id":"http://127.0.0.1:3000/portafolio/","title":"Portafolio"},"http://127.0.0.1:3000/post/":{"body":"","id":"http://127.0.0.1:3000/post/","title":""}},"docInfo":{"http://127.0.0.1:3000/":{"body":3,"title":0},"http://127.0.0.1:3000/garden/":{"body":1,"title":1},"http://127.0.0.1:3000/garden/test/":{"body":2,"title":1},"http://127.0.0.1:3000/portafolio/":{"body":1,"title":1},"http://127.0.0.1:3000/post/":{"body":0,"title":0}},"length":5},"lang":"English"}

1
public/typography.css Normal file
View file

@ -0,0 +1 @@
a{color:#bae6fd;text-decoration-line:none}h1,h2{border-bottom:1px solid #e2e8f0}img,video{display:block;margin:0 auto;max-width:90%}pre{border:1px solid;overflow-x:auto;overflow-y:hidden;margin:.25rem;border-radius:.375rem}code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}:not(pre)>code{font-size:.875rem;padding:.0625rem .125rem;color:#0f172a;background-color:#e2e8f0;border-radius:.375rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}blockquote{border-left:.125rem solid;padding-left:.25rem;margin-left:1rem;font-style:italic}table{border-collapse:collapse;margin:0 auto;max-width:90%}table th{padding:10px}table th,td{border:1px #666;border-style:solid none}table td{padding:10px}ul,ol{list-style-position:inside;padding-left:.5rem}