Skip to content

Instantly share code, notes, and snippets.

View hernanharco's full-sized avatar

Hernán Arango Cortes - harco hernanharco

View GitHub Profile
@codigoconjuan
codigoconjuan / app.css
Last active September 14, 2023 22:56
NextJS Product Hunt
.listado-productos {
background-color: #f3f3f3;
}
.contenedor {
max-width: 1200px;
width: 95%;
padding: 5rem 0;
margin: 0 auto;
}
.bg-white {
@codigoconjuan
codigoconjuan / httpd.conf
Created March 2, 2022 18:33
Gist para Configurar PHP 8
LoadModule php_module "C:/php/php8apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "c:/php"
@codigoconjuan
codigoconjuan / index.css
Last active January 12, 2024 14:49
Gist para API de Clima con Context
body {
font-family: 'Hubballi', cursive;
background-color: #f1f5f9;
font-size: 1.6rem;
}
header {
background-color: #0ea5e9;
padding: 1.5rem;
border-bottom: 1rem solid #0284c7;
}
@codigoconjuan
codigoconjuan / Formulario.jsx
Created March 5, 2022 19:01
Categorias de Noticias
const CATEGORIAS = [
{ value: 'general', label: 'General'},
{ value: 'business', label: 'Negocios'},
{ value: 'entertainment', label: 'Entretenimiento'},
{ value: 'health', label: 'Salud'},
{ value: 'science', label: 'Ciencia'},
{ value: 'sports', label: 'Deportes'},
{ value: 'technology', label: 'Tecnología'},
]
@codigoconjuan
codigoconjuan / categorias.ts
Created March 10, 2022 19:01
Seeding a una base de datos con Prisma
const categorias = [
{
icono: "cafe",
nombre: "Café"
},
{
icono: "hamburguesa",
nombre: "Hamburguesas"
},
@codigoconjuan
codigoconjuan / NuevoCliente.jsx
Created September 19, 2022 23:46
Validar emails
let regex = new RegExp("([!#-'*+/-9=?A-Z^-~-]+(\.[!#-'*+/-9=?A-Z^-~-]+)*|\"\(\[\]!#-[^-~ \t]|(\\[\t -~]))+\")@([!#-'*+/-9=?A-Z^-~-]+(\.[!#-'*+/-9=?A-Z^-~-]+)*|\[[\t -Z^-~]*])");
@codigoconjuan
codigoconjuan / Layout.astro
Last active March 1, 2024 19:39
CSS para Astro
@import url('https://necolas.github.io/normalize.css/8.0.1/normalize.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');
:root {
--primary: #e99401;
--black: #262626;
--white: #FFF;
--fuente-principal: 'Outfit', sans-serif;
}
html {
@codigoconjuan
codigoconjuan / Footer.astro
Created December 15, 2022 18:47
Footer Astro
@codigoconjuan
codigoconjuan / nosotros.astro
Created December 15, 2022 19:11
CSS Nosotros Astro
.contenido {
display: grid;
gap: 4rem;
}
@media (min-width: 768px) {
.contenido {
grid-template-columns: repeat(2, 1fr);
align-items: center;
}
}
@codigoconjuan
codigoconjuan / Guitarra.astro
Created December 15, 2022 19:33
CSS para Guitarra
.guitarra {
display: grid;
grid-template-columns: 2fr 3fr;
gap: 1rem;
align-items: center;
max-width: 70rem;
margin: 0 auto;
}
.contenido {