😼🔦 Checkpoint

./views/palabras.js:1954897/3250
./views/index.html:1954897/8085
./public/style.css:1954897/1940
./public/styles.css:1954897/1056
This commit is contained in:
Glitch (hello-express)
2019-06-28 02:59:20 +00:00
parent 988db9b862
commit 3e96e4a6d4
4 changed files with 203 additions and 128 deletions
+174
View File
@@ -0,0 +1,174 @@
const words = [
// Adjetivos
"adj:Ajeno/a",
"adj:Ajeno/a",
"adj:Alto/a",
"adj:Barato/a",
"adj:Bien/a",
"adj:Bueno/a",
"adj:Caliente",
"adj:Caro/a",
"adj:Común",
"adj:Débil",
"adj:Dulce",
"adj:Feliz",
"adj:Frío/a",
"adj:Grande",
"adj:Guapo",
"adj:Igual",
"adj:Ligero/a",
"adj:Nuevo/a",
"adj:Raro/a",
"adj:Serio/a",
"adv:Rápido",
// Sustantivos
"noun:Amor",
"noun:Árbol",
"noun:Arte",
"noun:Auto",
"noun:Ayer",
"noun:Balón",
"noun:Barbacoa",
"noun:Basura",
"noun:Bebé",
"noun:Bebida",
"noun:Boleto",
"noun:Bote",
"noun:Buzón ",
"noun:Caballo",
"noun:Cabeza",
"noun:Calor",
"noun:Cámara",
"noun:Camisa",
"noun:Carbón",
"noun:Carne",
"noun:Cena",
"noun:Cerca",
"noun:Chancla",
"noun:Chapulín",
"noun:Cita",
"noun:Columpio",
"noun:Dedo",
"noun:Desayuno",
"noun:Dinero",
"noun:Domingo",
"noun:Dulce",
"noun:Edad",
"noun:Enero",
"noun:Entrada",
"noun:Entrada",
"noun:Equipo",
"noun:Equis",
"noun:Escuela",
"noun:Fecha",
"noun:Ferrocarril",
"noun:Fideo",
"noun:Flor",
"noun:Foto",
"noun:Guiso",
"noun:Guitarra",
"noun:Hilo",
"noun:Hoja",
"noun:Idioma",
"noun:Internet",
"noun:Juego",
"noun:Jueves",
"noun:Jugador(a)",
"noun:Lentes",
"noun:Letra",
"noun:Letrero",
"noun:Libro",
"noun:Límite",
"noun:Lluvia",
"noun:Lugar",
"noun:Lunes",
"noun:Luz",
"noun:Madera",
"noun:Mano",
"noun:Mañana",
"noun:Martes ",
"noun:Mascota",
"noun:Miércoles",
"noun:Música",
"noun:Natural",
"noun:Negocio",
"noun:Niño/a",
"noun:Noche",
"noun:Novio/a",
"noun:Nube",
"noun:Número",
"noun:Oceano",
"noun:Pájaro",
"noun:Pala",
"noun:Panteón",
"noun:Payaso",
"noun:Peatón",
"noun:Película",
"noun:Peón ",
"noun:Personaje",
"noun:Pista",
"noun:Pizza",
"noun:Plancha",
"noun:Pollo",
"noun:Puerta",
"noun:Queso",
"noun:Radio",
"noun:Ratón",
"noun:Recio",
"noun:Río",
"noun:Robot",
"noun:Sábado",
"noun:Sala",
"noun:Semáforo",
"noun:Sirena",
"noun:Sombra",
"noun:Suelo",
"noun:Taco",
"noun:Tapadera",
"noun:Tarjeta",
"noun:Tecla",
"noun:Tele",
"noun:Tiempo",
"noun:Títere",
"noun:Uña",
"noun:Velocidad",
"noun:Vida",
"noun:Video",
"noun:Viernes",
"noun:Zombi",
// Verbos
"verb:Amar",
"verb:Amar",
"verb:Andar",
"verb:Burlar",
"verb:Comer",
"verb:Decir",
"verb:Echar",
"verb:Enseñar",
"verb:Escribir",
"verb:Escuchar",
"verb:Girar",
"verb:Guardar",
"verb:Gustar",
"verb:Llamar",
"verb:Manejar",
"verb:Morir",
"verb:Nadar",
"verb:Oír",
"verb:Pelear",
"verb:Tomar",
"verb:Ver",
"verb:Vivir"
].map(s => {
var [t, p] = s.split(':')
return {t, p}
}).sort((a, b) =>{
let comparison = a.t.localeCompare(b.t, 'es-US')
return (comparison === 0
? a.p.localeCompare(b.p, 'es-US')
: comparison
)
})
module.exports = words
-71
View File
@@ -1,71 +0,0 @@
/* styles */
/* called by your view template */
* {
box-sizing: border-box;
}
body {
font-family: "Benton Sans", "Helvetica Neue", helvetica, arial, sans-serif;
margin: 2em;
}
h1 {
font-style: italic;
color: #373fff;
}
.bold {
font-weight: bold;
}
p {
max-width: 600px;
}
form {
margin-bottom: 25px;
padding: 15px;
background-color: cyan;
display: inline-block;
width: 100%;
max-width: 340px;
border-radius: 3px;
}
input {
display: block;
margin-bottom: 10px;
padding: 5px;
width: 100%;
border: 1px solid lightgrey;
border-radius: 3px;
font-size: 16px;
}
button {
font-size: 16px;
border-radius: 3px;
background-color: lightgrey;
border: 1px solid grey;
box-shadow: 2px 2px teal;
cursor: pointer;
}
button:hover {
background-color: yellow;
}
button:active {
box-shadow: none;
}
li {
margin-bottom: 5px;
}
footer {
margin-top: 50px;
padding-top: 25px;
border-top: 1px solid lightgrey;
}
+7
View File
@@ -0,0 +1,7 @@
html {
background: #1e1e1e;
}
body {
}
+22 -57
View File
@@ -1,58 +1,23 @@
<!-- This is a static file -->
<!-- served from your routes in server.js -->
<!doctype html>
<!--
Made with love by MindfulMinun
https://benjic.xyz
-->
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Tabú</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#79B791">
<!-- You might want to try something fancier: -->
<!-- html/nunjucks docs: https://mozilla.github.io/nunjucks/ -->
<!-- pug: https://pugjs.org/ -->
<!-- haml: http://haml.info/ -->
<!-- hbs(handlebars): http://handlebarsjs.com/ -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Welcome to Glitch!</title>
<meta name="description" content="A cool thing made with Glitch">
<link id="favicon" rel="icon" href="https://glitch.com/edit/favicon-app.ico" type="image/x-icon">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="/style.css">
<!-- import the webpage's client-side javascript file -->
<script src="/client.js" defer></script>
</head>
<body>
<header>
<h1>
A Dream of the Future
</h1>
</header>
<main>
<p class="bold">Oh hi,</p>
<p>Tell me your hopes and dreams:</p>
<form>
<input name="dream" type="text" maxlength="100" placeholder="Dreams!" aria-labelledby="submit-dream">
<button type="submit" id="submit-dream">Submit Dream</button>
</form>
<section class="dreams">
<ul id="dreams"></ul>
</section>
</main>
<footer>
Made with <a href="https://glitch.com">Glitch</a>!
</footer>
<!-- include the Glitch button to show what the webpage is about and
to make it easier for folks to view source and remix -->
<div class="glitchButton" style="position:fixed;top:20px;right:20px;"></div>
<script src="https://button.glitch.me/button.js"></script>
</body>
</html>
<!-- Google fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i">
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-yFRtMMDnQtDRO8rLpMIKrtPCD5jdktao2TV19YiZYWMDkUR5GQZR/NOVTdquEx1j" crossorigin="anonymous">
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<h1>Tabú</h1>
</body>
</html>