Al final es adaptar estilos (#4)
Co-authored-by: Borja Robert <borja@brobert.net> Reviewed-on: #4pull/5/head
parent
b3d0448379
commit
cb845deac0
@ -0,0 +1,45 @@
|
||||
/** @return {string} */
|
||||
export const getMonthName = (/** @type {string} */ month) => {
|
||||
let res
|
||||
switch (month) {
|
||||
case "01":
|
||||
res = "enero";
|
||||
break;
|
||||
case "02":
|
||||
res = "febrero";
|
||||
break;
|
||||
case "03":
|
||||
res = "marzo";
|
||||
break;
|
||||
case "04":
|
||||
res = "abril";
|
||||
break;
|
||||
case "05":
|
||||
res = "mayo";
|
||||
break;
|
||||
case "06":
|
||||
res = "junio";
|
||||
break;
|
||||
case "07":
|
||||
res = "julio";
|
||||
break;
|
||||
case "08":
|
||||
res = "agosto";
|
||||
break;
|
||||
case "09":
|
||||
res = "septiembre";
|
||||
break;
|
||||
case "10":
|
||||
res = "octubre";
|
||||
break;
|
||||
case "11":
|
||||
res = "noviembre";
|
||||
break;
|
||||
case "12":
|
||||
res = "diciembre";
|
||||
break;
|
||||
default:
|
||||
res = "";
|
||||
}
|
||||
return res;
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
import { dev } from '$app/environment';
|
||||
|
||||
// we don't need any JS on this page, though we'll load
|
||||
// it in dev so that we get hot module replacement...
|
||||
export const csr = dev;
|
||||
|
||||
// since there's no dynamic data here, we can prerender
|
||||
// it so that it gets served as a static asset in prod
|
||||
export const prerender = true;
|
@ -1,34 +0,0 @@
|
||||
<svelte:head>
|
||||
<title>About</title>
|
||||
<meta name="description" content="About this app" />
|
||||
</svelte:head>
|
||||
|
||||
<div class="content">
|
||||
<h1>About this app</h1>
|
||||
|
||||
<p>
|
||||
This is a <a href="https://kit.svelte.dev">SvelteKit</a> app. You can make your own by typing the
|
||||
following into your command line and following the prompts:
|
||||
</p>
|
||||
|
||||
<pre>npm create svelte@latest</pre>
|
||||
|
||||
<p>
|
||||
The page you're looking at is purely static HTML, with no client-side interactivity needed.
|
||||
Because of that, we don't need to load any JavaScript. Try viewing the page's source, or opening
|
||||
the devtools network panel and reloading.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The <a href="/todos">TODOs</a> page illustrates SvelteKit's data loading and form handling. Try using
|
||||
it with JavaScript disabled!
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.content {
|
||||
width: 100%;
|
||||
max-width: var(--column-width);
|
||||
margin: var(--column-margin-top) auto 0 auto;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,2 @@
|
||||
<script>
|
||||
</script>
|
Loading…
Reference in New Issue