Skip to content

Commit

Permalink
Merge pull request #1 from ilgarabdullazade/version_1.1.0
Browse files Browse the repository at this point in the history
Version 1.1.0
  • Loading branch information
ilgarabdullazade authored Oct 13, 2024
2 parents de4a224 + 8ac6518 commit 2d410c9
Show file tree
Hide file tree
Showing 66 changed files with 8,921 additions and 11,086 deletions.
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"semi": false,
"singleQuote": true
}
9 changes: 4 additions & 5 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const headers = useRequestHeaders([
'user-agent',
])
if (process.server) {
if (import.meta.server) {
await useMyFetch(ApiEndpoints.VISIT, {
method: 'POST',
params: {
Expand All @@ -48,14 +48,13 @@ useSeoMeta({
ogDescription: seoInfo.value?.meta_description,
})
defineOgImage({
component: 'Main',
defineOgImageComponent('Main', {
description: seoInfo.value?.meta_description,
})
</script>

<template>
<Html :lang="i18nHead.htmlAttrs!.lang" :dir="i18nHead.htmlAttrs!.dir">
<Html :lang="i18nHead.htmlAttrs?.lang" :dir="i18nHead.htmlAttrs?.dir">
<Body>
<div class="app">
<LayoutsParallaxBackground class="app__parallax" />
Expand Down Expand Up @@ -103,6 +102,6 @@ defineOgImage({
.slide-enter-from,
.slide-leave-to {
@apply opacity-0 -translate-x-1/2;
@apply -translate-x-1/2 opacity-0;
}
</style>
4 changes: 2 additions & 2 deletions assets/scss/modules/global/_base.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
html {
@apply relative w-full h-full min-h-full scroll-smooth;
@apply relative h-full min-h-full w-full scroll-smooth;
}

body {
@apply scrollbar-thumb-primary-300 scrollbar-thin scrollbar-track-background min-w-[360px] text-sm text-dark font-normal w-full min-h-full bg-primary max-lg:bg-background bg-repeat bg-fixed overflow-y-auto overflow-x-hidden;
@apply min-h-full w-full min-w-[360px] overflow-y-auto overflow-x-hidden bg-primary bg-fixed bg-repeat text-sm font-normal text-dark scrollbar-thin scrollbar-track-background scrollbar-thumb-primary-300 max-lg:bg-background;
}

img {
Expand Down
4 changes: 2 additions & 2 deletions assets/scss/modules/vendors/_formkit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
}

&-label {
@apply inline-flex text-base font-semibold mb-0.5;
@apply mb-0.5 inline-flex text-base font-semibold;
}

&-input {
@apply resize-none h-full rounded-md text-base border-2 border-solid border-dark-200 py-2.5 px-4 w-full outline-none;
@apply h-full w-full resize-none rounded-md border-2 border-solid border-dark-200 px-4 py-2.5 text-base outline-none;
}

&-messages {
Expand Down
6 changes: 3 additions & 3 deletions assets/scss/modules/vendors/_swiper.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.swiper-pagination-line {
.swiper-pagination-bullet {
@apply bg-dark-300 h-1 rounded w-5 transition-all #{!important};
@apply h-1 w-5 rounded bg-dark-300 transition-all #{!important};
}
.swiper-pagination-bullet-active {
@apply bg-primary w-8 #{!important};
@apply w-8 bg-primary #{!important};
}
}

.swiper-pagination-portfolio {
@apply pr-4 text-right #{!important};
.swiper-pagination-bullet {
@apply bg-background opacity-100 h-4 rounded-full w-4 border-2 border-solid border-dark-300 #{!important};
@apply h-4 w-4 rounded-full border-2 border-solid border-dark-300 bg-background opacity-100 #{!important};
}
.swiper-pagination-bullet-active {
@apply bg-primary #{!important};
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/tailwind.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
h4,
h5,
h6 {
@apply text-dark-900 font-bold;
@apply font-bold text-dark-900;
}
h1 {
@apply text-5xl leading-tight max-lg:text-4xl;
Expand Down
18 changes: 9 additions & 9 deletions components/contact/Form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { PluginConfigs } from '@formkit/vue'
import type { FormKitNode } from '@formkit/core'
import { reset } from '@formkit/core'
import { ApiEndpoints } from '~/utils/apiEndpoints'
import { ApiEndpoints } from '@/utils/apiEndpoints'
const submitted = ref(false)
Expand All @@ -19,27 +19,27 @@ const config = inject<PluginConfigs>(Symbol.for('FormKitConfig'))
const { locale } = useI18n()
const setFormLocale = () => {
if (config) config!.locale = locale.value
if (config) config.locale = locale.value
}
onMounted(() => {
setFormLocale()
})
watch(
() => locale.value,
() => setFormLocale()
() => setFormLocale(),
)
</script>

<template>
<div class="contact-form">
<FormKit
id="contactForm"
class="contact-form__form"
type="form"
id="contactForm"
:actions="false"
@submit="submitHandler"
@input="submitted = false"
:actions="false"
>
<div class="contact-form__wrapper">
<SiteTitle class="contact-form__title">{{
Expand Down Expand Up @@ -94,7 +94,7 @@ watch(
>
</div>
</FormKit>
<div class="contact-form__alert" v-if="submitted">
<div v-if="submitted" class="contact-form__alert">
{{ $t('contact.success') }}
</div>
</div>
Expand All @@ -120,13 +120,13 @@ watch(
// .contact-form__body
&__body {
@apply flex gap-5 mb-7 max-sm:flex-col max-sm:gap-2;
@apply mb-7 flex gap-5 max-sm:flex-col max-sm:gap-2;
}
// .contact-form__inputs
&__inputs {
@apply flex-1 flex flex-col gap-1.5 max-sm:gap-2;
@apply flex flex-1 flex-col gap-1.5 max-sm:gap-2;
}
// .contact-form__textarea
Expand All @@ -151,7 +151,7 @@ watch(
// .contact-form__alert
&__alert {
@apply text-green-500 mt-2;
@apply mt-2 text-green-500;
}
}
</style>
6 changes: 3 additions & 3 deletions components/contact/Info/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { UserData } from '~/types'
import type { UserData } from '@/types'
const { data: userData } = await useMyFetch<UserData>(
ApiEndpoints.FREELANCER_INFO
ApiEndpoints.FREELANCER_INFO,
)
</script>

Expand Down Expand Up @@ -50,7 +50,7 @@ const { data: userData } = await useMyFetch<UserData>(
// .contact-info__item
&__item {
@apply flex gap-3 items-center;
@apply flex items-center gap-3;
}
// .contact-info__item--icon
Expand Down
22 changes: 12 additions & 10 deletions components/home/About/Avatar/index.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script setup lang="ts">
interface Props {
avatar: string
avatar: string | undefined
}
const { public: publicEnv } = useRuntimeConfig()
const { avatar } = defineProps<Props>()
const { public: publicEnv } = useRuntimeConfig()
const { parallaxStyle } = useParallaxBackground()
const img = useImage()
Expand All @@ -21,7 +21,7 @@ const backgroundImageStyles = computed(() => {
modifiers: {
format: 'webp',
},
}
},
)
return {
backgroundImage: `url(${imgUrl})`,
Expand All @@ -32,10 +32,12 @@ const backgroundImageStyles = computed(() => {
<template>
<div class="about-avatar">
<div class="about-avatar__wrapper">
<div
class="about-avatar__image"
:style="{ ...parallaxStyle, ...backgroundImageStyles }"
/>
<ClientOnly>
<div
class="about-avatar__image"
:style="{ ...parallaxStyle, ...backgroundImageStyles }"
/>
</ClientOnly>
</div>
</div>
</template>
Expand All @@ -45,13 +47,13 @@ const backgroundImageStyles = computed(() => {
// .about-avatar__wrapper
&__wrapper {
@apply relative h-full aspect-square border-[1.125rem] rounded-full border-solid border-background overflow-hidden shadow-avatar;
@apply relative aspect-square h-full overflow-hidden rounded-full border-[1.125rem] border-solid border-background shadow-avatar;
}
// .about-avatar__image
&__image {
@apply absolute w-auto h-auto -top-5 -left-5 -right-5 -bottom-5 transition-all duration-0 bg-cover bg-no-repeat;
@apply absolute -bottom-5 -left-5 -right-5 -top-5 h-auto w-auto bg-cover bg-no-repeat transition-all duration-0;
}
}
</style>
15 changes: 8 additions & 7 deletions components/home/About/Info/index.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<script setup lang="ts">
import type { AboutInfo } from '~/types'
const { public: publicEnv } = useRuntimeConfig()
const localePath = useLocalePath()
import type { AboutInfo } from '@/types'
interface Props {
info: AboutInfo
}
const { info } = defineProps<Props>()
const { public: publicEnv } = useRuntimeConfig()
const localePath = useLocalePath()
</script>

<template>
Expand All @@ -25,7 +26,7 @@ const { info } = defineProps<Props>()
disableOnInteraction: false,
}"
>
<SwiperSlide v-for="profession in info.profession" :key="profession">
<SwiperSlide v-for="profession of info.profession" :key="profession">
<span>{{ profession }}</span>
</SwiperSlide>
</Swiper>
Expand Down Expand Up @@ -66,7 +67,7 @@ const { info } = defineProps<Props>()
// .about-info__position
&__position {
@apply text-base font-light text-dark-300 mb-0.5 max-w-full max-lg:mb-1.5;
@apply mb-0.5 max-w-full text-base font-light text-dark-300 max-lg:mb-1.5;
}
// .about-info__title
Expand Down
14 changes: 7 additions & 7 deletions components/home/About/index.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { UserData, AboutInfo } from '~/types'
import { ApiEndpoints } from '~/utils/apiEndpoints'
import type { UserData, AboutInfo } from '@/types'
import { ApiEndpoints } from '@/utils/apiEndpoints'
const { data: userData } = await useMyFetch<UserData>(
ApiEndpoints.FREELANCER_INFO
ApiEndpoints.FREELANCER_INFO,
)
const aboutData: AboutInfo = {
Expand All @@ -17,7 +17,7 @@ const aboutData: AboutInfo = {
<template>
<section class="about">
<div class="about__wrapper">
<HomeAboutAvatar :avatar="userData!.avatar" class="about__avatar" />
<HomeAboutAvatar :avatar="userData?.avatar" class="about__avatar" />
<HomeAboutInfo :info="aboutData" class="about__info" />
</div>
</section>
Expand All @@ -28,19 +28,19 @@ const aboutData: AboutInfo = {
// .about__wrapper
&__wrapper {
@apply items-center lg:grid lg:grid-cols-12 lg:gap-7 my-4 lg:max-w-4xl lg:mx-auto;
@apply my-4 items-center lg:mx-auto lg:grid lg:max-w-4xl lg:grid-cols-12 lg:gap-7;
}
// .about__avatar
&__avatar {
@apply lg:col-span-5 p-3 max-lg:max-w-sm max-lg:mx-auto max-lg:mb-5;
@apply p-3 max-lg:mx-auto max-lg:mb-5 max-lg:max-w-sm lg:col-span-5;
}
// .about__info
&__info {
@apply lg:col-span-7 self-center lg:pl-4;
@apply self-center lg:col-span-7 lg:pl-4;
}
}
</style>
6 changes: 3 additions & 3 deletions components/home/Education/Item/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { Occupation } from '~/types'
import type { Occupation } from '@/types'
interface Props {
education: Occupation
Expand Down Expand Up @@ -34,14 +34,14 @@ const { education } = defineProps<Props>()
// .education-item__wrapper
&__wrapper {
@apply relative pl-10 py-8 border-b-2 border-solid border-dark-50;
@apply relative border-b-2 border-solid border-dark-50 py-8 pl-10;
@apply before:absolute before:bottom-0 before:left-4 before:h-full before:w-0.5 before:bg-dark-50;
}
// .education-item__header
&__header {
@apply relative flex gap-2 items-center mb-4;
@apply relative mb-4 flex items-center gap-2;
}
// .education-item__period
Expand Down
6 changes: 3 additions & 3 deletions components/home/Education/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts" setup>
import type { Occupation } from '~/types'
import type { Occupation } from '@/types'
const { data: educationList } = await useMyFetch<Occupation[]>(
ApiEndpoints.EDUCATION
ApiEndpoints.EDUCATION,
)
</script>

Expand All @@ -14,7 +14,7 @@ const { data: educationList } = await useMyFetch<Occupation[]>(
}}</SiteTitle>
<div class="education__body">
<HomeEducationItem
v-for="education in educationList"
v-for="education of educationList"
:key="education.title"
:education="education"
class="education__item"
Expand Down
2 changes: 1 addition & 1 deletion components/home/Execute/Item/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { WhatIDO } from '~/types'
import type { WhatIDO } from '@/types'
interface Props {
execute: WhatIDO
Expand Down
Loading

0 comments on commit 2d410c9

Please sign in to comment.