Skip to content

Instantly share code, notes, and snippets.

View anartzdev's full-sized avatar
🏠
Working from home

anartzdev

🏠
Working from home
View GitHub Profile
@anartzdev
anartzdev / global.css
Created April 2, 2024 04:53
Estilos para usarlos en el juego
body{
background-color:#110F26;
color: white;
}
.choice img {
width: 100px !important;
height: 100%;
}
export const Title = () => {
const name = 'Anartz';
return <h1>{name}</h1>;
};
export const Age = () => {
const age = 37;
return (
<p>
{age > 40
@anartzdev
anartzdev / 1-estimated-paces.ts
Last active January 5, 2024 05:15
Jack Daniels VDOT
export const ESTIMATED_PACES = {
"30": {
"1500": "8:30",
"mile": "9:11",
"3km": "17:56",
"2miles": "19:19",
"5km": "30:40",
"10Km": "1:03:46",
"15km": "1:38:14",
"mm": "2:21:04",
@anartzdev
anartzdev / macros.ts
Created November 15, 2023 12:38
Macro-nutrientes
// Import stylesheets
import './style.css';
// Write TypeScript code!
const appDiv: HTMLElement = document.getElementById('app');
appDiv.innerHTML = `<h1>TypeScript Starter</h1>`;
appDiv.innerHTML = `<p>Prueba</p>`
@anartzdev
anartzdev / 1-index.css
Created October 19, 2023 12:20
Componente Data Fetching Rest
#alert-year-input {
background: #f5f5b0;
border: 2.5px solid #b0b083;
padding: 1rem;
margin: 10px;
border-radius: 1rem;
color: #68683e;
}
#alert-year-input:hover {
@anartzdev
anartzdev / 1-hello-basic.tsx
Last active October 16, 2023 09:10
Testing componentes to use in Testing
import { component$ } from '@builder.io/qwik';
export const Hello = component$(() => {
return <div>Hello World with Qwik!</div>
});
@anartzdev
anartzdev / src_routes_about_index.tsx
Created October 3, 2023 11:37
Qwik Book - Layouts - Nested layouts Base files
import { component$ } from '@builder.io/qwik';
export default component$(() => {
return <div>
<h1>Ruta "/about"</h1>
Esta es la página 'about'
</div>;
});
@anartzdev
anartzdev / package.json
Last active October 2, 2023 06:36
Integrations - Leaflet Map (starter/features/leaflet-map)
{
"description": "Use Leaflet Maps in your Qwik app",
"__qwik__": {
"displayName": "Integration: Leaflet Maps",
"priority": -10,
"viteConfig": {},
"docs": [
"https://leafletjs.com/reference.html",
"https://leafletjs.com/examples/quick-start/",
"https://www.sitepoint.com/leaflet-create-map-beginner-guide/"
@anartzdev
anartzdev / index.html
Created September 21, 2023 04:27
Ejercicio Qwik Book - Capítulo 14 - Ejercicio - useOnDocument
<div>
<p>
Mi posición actual [x, y]: [{POSICIÓN X ALMACENADA EN EL STORE}, {POSICIÓN Y ALMACENADA EN EL STORE}]
</p>
<p>Límite de la mitad horizontal (eje x): {POSICIÓN X QUE INDICA LA MITAD ALMACENADA EN EL STORE}</p>
<div id='root-use-on-document'>
<div id='middle-limit'></div>
</div>
</div>
@anartzdev
anartzdev / chapters.ts
Last active September 5, 2023 12:41
Capítulos (ES) - Libro Qwik desde 0
export const chaptersData = [
{
"question": "1.- Primeros pasos",
"answer": "Introducción a Qwik y explicación de las características de Qwik y primer ejemplo básico",
"open": true
},
{
"question": "2.- Enrutamiento / Routing",
"answer": "Claves para entender el enrutamiento en las aplicaciones de Qwik",
"open": false