Styling of circle page
This commit is contained in:
parent
ba81ce2215
commit
49aaa526b5
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 50 KiB |
|
|
@ -1,8 +1,8 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'BuenosAires';
|
font-family: 'BuenosAires';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url("@/assets/styles/fonts/BuenosAires-Regular.woff2") format("woff2"),
|
src: url("/static/fonts/BuenosAires-Regular.woff2") format("woff2"),
|
||||||
url("@/assets/styles/fonts/BuenosAires-Regular.woff") format("woff");
|
url("/static/fonts/BuenosAires-Regular.woff") format("woff");
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
|
|
||||||
|
|
@ -23,19 +23,52 @@ export default {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="circle">
|
<div class="circle">
|
||||||
<h1 class="text-6xl">
|
<div class="flex">
|
||||||
Hello world!
|
<div class="flex-initial w-128 p-8">
|
||||||
|
<h1 class="text-blue-dark text-7xl">
|
||||||
|
{{ circleData.title }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
<div class="circle-image mt-8"></div>
|
||||||
|
|
||||||
|
<div class="outcome border border-slate-300 mt-8 p-6">
|
||||||
|
<h3 class="text-blue-dark">Das lernst du in diesem Circle.</h3>
|
||||||
|
<div class="prose mt-4">
|
||||||
|
{{ circleData.description }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button class="px-4 py-3 bg-blue-dark text-white text-xl mt-4">Erfahre mehr dazu</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="expert border border-slate-300 mt-8 p-6">
|
||||||
|
<h3 class="text-blue-dark">Hast du Fragen?</h3>
|
||||||
|
<div class="prose mt-4">Tausche dich mit der Fachexpertin aus für den Circle Analyse aus.</div>
|
||||||
|
<button class="px-4 py-3 border-2 border-blue-dark bg-white text-blue-dark text-xl mt-4">
|
||||||
|
Fachexpertin kontaktieren
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex-auto bg-blue-100 p-8 pl-24">
|
||||||
<div v-for="learningSequence in circleData.learning_sequences">
|
<div v-for="learningSequence in circleData.learning_sequences">
|
||||||
<h2>{{learningSequence.title}}</h2>
|
<h2>{{ learningSequence.title }}</h2>
|
||||||
<div v-for="learningPackage in learningSequence.learning_packages">
|
<div v-for="learningPackage in learningSequence.learning_packages">
|
||||||
<h3>{{learningPackage.id}}</h3>
|
<h3>{{ learningPackage.id }}</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.circle-image {
|
||||||
|
width: 440px;
|
||||||
|
height: 440px;
|
||||||
|
background: url('@/assets/circle-analyse.svg');
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<main>
|
<main>
|
||||||
<p>Hello from Home View</p>
|
<p class="title">Hello from Home View</p>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
||||||
module.exports = {
|
|
||||||
content: [
|
|
||||||
'./index.html',
|
|
||||||
'./src/**/*.{vue,js,ts,jsx,tsx}',
|
|
||||||
],
|
|
||||||
theme: {
|
|
||||||
colors: {
|
|
||||||
'white': '#FFFFFF',
|
|
||||||
'blue-dark': '#00224D'
|
|
||||||
},
|
|
||||||
fontFamily: {
|
|
||||||
sans: ['BuenosAires', 'sans-serif'],
|
|
||||||
},
|
|
||||||
extend: {},
|
|
||||||
},
|
|
||||||
plugins: [],
|
|
||||||
}
|
|
||||||
|
|
@ -10,6 +10,8 @@
|
||||||
"tailwind": "tailwindcss -i ./tailwind/input.css -o ./server/vbv_lernwelt/static/css/tailwind.css --watch"
|
"tailwind": "tailwindcss -i ./tailwind/input.css -o ./server/vbv_lernwelt/static/css/tailwind.css --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@tailwindcss/forms": "^0.5.2",
|
||||||
|
"@tailwindcss/typography": "^0.5.2",
|
||||||
"cypress": "^9.4.1",
|
"cypress": "^9.4.1",
|
||||||
"tailwindcss": "^3.0.24"
|
"tailwindcss": "^3.0.24"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,36 @@
|
||||||
|
const colors = require('tailwindcss/colors')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: [
|
content: [
|
||||||
'./client/index.html',
|
'./client/index.html',
|
||||||
'./client/src/**/*.{vue,js,ts,jsx,tsx}',
|
'./client/src/**/*.{vue,js,ts,jsx,tsx}',
|
||||||
'./server/vbv_lernwelt/**/*.{html,js}',
|
'./server/vbv_lernwelt/**/*.{html,js}',
|
||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
colors: {
|
|
||||||
'white': '#FFFFFF',
|
|
||||||
'blue-dark': '#00224D'
|
|
||||||
},
|
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
sans: ['BuenosAires', 'sans-serif'],
|
sans: ['BuenosAires', 'sans-serif'],
|
||||||
},
|
},
|
||||||
extend: {},
|
extend: {
|
||||||
|
spacing: {
|
||||||
|
'128': '32rem',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
plugins: [],
|
colors: {
|
||||||
|
transparent: 'transparent',
|
||||||
|
current: 'currentColor',
|
||||||
|
black: colors.black,
|
||||||
|
white: colors.white,
|
||||||
|
blue: colors.blue,
|
||||||
|
gray: colors.gray,
|
||||||
|
emerald: colors.emerald,
|
||||||
|
indigo: colors.indigo,
|
||||||
|
yellow: colors.yellow,
|
||||||
|
slate: colors.slate,
|
||||||
|
'blue-dark': '#00224D',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
require('@tailwindcss/typography'),
|
||||||
|
require('@tailwindcss/forms'),
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,27 @@
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
* {
|
||||||
|
@apply text-blue-dark;
|
||||||
|
}
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
h1 {
|
h1 {
|
||||||
@apply text-4xl font-bold
|
@apply text-6xl font-bold
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
@apply text-2xl font-semibold
|
@apply text-4xl font-semibold
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
@apply text-lg font-medium italic
|
@apply text-2xl font-medium
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@layer components {
|
||||||
|
.circle-title {
|
||||||
|
@apply text-9xl font-bold
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue