Compare commits

..

No commits in common. "7476cfce339e3c88bf7a6371cc6d9e94b7b0fa06" and "61b8ad6380ff640d0a6da67d7aeed758b2c8f9b3" have entirely different histories.

3 changed files with 259 additions and 106 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="contact_container w-full bg-neutral-100 rounded-md border border-gray-200 md:max-w-[500px] p-2 shadow">
<div class="contact_container bg-neutral-100 rounded-md border border-gray-200 max-w-[500px] p-2 shadow">
<header class="mb-1.5">
<h3 class="text-xl">
Formularz kontaktowy
@ -38,7 +38,6 @@
/>
<span
v-if="isMessageError"
class="text-red-400"
>
Wiadomość musi zawierać przynajmniej 3 znaki!
</span>
@ -48,7 +47,7 @@
class="text-gray-500"
for="email"
>
Gdzie mam odesłać odpowiedź?
Jak mam się skontaktować?
</label>
<input
id="email"
@ -61,7 +60,7 @@
>
<span
v-if="isEmailError"
class="text-red-400"
class="error-message"
>
E-mail musi być poprawny, np. przemek.kowalski@gmail.com
</span>
@ -83,7 +82,7 @@
>
<span
v-if="isSenderError"
class="text-red-400"
class="error-message"
>
Podpis musi zawierać przynajmniej 3 znaki!
</span>
@ -208,9 +207,90 @@ function formSubmit(event) {
</script>
<style lang="scss" scoped>
@screen md {
@import "scss/media";
.contact_container {
flex-basis: 500px;
}
.contact_container {
/* .label-info {
width: 97%;
padding-bottom: 5px;
color: #7a7a7a;
} */
.error-message {
width: 97%;
padding: 5px 0 10px;
color: #d44950;
}
/* input, textarea {
width: 97%;
max-width: 97%;
border: 0;
border-bottom: 2px solid #c9c9c9;
padding: 10px 10px 8px;
font-size: 1em;
font-family: var(--font-family);
line-height: 1.3em;
margin-bottom: 15px;
border-radius: 5px;
} */
}
.contact_input::placeholder {
color: #bdbdbd;
}
.contact_input:focus, .contact_input:focus {
outline: none;
border-color: black;
}
textarea.contact_input {
max-width: 97%;
min-width: 97%;
min-height: 150px;
}
input.contact_input-error, textarea.contact_input-error {
border-color: #d44950;
color: #d44950;
margin-bottom: 0;
}
.contact_input-error::placeholder, .contact_input-error::placeholder {
color: #d7626a;
}
input[disabled].contact_input {
background-color: #cdcdcd;
border-color: gray;
color: black;
}
.message {
display: none;
margin: 5px;
padding: 8px;
border-radius: 5px;
}
.message_ok, .message_error {
display: block;
}
.message_ok {
background-color: #4CAF50;
border: 1px solid #387d3b;
color: white;
}
.message_error {
background-color: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
}
</style>

View File

@ -1,111 +1,134 @@
<template>
<div class="contact_info w-full bg-neutral-100 rounded-md border border-gray-200 md:max-w-[410px] p-2 shadow">
<header class="mb-1.5">
<h3 class="text-xl">
<div class="contact_info bg-neutral-100 rounded-md border border-gray-200 max-w-[500px] shadow">
<header class="info_head">
Inne formy kontaktu:
</h3>
</header>
<div class="flex flex-col gap-2.5 justify-start items-start">
<div class="flex items-center gap-2 w-full rounded-md p-1.5 border border-neutral-200 bg-white">
<div class="contact_element">
<img
class="rounded-full w-12 h-12 object-contain border border-neutral-200"
class="contact_element_icon"
src="/assets/img/instagram.jpg"
alt="Instagram"
>
<span
id="instagram"
class="font-bold"
class="contact_element_text"
>
<a
href="https://www.instagram.com/nikcamii/"
target="_blank"
rel="noopener nofollow noreferrer"
class="hover:underline"
>Instagram: @NiKCamii</a>
</span>
</div>
<div class="flex items-center gap-2 w-full rounded-md p-1.5 border border-neutral-200 bg-white">
<div class="contact_element">
<img
class="rounded-full w-12 h-12 object-contain border border-neutral-200"
class="contact_element_icon"
src="/assets/img/facebook.jpg"
alt="Facebook"
>
<span
id="facebook"
class="font-bold"
class="contact_element_text"
>
<a
href="https://www.facebook.com/nikcamii/"
target="_blank"
rel="noopener nofollow noreferrer"
class="hover:text-gray-700 hover:underline"
>Facebook: @NiKCamii</a>
</span>
</div>
<div class="flex items-center gap-2 w-full rounded-md p-1.5 border border-neutral-200 bg-white">
<div class="contact_element">
<img
class="rounded-full w-12 h-12 object-contain border border-neutral-200"
class="contact_element_icon"
src="/assets/img/twitter.jpg"
alt="Twitter"
>
<span
id="twitter"
class="font-bold"
class="contact_element_text"
>
<a
href="https://twitter.com/nikcamii"
target="_blank"
rel="noopener nofollow noreferrer"
class="hover:text-gray-700 hover:underline"
>Twitter: @NiKCamii</a>
</span>
</div>
<div class="flex items-center gap-2 w-full rounded-md p-1.5 border border-neutral-200 bg-white">
<div class="contact_element">
<img
class="rounded-full w-12 h-12 object-contain border border-neutral-200"
class="contact_element_icon"
src="/assets/img/gg.png"
alt="Gadu-Gadu"
>
<span
id="gg"
class="font-bold"
class="contact_element_text"
>GG: 38429969</span>
</div>
<div class="flex items-center gap-2 w-full rounded-md p-1.5 border border-neutral-200 bg-white">
<div class="contact_element">
<img
class="rounded-full w-12 h-12 object-contain border border-neutral-200"
class="contact_element_icon"
src="/assets/img/user.jpg"
alt="E-mail"
>
<span
id="mailto"
class="font-bold"
class="contact_element_text"
>
<a
href="mailto:contact@kamilcraft.com"
class="hover:text-gray-700 hover:underline"
>Email: contact@kamilcraft.com</a>
<a href="mailto:contact@kamilcraft.com">Email: contact@kamilcraft.com</a>
</span>
</div>
</div>
</div>
</template>
<style lang="scss" scoped>
@import "scss/media";
@screen md {
.contact_info {
flex-basis: 410px;
}
.info_head {
padding: 10px;
line-height: 1.6em;
font-size: 1.3em;
font-weight: bold;
}
.contact_element {
display: flex;
align-items: center;
padding: 5px;
background-color: #fff;
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
margin-bottom: 5px;
a {
color: inherit;
text-decoration: none;
&:hover {
-webkit-text-fill-color: #374151;
color: #374151;
-webkit-text-fill-color: #444444;
color: #444444;
text-decoration: underline;
}
}
&_icon {
border-radius: 50%;
border: 1px solid #e2e2e2;
width: 50px;
height: 50px;
margin-right: 10px;
object-fit: contain;
}
&_text{
padding-top: 2px;
line-height: 1.6em;
font-size: 1.1em;
font-weight: bold;
}
}
@ -130,4 +153,11 @@ a {
#gg {
color: #ffa214;
}
@include media-tablet {
#instagram, #facebook, #twitter, #mailto, #gg {
font-size: 1em;
line-height: 1.2em;
}
}
</style>

View File

@ -1,6 +1,6 @@
<template>
<section class="px-3 py-6">
<div class="flex flex-col md:flex-row items-start justify-center mx-auto gap-5">
<section class="py-6">
<div class="flex items-start justify-center mx-auto gap-5">
<MailContact />
<OtherContact />
</div>
@ -25,3 +25,46 @@ onMounted(() => {
store.commit('setHeader', header)
})
</script>
<style lang="scss">
@import "scss/media";
/* .contact {
padding: 25px 0;
.container {
display: flex;
align-items: flex-start;
justify-content: center;
}
.contact_container, .contact_info {
margin: 10px;
max-width: 500px;
box-shadow: 0 0 5px rgba(0, 0, 0, .2);
}
@include media-tablet {
.container {
display: block;
margin: 0 auto;
.contact_container, .contact_info {
margin: 0 auto 25px;
&:last-child {
margin-bottom: 0;
}
}
}
}
@include media-mobile {
.container {
padding: 0 10px;
.contact_container {
max-width: unset;
}
}
}
} */
</style>