Instalaciones
npm i sanitize-html markdown-it
npm i -D @types/markdown-it @types/sanitize-html
bun i sanitize-html markdown-it
bun i -d @types/markdown-it @types/sanitize-html
<!-- Meta tags --> | |
<meta name="title" content={title} /> | |
<meta name="description" content={description} /> | |
<!-- Open Graph / Facebook --> | |
<meta property="og:title" content={title} /> | |
<meta property="og:url" content={Astro.url} /> | |
<meta property="og:description" content={description} /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:image" content={image} /> |
--- | |
import MainLayout from '@/layouts/MainLayout.astro'; | |
--- | |
<MainLayout title="Mantenimiento de producto"> | |
<h1>{product.title}</h1> | |
<a href="javascript:history.back()" class="text-blue-500">← Volver</a> | |
<form class="grid grid-cols-1 sm:grid-cols-2 gap-4"> |
html { | |
@apply bg-gray-900 px-10; | |
} | |
body { | |
@apply mt-10; | |
} | |
h1 { | |
@apply text-3xl text-white my-5; |
/* | |
The CSS in this style tag is based off of Bear Blog's default CSS. | |
https://github.com/HermanMartinus/bearblog/blob/297026a877bc2ab2b3bdfbd6b9f7961c350917dd/templates/styles/blog/default.css | |
License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md | |
*/ | |
:root { | |
--accent: #2337ff; | |
--accent-dark: #000d8a; | |
--black: 15, 18, 25; |
import axios from 'axios'; | |
import colorLib from '@kurkle/color'; | |
interface ChartOptions { | |
height?: number; | |
width?: number; | |
} | |
export const chartJsToImage = async ( | |
chartConfig: unknown, |
services: | |
db: | |
container_name: postgres_database | |
image: postgres:16.3 | |
volumes: | |
- ./postgres:/var/lib/postgresql/data | |
environment: | |
- POSTGRES_PASSWORD=123456 | |
restart: always | |
ports: |