Skip to content

Commit

Permalink
fix(templates): add two more templates (Airbnb, Wordpress) (#317)
Browse files Browse the repository at this point in the history
* add two more templates (Airbnb, Wordpress)

* fix slugs

* fix templates sizes

---------

Co-authored-by: Guy Ben-Aharon <baguy3@gmail.com>
  • Loading branch information
johnnyfish and guyb1 authored Nov 4, 2024
1 parent 9ac5dfd commit ebce882
Show file tree
Hide file tree
Showing 9 changed files with 3,840 additions and 3 deletions.
Binary file added src/assets/templates/airbnb-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/templates/airbnb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/templates/wordpress-db-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/templates/wordpress-db.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/pages/templates-page/template-card/template-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
9 changes: 8 additions & 1 deletion src/templates-data/templates-data.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -16,4 +18,9 @@ export interface Template {
url?: string;
}

export const templates: Template[] = [employeeDb, visualNovelDb];
export const templates: Template[] = [
employeeDb,
visualNovelDb,
airbnbDb,
wordpressDb,
];
Loading

0 comments on commit ebce882

Please sign in to comment.