mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 14:56:17 -04:00
refactor(home): removed new tool first sort
This commit is contained in:
parent
04a8e122be
commit
d30cd8a9ab
1 changed files with 2 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { toolsWithCategory } from '@/tools';
|
import { toolsWithCategory } from '@/tools';
|
||||||
import ToolCard from '../components/ToolCard.vue';
|
|
||||||
import { useHead } from '@vueuse/head';
|
import { useHead } from '@vueuse/head';
|
||||||
|
import ToolCard from '../components/ToolCard.vue';
|
||||||
|
|
||||||
useHead({ title: 'IT Tools - Handy online tools for developers' });
|
useHead({ title: 'IT Tools - Handy online tools for developers' });
|
||||||
</script>
|
</script>
|
||||||
|
@ -9,13 +9,7 @@ useHead({ title: 'IT Tools - Handy online tools for developers' });
|
||||||
<template>
|
<template>
|
||||||
<div class="home-page">
|
<div class="home-page">
|
||||||
<n-grid x-gap="12" y-gap="12" cols="1 400:2 800:3 1200:4 2000:8">
|
<n-grid x-gap="12" y-gap="12" cols="1 400:2 800:3 1200:4 2000:8">
|
||||||
<n-gi
|
<n-gi v-for="tool in toolsWithCategory" :key="tool.name">
|
||||||
v-for="tool in [
|
|
||||||
...toolsWithCategory.filter(({ isNew }) => isNew),
|
|
||||||
...toolsWithCategory.filter(({ isNew }) => !isNew),
|
|
||||||
]"
|
|
||||||
:key="tool.name"
|
|
||||||
>
|
|
||||||
<tool-card :tool="tool" />
|
<tool-card :tool="tool" />
|
||||||
</n-gi>
|
</n-gi>
|
||||||
</n-grid>
|
</n-grid>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue