Webapp: cosmetic changes: title, favicon, added crude header

This commit is contained in:
Francesco 2022-05-01 17:01:21 +02:00
parent b93941e294
commit 062b6ca99d
2 changed files with 23 additions and 10 deletions

View File

@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="node_modules/bootstrap-icons/icons/diagram-2-fill.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
<title>GuessNN - Semantic word guesser</title>
</head>
<body>
<div id="app"></div>

View File

@ -1,11 +1,18 @@
<template>
<div class="container">
<header class="row">
<div class="col-12">
<h1>GuessNN</h1>
</div>
</header>
<section class="row">
<loading-indicator :loaded="!isLoading" :error="hasErrors" :class="{'loading': isLoading}">
<main-component :entities="entities" :concepts="concepts" :target="targetEntity??''"></main-component>
<template #error-message>
<span>{{ entitiesError }} {{ conceptsError }}</span>
</template>
</loading-indicator>
</section>
</div>
</template>
@ -74,6 +81,12 @@ export default defineComponent({
<style scoped lang="scss">
@import "bootstrap/scss/bootstrap";
header{
background-color: #ff6c005e;
margin-bottom: 2em;
}
.loading {
@extend .position-absolute, .top-50, .start-50, .translate-middle;
}