Skip to content

Commit

Permalink
Merge pull request #6 from fisirc/feat/dashboard
Browse files Browse the repository at this point in the history
feat/dashboard
  • Loading branch information
feelware authored Nov 22, 2024
2 parents 159dd97 + c1af7ec commit 0772e65
Show file tree
Hide file tree
Showing 14 changed files with 487 additions and 39 deletions.
10 changes: 10 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@tabler/icons-react": "^3.11.0",
"ecctrl": "^1.0.91",
"konva": "^9.3.16",
"lucide-react": "^0.460.0",
"r3f-perf": "^7.2.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
16 changes: 9 additions & 7 deletions app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ const App = () => {
<div style={{ height: '100vh' }}>
<Switch>
{
routes.map((route, i) => (
<Route
key={i}
path={route.href}
component={route.component as any}
/>
))
routes.map((route, i) => {
return (
<Route
key={i}
path={route.href}
component={route.component as any}
/>
)
})
}
</Switch>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/UserButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const UserButton = () => {
{
icon: IconLogout,
label: 'Cerrar sesión',
onClick: () => { },
onClick: () => localStorage.removeItem('metagallery-token'),
},
];

Expand Down
101 changes: 101 additions & 0 deletions app/src/pages/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
import { Menu, Search, Share2 } from "lucide-react";
import styles from "./GalleryDashboard.module.css";
import { UserButton } from "@/components/UserButton";

const galleries = [
{
title: "Salón cúpula",
description: "Una colección que refleja el alma de la expresión",
image: "/placeholder.svg",
},
{
title: "Habitación de los muros",
description: "Muros y más muros",
image: "/placeholder.svg",
},
{
title: "Salón vintage",
description: "La colección perfecta para tu arte vintage",
image: "/placeholder.svg",
},
{
title: "Golden room",
description: "Un espacio al estilo del golden hour",
image: "/placeholder.svg",
},
{
title: "Arte conexo",
description: "Conectando el arte con la realidad",
image: "/placeholder.svg",
},
{
title: "Ronda de 3D",
description: "Experiencia inmersiva en 3D",
image: "/placeholder.svg",
},
];

export const GalleryDashboard = () => {
return (
<div className={styles.container}>
<header className={styles.header}>
<div className={styles.headerContent}>
<button className={styles.menuButton}>
<Menu className={styles.menuIcon} />
<span className={styles.srOnly}>Dashboard</span>
</button>
<UserButton />
</div>
</header>

<main className={styles.main}>
<div className={styles.profileSection}>
<h1 className={styles.profileName}>Rodrigo Alva</h1>
<div className={styles.searchContainer}>
<Search className={styles.searchIcon} />
<input
type="search"
placeholder="¿Qué estás buscando?"
className={styles.searchInput}
/>
</div>

<div className={styles.filters}>
<button className={`${styles.filterButton} ${styles.active}`}>
Mis proyectos
</button>
<button className={styles.filterButton}>
Proyectos de la comunidad
</button>
</div>
</div>

<div className={styles.galleryGrid}>
{galleries.map((gallery) => (
<div key={gallery.title} className={styles.galleryCard}>
<img
src={gallery.image}
alt={gallery.title}
className={styles.galleryImage}
/>
<div className={styles.galleryOverlay}>
<h2 className={styles.galleryTitle}>{gallery.title}</h2>
<p className={styles.galleryDescription}>
{gallery.description}
</p>
<div className={styles.galleryActions}>
<button className={styles.openButton}>Abrir</button>
<button className={styles.shareButton}>
<Share2 className={styles.shareIcon} />
Compartir
</button>
</div>
</div>
</div>
))}
</div>
</main>
</div>
);
}

Loading

0 comments on commit 0772e65

Please sign in to comment.