Revamped the theming system with new SCSS variables for consistent styling across light and dark themes. Replaced static color values with dynamic variables for maintainability and improved theme adaptability. Updated components and layouts to use the new variables. - Moved theme plugin logic for optimized handling of theme cookies and attributes. - Enhanced `useThemes` composable for simplified client-side updates and SSR support. - Replaced redundant SCSS color definitions with centralized variables. - Improved page structure by introducing `ui-title` for reusable section headers. - Unified transitions and border-radius for consistent design language. Breaking Changes: Theming system restructured—migrate to `$main`, `$primary`, and related variables for SCSS colors. Remove usage of `--color-*` variables in templates and styles.
147 lines
No EOL
3.8 KiB
Vue
147 lines
No EOL
3.8 KiB
Vue
<template>
|
|
<div class="contact">
|
|
<ui-title>
|
|
<h1>{{ t('contact.title') }}</h1>
|
|
<p>{{ t('contact.text') }}</p>
|
|
</ui-title>
|
|
<div class="contact__main">
|
|
<div class="container">
|
|
<div class="contact__main-wrapper">
|
|
<div class="contact__main-info">
|
|
<h2 class="title">{{ t('contact.block.title') }}</h2>
|
|
<p class="subtitle">{{ t('contact.block.text') }}</p>
|
|
<div class="block">
|
|
<div class="block__item">
|
|
<div class="block__item-icon">
|
|
<icon name="material-symbols:mail" size="20" />
|
|
</div>
|
|
<div class="block__item-texts">
|
|
<h6>{{ t('contact.block.email') }}</h6>
|
|
<a :href="'mailto:' + companyInfo?.emailFrom">{{ companyInfo?.emailFrom }}</a>
|
|
</div>
|
|
</div>
|
|
<div class="block__item">
|
|
<div class="block__item-icon">
|
|
<icon name="material-symbols:call" size="20" />
|
|
</div>
|
|
<div class="block__item-texts">
|
|
<h6>{{ t('contact.block.call') }}</h6>
|
|
<a :href="'tel:' + companyInfo?.companyPhoneNumber">{{ companyInfo?.companyPhoneNumber }}</a>
|
|
</div>
|
|
</div>
|
|
<!-- <div class="block__item">-->
|
|
<!-- <div class="block__item-icon">-->
|
|
<!-- <icon name="ic:baseline-access-time-filled" size="20" />-->
|
|
<!-- </div>-->
|
|
<!-- <div class="block__item-texts">-->
|
|
<!-- <h6>{{ t('contact.block.hours') }}</h6>-->
|
|
<!-- <p>{{ }}</p>-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
</div>
|
|
</div>
|
|
<forms-contact />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import {usePageTitle} from '@composables/utils';
|
|
|
|
const {t} = useI18n();
|
|
const companyStore = useCompanyStore();
|
|
|
|
const companyInfo = computed(() => companyStore.companyInfo);
|
|
|
|
const { setPageTitle } = usePageTitle();
|
|
|
|
setPageTitle(t('breadcrumbs.contact'));
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.contact {
|
|
&__main {
|
|
background-color: $main;
|
|
padding-block: 70px;
|
|
border-top: 1px solid $border;
|
|
|
|
&-wrapper {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 50px;
|
|
}
|
|
|
|
&-info {
|
|
max-width: 550px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 40px;
|
|
|
|
& .title {
|
|
color: $primary_dark;
|
|
font-family: "Playfair Display", sans-serif;
|
|
font-size: 30px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
& .subtitle {
|
|
color: $text;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
& .block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
|
|
&__item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 15px;
|
|
|
|
&-icon {
|
|
background-color: $primary_dark;
|
|
border-radius: $default_border_radius;
|
|
padding: 14px;
|
|
|
|
& span {
|
|
color: $main;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
&-texts {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
|
|
& h6 {
|
|
color: $primary_dark;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
& a {
|
|
color: $secondary;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
letter-spacing: -0.5px;
|
|
|
|
@include hover {
|
|
color: $secondary_hover;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |