add section vus
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<script setup lang="ts">
|
||||
import type { University } from "~/types";
|
||||
|
||||
/**
|
||||
* Блок контактной информации вуза.
|
||||
* Отображается в конце страницы каждого вуза.
|
||||
*/
|
||||
const props = defineProps<{ university: University }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="university-contacts mt-5">
|
||||
<h3>Контактная информация</h3>
|
||||
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<p><b>Адрес:</b></p>
|
||||
<p>{{ props.university.location }}</p>
|
||||
</div>
|
||||
|
||||
<div v-if="props.university.website" class="col-md-6">
|
||||
<p><b>Сайт:</b></p>
|
||||
<p>
|
||||
<a
|
||||
:href="props.university.website"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{{ props.university.website }}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user