2022-03-31 00:33:29 +02:00
|
|
|
<script setup lang="ts">
|
2022-08-17 15:09:43 +02:00
|
|
|
import { Heart } from '@vicons/tabler';
|
2022-04-19 13:19:44 +02:00
|
|
|
import { useHead } from '@vueuse/head';
|
2022-08-17 15:09:43 +02:00
|
|
|
import ColoredCard from '../components/ColoredCard.vue';
|
2022-08-04 21:59:22 +02:00
|
|
|
import ToolCard from '../components/ToolCard.vue';
|
2023-05-28 23:13:24 +02:00
|
|
|
import { useToolStore } from '@/tools/tools.store';
|
|
|
|
import { config } from '@/config';
|
2022-04-19 13:19:44 +02:00
|
|
|
|
2022-12-17 01:30:02 +01:00
|
|
|
const toolStore = useToolStore();
|
|
|
|
|
2022-05-30 20:35:22 +02:00
|
|
|
useHead({ title: 'IT Tools - Handy online tools for developers' });
|
2023-06-18 14:11:38 +02:00
|
|
|
const { t } = useI18n();
|
2022-03-31 00:33:29 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-02-12 10:30:41 +01:00
|
|
|
<div class="pt-50px">
|
2022-12-17 15:33:52 +01:00
|
|
|
<div class="grid-wrapper">
|
2024-02-12 10:30:41 +01:00
|
|
|
<div v-if="config.showBanner" class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4">
|
|
|
|
<ColoredCard :title="$t('home.follow.title')" :icon="Heart">
|
|
|
|
{{ $t('home.follow.p1') }}
|
|
|
|
<a
|
|
|
|
href="https://github.com/CorentinTh/it-tools"
|
|
|
|
rel="noopener"
|
|
|
|
target="_blank"
|
|
|
|
:aria-label="$t('home.follow.githubRepository')"
|
|
|
|
>GitHub</a>
|
|
|
|
{{ $t('home.follow.p2') }}
|
|
|
|
<a
|
|
|
|
href="https://twitter.com/ittoolsdottech"
|
|
|
|
rel="noopener"
|
|
|
|
target="_blank"
|
|
|
|
:aria-label="$t('home.follow.twitterAccount')"
|
|
|
|
>Twitter</a>.
|
|
|
|
{{ $t('home.follow.thankYou') }}
|
|
|
|
<n-icon :component="Heart" />
|
|
|
|
</ColoredCard>
|
|
|
|
</div>
|
2022-12-17 15:33:52 +01:00
|
|
|
|
|
|
|
<transition name="height">
|
|
|
|
<div v-if="toolStore.favoriteTools.length > 0">
|
2024-02-12 10:30:41 +01:00
|
|
|
<h3 class="mb-5px mt-25px font-500 text-neutral-400">
|
|
|
|
{{ $t('home.categories.favoriteTools') }}
|
|
|
|
</h3>
|
|
|
|
<div class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4">
|
|
|
|
<ToolCard v-for="tool in toolStore.favoriteTools" :key="tool.name" :tool="tool" />
|
|
|
|
</div>
|
2022-12-17 15:33:52 +01:00
|
|
|
</div>
|
|
|
|
</transition>
|
2022-12-17 01:30:02 +01:00
|
|
|
|
2022-12-17 15:33:52 +01:00
|
|
|
<div v-if="toolStore.newTools.length > 0">
|
2024-02-12 10:30:41 +01:00
|
|
|
<h3 class="mb-5px mt-25px font-500 text-neutral-400">
|
|
|
|
{{ t('home.categories.newestTools') }}
|
|
|
|
</h3>
|
|
|
|
<div class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4">
|
|
|
|
<ToolCard v-for="tool in toolStore.newTools" :key="tool.name" :tool="tool" />
|
|
|
|
</div>
|
2022-12-17 01:30:02 +01:00
|
|
|
</div>
|
|
|
|
|
2024-02-12 10:30:41 +01:00
|
|
|
<h3 class="mb-5px mt-25px font-500 text-neutral-400">
|
|
|
|
{{ $t('home.categories.allTools') }}
|
|
|
|
</h3>
|
|
|
|
<div class="grid grid-cols-1 gap-12px lg:grid-cols-3 md:grid-cols-3 sm:grid-cols-2 xl:grid-cols-4">
|
|
|
|
<ToolCard v-for="tool in toolStore.tools" :key="tool.name" :tool="tool" />
|
|
|
|
</div>
|
2022-12-17 01:30:02 +01:00
|
|
|
</div>
|
2022-04-15 23:10:47 +02:00
|
|
|
</div>
|
2022-03-31 00:33:29 +02:00
|
|
|
</template>
|
|
|
|
|
2022-04-05 23:23:08 +02:00
|
|
|
<style scoped lang="less">
|
2022-12-17 01:30:02 +01:00
|
|
|
.height-enter-active,
|
|
|
|
.height-leave-active {
|
|
|
|
transition: all 0.5s ease-in-out;
|
|
|
|
overflow: hidden;
|
|
|
|
max-height: 500px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.height-enter-from,
|
|
|
|
.height-leave-to {
|
|
|
|
max-height: 42px;
|
|
|
|
overflow: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2022-04-22 23:31:40 +02:00
|
|
|
</style>
|