fix(templates): add two more templates (Airbnb, Wordpress) (#317)

* add two more templates (Airbnb, Wordpress)

* fix slugs

* fix templates sizes

---------

Co-authored-by: Guy Ben-Aharon <baguy3@gmail.com>
This commit is contained in:
Jonathan Fishner
2024-11-04 15:41:51 +02:00
committed by GitHub
parent 9ac5dfdf71
commit ebce8827ea
9 changed files with 3840 additions and 3 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 KiB

@@ -26,7 +26,7 @@ export const TemplateCard: React.FC<TemplateCardProps> = ({ template }) => {
className="h-2 rounded-t-[6px]"
style={{ backgroundColor: randomColor() }}
></div>
<div className="grow overflow-hidden p-1">
<div className="overflow-hidden p-1">
<img
src={
effectiveTheme === 'dark'
+8 -1
View File
@@ -1,6 +1,8 @@
import type { Diagram } from '@/lib/domain/diagram';
import { employeeDb } from './templates/employee-db';
import { visualNovelDb } from './templates/visual-novel-db';
import { airbnbDb } from './templates/airbnb-db';
import { wordpressDb } from './templates/wordpress-db';
export interface Template {
slug: string;
@@ -16,4 +18,9 @@ export interface Template {
url?: string;
}
export const templates: Template[] = [employeeDb, visualNovelDb];
export const templates: Template[] = [
employeeDb,
visualNovelDb,
airbnbDb,
wordpressDb,
];
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -26,7 +26,7 @@ export const employeeDb: Template = {
],
featured: true,
diagram: {
id: 'diagramexample01',
id: 'employees_db',
name: 'employees-db',
createdAt: new Date(),
updatedAt: new Date(),
File diff suppressed because it is too large Load Diff