init component
This commit is contained in:
@@ -1,11 +1,34 @@
|
||||
<script setup lang="ts"></script>
|
||||
<script setup lang="ts">
|
||||
import { RouterView } from 'vue-router'
|
||||
import AppTopbar from '@/components/AppTopbar.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>You did it!</h1>
|
||||
<p>
|
||||
Visit <a href="https://vuejs.org/" target="_blank" rel="noopener">vuejs.org</a> to read the
|
||||
documentation
|
||||
</p>
|
||||
<header>
|
||||
<AppTopbar />
|
||||
</header>
|
||||
<main>
|
||||
<RouterView />
|
||||
</main>
|
||||
<!-- <footer>
|
||||
<AppFooter />
|
||||
</footer> -->
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
<style>
|
||||
/* #app {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
main {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
#app {
|
||||
height: 100vh;
|
||||
}
|
||||
} */
|
||||
</style>
|
||||
|
||||
5094
user-interface/src/assets/svg/manolia-logo.svg
Normal file
5094
user-interface/src/assets/svg/manolia-logo.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 371 KiB |
11
user-interface/src/components/AppFooter.vue
Normal file
11
user-interface/src/components/AppFooter.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
...
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
29
user-interface/src/components/AppTopbar.vue
Normal file
29
user-interface/src/components/AppTopbar.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<div class="topbar-container">
|
||||
<div class="logo-container">
|
||||
<img class="logo" src="../assets/svg/manolia-logo.svg" alt="Manolia logo" />
|
||||
<span>MANOLIA</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.topbar-container {
|
||||
height: 4rem;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: left;
|
||||
}
|
||||
.logo-container {
|
||||
width: 20rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
|
||||
img {
|
||||
width: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
18
user-interface/src/components/CollectKnowledge.vue
Normal file
18
user-interface/src/components/CollectKnowledge.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="container">
|
||||
<h2>Collect Knowledge</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.container{
|
||||
background-color: #ffffff;
|
||||
border-radius: 16px;
|
||||
padding: 34px;
|
||||
}
|
||||
|
||||
</style>
|
||||
13
user-interface/src/components/EvaluateQuestion.vue
Normal file
13
user-interface/src/components/EvaluateQuestion.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
Evaluate
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
17
user-interface/src/components/ReadKnowledges.vue
Normal file
17
user-interface/src/components/ReadKnowledges.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="container">
|
||||
<h2>Knowledge</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.container{
|
||||
background-color: #ffffff;
|
||||
border-radius: 16px;
|
||||
padding: 34px;
|
||||
}
|
||||
</style>
|
||||
@@ -3,6 +3,7 @@ import { createPinia } from 'pinia'
|
||||
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import './styles/global.css';
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
|
||||
@@ -2,7 +2,14 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [],
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
alias: '/app',
|
||||
name: 'app',
|
||||
component: () => import('@/views/ExperimentView.vue'),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
4
user-interface/src/styles/global.css
Normal file
4
user-interface/src/styles/global.css
Normal file
@@ -0,0 +1,4 @@
|
||||
body {
|
||||
background-color: #FFF4EA;
|
||||
margin-inline: 5%;
|
||||
}
|
||||
27
user-interface/src/views/ExperimentView.vue
Normal file
27
user-interface/src/views/ExperimentView.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<script setup lang="ts">
|
||||
import ReadKnowledges from '@/components/ReadKnowledges.vue';
|
||||
import CollectKnowledge from '@/components/CollectKnowledge.vue';
|
||||
//import EvaluateQuestion from '@/components/EvaluateQuestion.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="experiment-container">
|
||||
<section id="section-left">
|
||||
<ReadKnowledges/>
|
||||
</section>
|
||||
<section id="section-central">
|
||||
<CollectKnowledge/>
|
||||
</section>
|
||||
<!-- <section>
|
||||
<EvaluateQuestion/>
|
||||
</section> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.experiment-container{
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 3fr;
|
||||
gap: 24px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user