ortie/templates/index.html

62 lines
2.4 KiB
HTML
Raw Permalink Normal View History

2022-10-05 18:41:34 +00:00
<!DOCTYPE html>
<html lang="es" class="full-page" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ortie: Entrenamiento de Ortografía</title>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400&display=swap" rel="stylesheet">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<link href="https://cdn.jsdelivr.net/npm/daisyui@2.31.0/dist/full.css" rel="stylesheet" type="text/css" />
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2/dist/tailwind.min.css" rel="stylesheet" type="text/css" />
<style>
body {
font-family: 'Source Sans Pro', sans-serif;
font-weight: 400;
}
.box {
display: flex;
align-items: center;
justify-content: center;
grid-template-columns: 1;
width: 100%;
height: 100%;
}
.full-page {
width: 100%;
height: 100%;
}
.grid-score-items {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 1rem;
width: 100%;
font-size: large;
}
.score-item {
font-family: 'Source Sans Pro', sans-serif;
font-weight: 600;
}
</style>
</head>
<body class="box">
<div class="card w-96 bg-grey-200 shadow-xl">
<figure class="px-10 pt-10">
<img src="{{ initial_image_url }}" class="rounded-xl" id="word-image" />
</figure>
<div class="card-body items-center text-center">
<h2 class="card-title"><span id="spell-field">empieza!</span></h2>
<div class="mt-5"></div>
<div class="grid-score-items">
<i class="bx bx-check-circle text-green-200"><pre> </pre><span id="score-good" class="score-item">0</span></i>
<i class="bx bx-x-circle text-red-200"><pre> </pre><span id="score-bad" class="score-item">0</span></i>
<i class="bx bx-bar-chart-alt-2 text-yellow-200"><pre> </pre><span id="score-percent" class="score-item">100</span><span class="score-item">%</span></i>
</div>
</div>
</div>
<div id="startup-target">{{ initial_word }}</div>
<script src="/static/ortie.js" defer></script>
</body>
</html>