2022-03-31 00:33:29 +02:00
|
|
|
<script setup lang="ts">
|
2022-04-05 23:23:08 +02:00
|
|
|
import { toolsWithCategory } from '@/tools';
|
|
|
|
import ToolCard from '../components/ToolCard.vue';
|
2022-03-31 00:33:29 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-04-15 23:10:47 +02:00
|
|
|
<div class="home-page">
|
|
|
|
<n-grid
|
|
|
|
x-gap="12"
|
|
|
|
y-gap="12"
|
|
|
|
cols="1 400:2 800:3 1200:4 2000:8"
|
|
|
|
>
|
|
|
|
<n-gi
|
|
|
|
v-for="tool in toolsWithCategory"
|
|
|
|
:key="tool.name"
|
|
|
|
>
|
|
|
|
<tool-card :tool="tool" />
|
|
|
|
</n-gi>
|
|
|
|
</n-grid>
|
|
|
|
</div>
|
2022-03-31 00:33:29 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
2022-04-05 23:23:08 +02:00
|
|
|
<style scoped lang="less">
|
|
|
|
.home-page {
|
|
|
|
padding-top: 50px;
|
|
|
|
}
|
2022-03-31 00:33:29 +02:00
|
|
|
</style>
|