parent
0c2741c2f8
commit
8e612665da
@ -1,47 +1,17 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import HelloWorld from './components/HelloWorld.vue'
|
import Titre from './components/Titre.vue';
|
||||||
import TheWelcome from './components/TheWelcome.vue'
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<header>
|
<!-- header -->
|
||||||
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
|
<Titre />
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<HelloWorld msg="You did it!" />
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<TheWelcome />
|
<!-- todo -->
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
header {
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
display: block;
|
|
||||||
margin: 0 auto 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
header {
|
|
||||||
display: flex;
|
|
||||||
place-items: center;
|
|
||||||
padding-right: calc(var(--section-gap) / 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
margin: 0 2rem 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
header .wrapper {
|
|
||||||
display: flex;
|
|
||||||
place-items: flex-start;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -0,0 +1,66 @@
|
|||||||
|
<script>
|
||||||
|
export default{
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
nomApp:"ScienceQuest"
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<header>
|
||||||
|
<!-- logo temporaire-->
|
||||||
|
<img alt="Vue logo" src="../assets/logo.svg" />
|
||||||
|
<h1>
|
||||||
|
<a href="/">
|
||||||
|
{{ nomApp }}
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
<div class="espacement">
|
||||||
|
<!-- espacement pour mettre les boutons a droite-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- liste de trucs a cliquer; accueil, jouer, langues?-->
|
||||||
|
<nav>
|
||||||
|
<!-- todo : component pour faire type de bouton (normal, menu déroulant)-->
|
||||||
|
<a>Accueil</a>
|
||||||
|
<a>Jouer</a>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
header{
|
||||||
|
width:100%;
|
||||||
|
height: 4em;
|
||||||
|
background-color:gold;
|
||||||
|
display:flex;
|
||||||
|
flex:auto;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.espacement{
|
||||||
|
flex:auto
|
||||||
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav{
|
||||||
|
display:flex;
|
||||||
|
flex:0;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a{
|
||||||
|
background-color: aqua;
|
||||||
|
vertical-align: center;
|
||||||
|
padding:1em;
|
||||||
|
height:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in new issue