mirror of
https://github.com/danielvici/tool-website.git
synced 2026-01-16 23:01:26 +00:00
Paths changed to plural, tool descriptions moved to separate file
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { NgOptimizedImage } from '@angular/common';
|
|
||||||
import { CustomTitle } from '../../components/custom-title/custom-title';
|
import { CustomTitle } from '../../components/custom-title/custom-title';
|
||||||
import { CustomCard } from '../../components/custom-card/custom-card';
|
import { CustomCard } from '../../components/custom-card/custom-card';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import features from './features.json';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-startpage',
|
selector: 'app-startpage',
|
||||||
@@ -11,42 +11,5 @@ import { ReactiveFormsModule } from '@angular/forms';
|
|||||||
imports: [CustomTitle, CustomCard, ReactiveFormsModule],
|
imports: [CustomTitle, CustomCard, ReactiveFormsModule],
|
||||||
})
|
})
|
||||||
export class Startpage {
|
export class Startpage {
|
||||||
features = [
|
features: any[] = features;
|
||||||
{
|
|
||||||
name: 'Generators',
|
|
||||||
enabled: true,
|
|
||||||
tools: [
|
|
||||||
{
|
|
||||||
name: 'Password Generator',
|
|
||||||
description: 'Create secure passwords with custom options',
|
|
||||||
link: '/generator/password',
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'QR Code Generator',
|
|
||||||
description: 'Generate and download QR codes for any text or URL',
|
|
||||||
link: '/generator/qrcode',
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Tests',
|
|
||||||
enabled: true,
|
|
||||||
tools: [
|
|
||||||
{
|
|
||||||
name: 'Test 1',
|
|
||||||
description: 'This is a just test description.',
|
|
||||||
link: '/test',
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Test 2',
|
|
||||||
description: 'This is a just test description.',
|
|
||||||
link: '/test',
|
|
||||||
enabled: false,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user