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-family: 'BuenosAires';
|
||||
font-style: normal;
|
||||
src: url("@/assets/styles/fonts/BuenosAires-Regular.woff2") format("woff2"),
|
||||
url("@/assets/styles/fonts/BuenosAires-Regular.woff") format("woff");
|
||||
src: url("/static/fonts/BuenosAires-Regular.woff2") format("woff2"),
|
||||
url("/static/fonts/BuenosAires-Regular.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
|
|
|
|||
|
|
@ -23,19 +23,52 @@ export default {
|
|||
|
||||
<template>
|
||||
<div class="circle">
|
||||
<h1 class="text-6xl">
|
||||
Hello world!
|
||||
<div class="flex">
|
||||
<div class="flex-initial w-128 p-8">
|
||||
<h1 class="text-blue-dark text-7xl">
|
||||
{{ circleData.title }}
|
||||
</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">
|
||||
<h2>{{ learningSequence.title }}</h2>
|
||||
<div v-for="learningPackage in learningSequence.learning_packages">
|
||||
<h3>{{ learningPackage.id }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.circle-image {
|
||||
width: 440px;
|
||||
height: 440px;
|
||||
background: url('@/assets/circle-analyse.svg');
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
<template>
|
||||
<main>
|
||||
<p>Hello from Home View</p>
|
||||
<p class="title">Hello from Home View</p>
|
||||
</main>
|
||||
</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"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/forms": "^0.5.2",
|
||||
"@tailwindcss/typography": "^0.5.2",
|
||||
"cypress": "^9.4.1",
|
||||
"tailwindcss": "^3.0.24"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
const colors = require('tailwindcss/colors')
|
||||
|
||||
module.exports = {
|
||||
content: [
|
||||
'./client/index.html',
|
||||
|
|
@ -5,14 +7,30 @@ module.exports = {
|
|||
'./server/vbv_lernwelt/**/*.{html,js}',
|
||||
],
|
||||
theme: {
|
||||
colors: {
|
||||
'white': '#FFFFFF',
|
||||
'blue-dark': '#00224D'
|
||||
},
|
||||
fontFamily: {
|
||||
sans: ['BuenosAires', 'sans-serif'],
|
||||
},
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
extend: {
|
||||
spacing: {
|
||||
'128': '32rem',
|
||||
}
|
||||
},
|
||||
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 utilities;
|
||||
|
||||
* {
|
||||
@apply text-blue-dark;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
h1 {
|
||||
@apply text-4xl font-bold
|
||||
@apply text-6xl font-bold
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply text-2xl font-semibold
|
||||
@apply text-4xl font-semibold
|
||||
}
|
||||
|
||||
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