mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 11:00:39 +00:00
- added OasisContact.vue
- Mobile responsivenes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="oasis-about-us container">
|
||||
<div id="o-nas" class="oasis-about-us container">
|
||||
<div class="title-wrapper container">
|
||||
<h3 class="main-title">
|
||||
<h3 class="main-title-sm">
|
||||
Kto Jsme?
|
||||
</h3>
|
||||
<h4 class="sub-title-sm">
|
||||
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<ul class="info-list">
|
||||
<li v-for="(item, i) in infoList" :key="i" class="info-list-item">
|
||||
<check-icon size="26" class="icon" />
|
||||
<check-icon size="30" class="icon" />
|
||||
<p class="description">{{ item }}</p>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -45,4 +45,24 @@
|
||||
@import '@assets/oasis/_components';
|
||||
@import '@assets/oasis/_homepage';
|
||||
@import '@assets/oasis/_responsive';
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
.info-list {
|
||||
margin: 65px 0;
|
||||
|
||||
.info-list-item {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
margin-bottom: 40px;
|
||||
|
||||
.description {
|
||||
max-width: 700px;
|
||||
@include font-size(19);
|
||||
color: $text-primary;
|
||||
font-weight: 800;
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
<template>
|
||||
<div id="kontakt-a-podpora" class="oasis-contact">
|
||||
<div class="container">
|
||||
<div class="title-wrapper">
|
||||
<h3 class="main-title-sm">
|
||||
Kontakt a Podpora
|
||||
</h3>
|
||||
<h4 class="sub-title-sm">
|
||||
Jsme česká společnost, která pro fyzické a právnické osoby (živnostníky a firmy) poskytuje cloudové uložiště dle evropské směrnice.
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="info-container">
|
||||
<div class="info-grid">
|
||||
<div class="info-wrapper">
|
||||
<b class="info-title">Společnost:</b>
|
||||
<p class="info-description">GDPR Cloud Solution, s.r.o., </p>
|
||||
<p class="info-description">ICO: 08995281</p>
|
||||
<p class="info-description">Sídlo: Zbraslavská 12/11, Malá Chuchle, 159 00 Praha 5</p>
|
||||
</div>
|
||||
|
||||
<div class="info-wrapper">
|
||||
<b class="info-title">Prodej:</b>
|
||||
<div class="info-group">
|
||||
<p class="info-description">John Doe</p>
|
||||
<p class="info-description">+420 922 123 456</p>
|
||||
</div>
|
||||
<div class="info-group">
|
||||
<p class="info-description">Jane Does</p>
|
||||
<p class="info-description">+420 982 510 182</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-wrapper">
|
||||
<b class="info-title">Podpora:</b>
|
||||
<p class="info-description">podpora@oasisdrive.cz</p>
|
||||
<p class="info-description">+420 922 123 456</p>
|
||||
</div>
|
||||
|
||||
<div class="info-wrapper">
|
||||
<b class="info-title">Dokumenty:</b>
|
||||
|
||||
<div class="info-icon">
|
||||
<file-text-icon size="22" />
|
||||
<a href="/oasis/eu-smernice-gdpr.pdf" target="_blank" class="info-description">Směrnice EU (GDPR)</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<ValidationObserver v-if="! isSuccess" @submit.prevent="contactForm" ref="contactForm" v-slot="{ invalid }" tag="form" class="contact-form">
|
||||
<b class="info-title">Zanechte nám vzkaz:</b>
|
||||
<div class="block-wrapper">
|
||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper" name="E-Mail" rules="required" v-slot="{ errors }">
|
||||
<input v-model="contact.email" :placeholder="$t('page_contact_us.form.email_plac')" type="email" class="focus-border-theme" :class="{'is-error': errors[0]}" />
|
||||
<span class="error-message" v-if="errors[0]">{{ errors[0] }}</span>
|
||||
</ValidationProvider>
|
||||
</div>
|
||||
<div class="block-wrapper">
|
||||
<ValidationProvider tag="div" mode="passive" class="input-wrapper" name="Message" rules="required" v-slot="{ errors }">
|
||||
<textarea v-model="contact.message" :placeholder="$t('page_contact_us.form.message_plac')" rows="7" class="focus-border-theme" :class="{'is-error': errors[0]}"></textarea>
|
||||
<span class="error-message" v-if="errors[0]">{{ errors[0] }}</span>
|
||||
</ValidationProvider>
|
||||
</div>
|
||||
<InfoBox v-if="isError">
|
||||
<p>{{ $t('page_contact_us.error_message') }}</p>
|
||||
</InfoBox>
|
||||
<button :disabled="isLoading" class="base-button theme-color" type="submit">
|
||||
{{ $t('page_contact_us.form.submit_button') }}
|
||||
</button>
|
||||
</ValidationObserver>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {ValidationProvider, ValidationObserver} from 'vee-validate/dist/vee-validate.full'
|
||||
import InfoBox from '@/components/Others/Forms/InfoBox'
|
||||
import {required} from 'vee-validate/dist/rules'
|
||||
import {FileTextIcon} from 'vue-feather-icons'
|
||||
import axios from 'axios'
|
||||
|
||||
export default {
|
||||
name: 'OasisAboutUs',
|
||||
components: {
|
||||
ValidationProvider,
|
||||
ValidationObserver,
|
||||
FileTextIcon,
|
||||
required,
|
||||
InfoBox,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
isSuccess: false,
|
||||
isError: false,
|
||||
contact: {
|
||||
email: '',
|
||||
message: '',
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async contactForm() {
|
||||
|
||||
// Validate fields
|
||||
const isValid = await this.$refs.contactForm.validate();
|
||||
|
||||
if (!isValid) return;
|
||||
|
||||
// Start loading
|
||||
this.isLoading = true
|
||||
|
||||
// Send request to get user token
|
||||
axios
|
||||
.post('/api/contact', this.contact)
|
||||
.then(() => {
|
||||
this.isSuccess = true
|
||||
})
|
||||
.catch(() => {
|
||||
this.isError = true
|
||||
})
|
||||
.finally(() => {
|
||||
this.isLoading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '@assets/oasis/_components';
|
||||
@import '@assets/oasis/_homepage';
|
||||
@import '@assets/oasis/_responsive';
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
.oasis-contact {
|
||||
|
||||
.info-container {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
gap: 0;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.info-wrapper {
|
||||
padding-bottom: 30px;
|
||||
|
||||
.info-description {
|
||||
@include font-size(18);
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
.contact-form {
|
||||
padding-bottom: 40px;
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="oasis-features text-center">
|
||||
|
||||
<div class="title-wrapper container">
|
||||
<h3 class="main-title">
|
||||
<h3 class="main-title-sm">
|
||||
Proč je OasisDrive Výnimočný?
|
||||
</h3>
|
||||
<h4 class="sub-title-sm">
|
||||
@@ -12,9 +12,9 @@
|
||||
|
||||
<ul class="features-box container">
|
||||
<li v-for="(feature, i) in features" :key="i" class="box">
|
||||
<cloud-icon v-if="feature.icon === 'cloud'" size="56" class="box-icon" />
|
||||
<file-text-icon v-if="feature.icon === 'file'" size="56" class="box-icon" />
|
||||
<lock-icon v-if="feature.icon === 'lock'" size="56" class="box-icon" />
|
||||
<cloud-icon v-if="feature.icon === 'cloud'" size="72" class="box-icon" />
|
||||
<file-text-icon v-if="feature.icon === 'file'" size="72" class="box-icon" />
|
||||
<lock-icon v-if="feature.icon === 'lock'" size="72" class="box-icon" />
|
||||
|
||||
<h5 class="box-title">
|
||||
{{ feature.title }}
|
||||
@@ -95,4 +95,23 @@
|
||||
@import '@assets/oasis/_components';
|
||||
@import '@assets/oasis/_homepage';
|
||||
@import '@assets/oasis/_responsive';
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
.features-box {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 30px;
|
||||
|
||||
.box {
|
||||
|
||||
.box-title {
|
||||
@include font-size(26);
|
||||
}
|
||||
|
||||
.box-description {
|
||||
@include font-size(18);
|
||||
line-height: 1.55;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -6,16 +6,9 @@
|
||||
</router-link>
|
||||
<nav>
|
||||
<ul class="links">
|
||||
<li v-for="(item, i) in navigation" :key="i">
|
||||
<a :href="`#${item.href}`">
|
||||
{{ item.title }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="links">
|
||||
<li v-for="(item, i) in routes" :key="i">
|
||||
<router-link :to="{name: item.route}" :class="{'highlighted': item.route === 'SignUp'}">
|
||||
{{ item.title }}
|
||||
<li v-if="legal.visibility" v-for="(legal, index) in config.legal" :key="index">
|
||||
<router-link :to="{name: 'DynamicPage', params: {slug: legal.slug }}">
|
||||
{{ legal.title }}
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -37,38 +30,6 @@
|
||||
'config'
|
||||
]),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
navigation: [
|
||||
{
|
||||
title: 'O Nás',
|
||||
href: 'o-nas',
|
||||
},
|
||||
/*{
|
||||
title: 'Kariéra',
|
||||
href: 'kariera',
|
||||
},*/
|
||||
{
|
||||
title: 'Ceník',
|
||||
href: 'cenik',
|
||||
},
|
||||
{
|
||||
title: 'Podpora',
|
||||
href: 'podpora',
|
||||
},
|
||||
],
|
||||
routes: [
|
||||
{
|
||||
title: 'Prihlásit se',
|
||||
route: 'SignIn',
|
||||
},
|
||||
{
|
||||
title: 'Zaregistrovat se',
|
||||
route: 'SignUp',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -76,4 +37,30 @@
|
||||
@import '@assets/oasis/_components';
|
||||
@import '@assets/oasis/_homepage';
|
||||
@import '@assets/oasis/_responsive';
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
.oasis-footer.container {
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 10px 0;
|
||||
|
||||
.logo {
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.links {
|
||||
display: block;
|
||||
|
||||
li {
|
||||
display: block;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -7,12 +7,20 @@
|
||||
<h2 class="sub-title">
|
||||
Virtuální šanon, vždy s tebou.
|
||||
</h2>
|
||||
<router-link :to="{name: 'SignUp'}" class="theme-button">
|
||||
Zaregistrujte se
|
||||
</router-link>
|
||||
<span class="log-in">
|
||||
alebo <router-link :to="{name: 'SignIn'}">prihláste se</router-link>
|
||||
</span>
|
||||
|
||||
<div v-if="config.isAuthenticated">
|
||||
<router-link :to="{name: 'Files'}" class="theme-button">
|
||||
{{ $t('go_to_files') }}
|
||||
</router-link>
|
||||
</div>
|
||||
<div v-if="! config.isAuthenticated">
|
||||
<router-link :to="{name: 'SignUp'}" class="theme-button">
|
||||
Zaregistrujte se
|
||||
</router-link>
|
||||
<span class="log-in">
|
||||
alebo <router-link :to="{name: 'SignIn'}">prihláste se</router-link>
|
||||
</span>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<nav class="oasis-navigation navigation">
|
||||
<nav class="oasis-navigation navigation" :class="{'white': isWhite}">
|
||||
<div class="container">
|
||||
<router-link :to="{name: 'Homepage'}" tag="div" class="logo">
|
||||
<img v-if="config.app_logo_horizontal" :src="$getImage(config.app_logo_horizontal)" :alt="config.app_name">
|
||||
@@ -7,10 +7,19 @@
|
||||
</router-link>
|
||||
<ul class="links">
|
||||
<li v-for="(item, i) in navigation" :key="i">
|
||||
<a :href="`#${item.href}`">{{ item.title }}</a>
|
||||
<a v-if="$router.currentRoute.name !== 'DynamicPage'" @click="scrollToSection(item.href)">{{ item.title }}</a>
|
||||
|
||||
<router-link v-if="$router.currentRoute.name === 'DynamicPage'" :to="{path: '/', hash: `#${item.href}`}">
|
||||
{{ item.title }}
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="log-in">
|
||||
<div v-if="config.isAuthenticated" class="log-in">
|
||||
<router-link :to="{name: 'Files'}" class="base-button theme-color">
|
||||
{{ $t('go_to_files') }}
|
||||
</router-link>
|
||||
</div>
|
||||
<div v-if="! config.isAuthenticated" class="log-in">
|
||||
<router-link :to="{name: 'SignIn'}" class="base-button theme-color">
|
||||
Prihlásit se
|
||||
</router-link>
|
||||
@@ -34,26 +43,53 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isWhite: false,
|
||||
navigation: [
|
||||
{
|
||||
title: 'O Nás',
|
||||
href: 'o-nas',
|
||||
},
|
||||
/*{
|
||||
title: 'Kariéra',
|
||||
href: 'kariera',
|
||||
},*/
|
||||
{
|
||||
title: 'Ceník',
|
||||
href: 'cenik',
|
||||
},
|
||||
{
|
||||
title: 'Podpora',
|
||||
href: 'podpora',
|
||||
title: 'O Nás',
|
||||
href: 'o-nas',
|
||||
},
|
||||
{
|
||||
title: 'Kontakt a Podpora',
|
||||
href: 'kontakt-a-podpora',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
scrollToSection(anchor) {
|
||||
var el = document.getElementById('vuefilemanager')
|
||||
|
||||
const section = document.getElementById(anchor),
|
||||
position = section.offsetTop - 100;
|
||||
|
||||
el.scrollTo({top: position, behavior: 'smooth'});
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
// Perform scroll to loaded location
|
||||
if (document.location.hash) {
|
||||
setTimeout(() => {
|
||||
this.scrollToSection(document.location.hash.substring(1))
|
||||
}, 300)
|
||||
}
|
||||
|
||||
// Set white bar after user scrolling down
|
||||
var el = document.getElementById('vuefilemanager')
|
||||
|
||||
el.addEventListener('scroll', () => {
|
||||
if (el.scrollTop > 35 ) {
|
||||
this.isWhite = true
|
||||
} else {
|
||||
this.isWhite = false
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -61,4 +97,18 @@
|
||||
@import '@assets/oasis/_components';
|
||||
@import '@assets/oasis/_homepage';
|
||||
@import '@assets/oasis/_responsive';
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
.oasis-navigation.navigation {
|
||||
margin-top: 10px;
|
||||
|
||||
.base-button {
|
||||
padding: 12px 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.links {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="oasis-pricing text-center">
|
||||
<div id="cenik" class="oasis-pricing text-center">
|
||||
|
||||
<div class="title-wrapper container">
|
||||
<h3 class="main-title">
|
||||
<h3 class="main-title-sm">
|
||||
Kolik stoji OasisDrive?
|
||||
</h3>
|
||||
<h4 class="sub-title-sm">
|
||||
@@ -111,4 +111,28 @@
|
||||
@import '@assets/oasis/_components';
|
||||
@import '@assets/oasis/_homepage';
|
||||
@import '@assets/oasis/_responsive';
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
.pricing-box {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 25px;
|
||||
|
||||
.box {
|
||||
|
||||
&:nth-child(2) {
|
||||
padding: 38px 40px 35px;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
|
||||
.pricing-data {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.pricing-description {
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user