mirror of
https://github.com/chartdb/chartdb.git
synced 2026-04-30 14:49:43 -05:00
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:
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'
|
||||
|
||||
@@ -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
@@ -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
Reference in New Issue
Block a user