-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from os2ulf/feature/OS2UOL-124
Feature/os2 uol 124
- Loading branch information
Showing
3 changed files
with
109 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps({ | ||
data: { | ||
type: Object, | ||
required: true, | ||
default: null, | ||
}, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div class="course__registration"> | ||
<h2>Tilmelding</h2> | ||
<div v-if="props.data.free || props.data.price" class="course__registration__prices"> | ||
<BaseTag | ||
v-if="props.data.free" | ||
:data="{ label: 'Gratis' }" | ||
color="secondary" | ||
/> | ||
<div | ||
v-else-if="props.data.price" | ||
v-for="(price, index) in props.data.price" | ||
:key="index" | ||
class="course__registration__price-item" | ||
> | ||
<div> | ||
{{ price?.field_price }} kr. | ||
{{ price?.field_price_settlement_unit?.label }} | ||
</div> | ||
<div>{{ price?.field_price_vat?.label }}</div> | ||
</div> | ||
</div> | ||
<div v-if="props.data.description" class="course__registration__price-description" v-html="props.data.price_description" /> | ||
<h4 v-if="props.data.title" class="course__registration__title" v-html="props.data.title" /> | ||
<div v-if="props.data.description" class="course__registration__description" v-html="props.data.description" /> | ||
<div v-if="props.data.deadline" class="course__registration__description" v-html="props.data.deadline" /> | ||
<div v-if="props.data.phone" class="course__registration__phone"> | ||
Tlf.: {{ props.data.phone }} | ||
</div> | ||
<div v-if="props.data.email" class="course__registration__email"> | ||
Email: <a :href="'mailto:' + props.data.email">{{ props.data.email }}</a> | ||
</div> | ||
<div v-if="props.data.url" class="course__registration__url"> | ||
<a :href="props.data.url" target="_blank">{{ props.data.url }}</a> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style lang="postcss" scoped> | ||
.course__registration { | ||
text-align: center; | ||
padding: 48px var(--grid-gutter-half) @(--md) 96px var(--grid-gutter-half); | ||
background: var(--color-secondary-lighten-5); | ||
& h2 { | ||
margin-bottom: 16px; | ||
} | ||
&__title { | ||
margin-bottom: 16px; | ||
padding-top: 16px @(--md) 32px; | ||
} | ||
&__price-item { | ||
margin-bottom: 16px; | ||
font-size: 16px @(--md) 22px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters