Compare commits

...

2 Commits

Author SHA1 Message Date
Kenan Alić
5ee1cbf918 Post-release styling pass
All checks were successful
Build / build (push) Successful in 24s
2025-10-24 19:25:46 +02:00
Kenan Alić
b89d9690ed Added project readme 2025-10-24 19:25:46 +02:00
6 changed files with 243 additions and 61 deletions

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

90
readme.md Normal file
View File

@@ -0,0 +1,90 @@
# Kiosk
A modern office/building information display system built with React and PocketBase. Provides an interactive interface for building navigation, company directory, and bulletin notices.
## Features
- **Interactive Floor Plans** - Navigate multi-story buildings with annex filtering, room highlighting, and company logo positioning
- **Company Directory** - Browse tenant companies with contact information and visual cards
- **Bulletin Board** - Display important notices and announcements
- **Static Hosting Ready** - Hash-based routing for deployment anywhere
## Screenshots
### Bulletin Board
![Bulletin Board](media/Screen%20Shot%202025-10-24%20at%2019.06.12-fullpage.png)
### Company Directory
![Company Directory](media/Screen%20Shot%202025-10-24%20at%2019.11.06-fullpage.png)
### Floor Plan Navigation
![Floor Plan Navigation](media/Screen%20Shot%202025-10-24%20at%2019.18.46-fullpage.png)
### About Page
![About Page](media/Screen%20Shot%202025-10-24%20at%2019.21.03-fullpage.png)
## Setup
### Prerequisites
- **pnpm** 8+ (package manager)
- **PocketBase** (backend database)
### PocketBase Setup
1. Download PocketBase from [pocketbase.io](https://pocketbase.io)
2. Initialize the database:
```bash
./pocketbase serve
```
3. Import the schema from `schema/pb_schema.json` via the PocketBase admin UI (_Settings > Import collections_)
### Web Frontend
Install dependencies:
```bash
cd web
pnpm install
```
#### Development Mode
Run the development server:
```bash
make web-dev
# or
cd web && pnpm dev
```
The app will be available at `http://localhost:5173`
#### Production Build
Build for production:
```bash
make web-build
# or
cd web && pnpm build
```
Built files will be in `web/dist/` - ready for static hosting.
### Additional Commands
```bash
make web-lint # Run ESLint
make web-format # Format code with Prettier
make web-preview # Preview production build
```
## Tech Stack
- **Frontend**: React 19, TypeScript, Vite, Tailwind CSS
- **UI Components**: shadcn/ui
- **Routing**: Wouter (hash-based)
- **Backend**: PocketBase
- **Build**: Vite with Rolldown (beta)
## License
MIT License - Copyright © 2025 "NABLA" d.o.o. Zenica

View File

@@ -43,72 +43,164 @@
} }
:root { :root {
--radius: 0.625rem; --background: oklch(0.9842 0.0034 247.8575);
--background: oklch(1 0 0); --foreground: oklch(0.2795 0.0368 260.031);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0); --card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0); --card-foreground: oklch(0.2795 0.0368 260.031);
--popover: oklch(1 0 0); --popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0); --popover-foreground: oklch(0.2795 0.0368 260.031);
--primary: oklch(0.205 0 0); --primary: oklch(0.5854 0.2041 277.1173);
--primary-foreground: oklch(0.985 0 0); --primary-foreground: oklch(1 0 0);
--secondary: oklch(0.97 0 0); --secondary: oklch(0.9276 0.0058 264.5313);
--secondary-foreground: oklch(0.205 0 0); --secondary-foreground: oklch(0.3729 0.0306 259.7328);
--muted: oklch(0.97 0 0); --muted: oklch(0.967 0.0029 264.5419);
--muted-foreground: oklch(0.556 0 0); --muted-foreground: oklch(0.551 0.0234 264.3637);
--accent: oklch(0.97 0 0); --accent: oklch(0.9299 0.0334 272.7879);
--accent-foreground: oklch(0.205 0 0); --accent-foreground: oklch(0.3729 0.0306 259.7328);
--destructive: oklch(0.577 0.245 27.325); --destructive: oklch(0.6368 0.2078 25.3313);
--border: oklch(0.922 0 0); --destructive-foreground: oklch(1 0 0);
--input: oklch(0.922 0 0); --border: oklch(0.8717 0.0093 258.3382);
--ring: oklch(0.708 0 0); --input: oklch(0.8717 0.0093 258.3382);
--chart-1: oklch(0.646 0.222 41.116); --ring: oklch(0.5854 0.2041 277.1173);
--chart-2: oklch(0.6 0.118 184.704); --chart-1: oklch(0.5854 0.2041 277.1173);
--chart-3: oklch(0.398 0.07 227.392); --chart-2: oklch(0.5106 0.2301 276.9656);
--chart-4: oklch(0.828 0.189 84.429); --chart-3: oklch(0.4568 0.2146 277.0229);
--chart-5: oklch(0.769 0.188 70.08); --chart-4: oklch(0.3984 0.1773 277.3662);
--sidebar: oklch(0.985 0 0); --chart-5: oklch(0.3588 0.1354 278.6973);
--sidebar-foreground: oklch(0.145 0 0); --sidebar: oklch(0.967 0.0029 264.5419);
--sidebar-primary: oklch(0.205 0 0); --sidebar-foreground: oklch(0.2795 0.0368 260.031);
--sidebar-primary-foreground: oklch(0.985 0 0); --sidebar-primary: oklch(0.5854 0.2041 277.1173);
--sidebar-accent: oklch(0.97 0 0); --sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0); --sidebar-accent: oklch(0.9299 0.0334 272.7879);
--sidebar-border: oklch(0.922 0 0); --sidebar-accent-foreground: oklch(0.3729 0.0306 259.7328);
--sidebar-ring: oklch(0.708 0 0); --sidebar-border: oklch(0.8717 0.0093 258.3382);
--sidebar-ring: oklch(0.5854 0.2041 277.1173);
--font-sans: Inter, sans-serif;
--font-serif: Merriweather, serif;
--font-mono: JetBrains Mono, monospace;
--radius: 0rem;
--shadow-x: 0px;
--shadow-y: 4px;
--shadow-blur: 8px;
--shadow-spread: -1px;
--shadow-opacity: 0.1;
--shadow-color: hsl(0 0% 0%);
--shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
--shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
--shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 1px 2px -2px hsl(0 0% 0% / 0.1);
--shadow: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 1px 2px -2px hsl(0 0% 0% / 0.1);
--shadow-md: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 2px 4px -2px hsl(0 0% 0% / 0.1);
--shadow-lg: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 4px 6px -2px hsl(0 0% 0% / 0.1);
--shadow-xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 8px 10px -2px hsl(0 0% 0% / 0.1);
--shadow-2xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.25);
--tracking-normal: 0em;
--spacing: 0.25rem;
} }
.dark { .dark {
--background: oklch(0.145 0 0); --background: oklch(0.2077 0.0398 265.7549);
--foreground: oklch(0.985 0 0); --foreground: oklch(0.9288 0.0126 255.5078);
--card: oklch(0.205 0 0); --card: oklch(0.2795 0.0368 260.031);
--card-foreground: oklch(0.985 0 0); --card-foreground: oklch(0.9288 0.0126 255.5078);
--popover: oklch(0.205 0 0); --popover: oklch(0.2795 0.0368 260.031);
--popover-foreground: oklch(0.985 0 0); --popover-foreground: oklch(0.9288 0.0126 255.5078);
--primary: oklch(0.922 0 0); --primary: oklch(0.6801 0.1583 276.9349);
--primary-foreground: oklch(0.205 0 0); --primary-foreground: oklch(0.2077 0.0398 265.7549);
--secondary: oklch(0.269 0 0); --secondary: oklch(0.3351 0.0331 260.912);
--secondary-foreground: oklch(0.985 0 0); --secondary-foreground: oklch(0.8717 0.0093 258.3382);
--muted: oklch(0.269 0 0); --muted: oklch(0.2427 0.0381 259.9437);
--muted-foreground: oklch(0.708 0 0); --muted-foreground: oklch(0.7137 0.0192 261.3246);
--accent: oklch(0.269 0 0); --accent: oklch(0.3729 0.0306 259.7328);
--accent-foreground: oklch(0.985 0 0); --accent-foreground: oklch(0.8717 0.0093 258.3382);
--destructive: oklch(0.704 0.191 22.216); --destructive: oklch(0.6368 0.2078 25.3313);
--border: oklch(1 0 0 / 10%); --destructive-foreground: oklch(0.2077 0.0398 265.7549);
--input: oklch(1 0 0 / 15%); --border: oklch(0.4461 0.0263 256.8018);
--ring: oklch(0.556 0 0); --input: oklch(0.4461 0.0263 256.8018);
--chart-1: oklch(0.488 0.243 264.376); --ring: oklch(0.6801 0.1583 276.9349);
--chart-2: oklch(0.696 0.17 162.48); --chart-1: oklch(0.6801 0.1583 276.9349);
--chart-3: oklch(0.769 0.188 70.08); --chart-2: oklch(0.5854 0.2041 277.1173);
--chart-4: oklch(0.627 0.265 303.9); --chart-3: oklch(0.5106 0.2301 276.9656);
--chart-5: oklch(0.645 0.246 16.439); --chart-4: oklch(0.4568 0.2146 277.0229);
--sidebar: oklch(0.205 0 0); --chart-5: oklch(0.3984 0.1773 277.3662);
--sidebar-foreground: oklch(0.985 0 0); --sidebar: oklch(0.2795 0.0368 260.031);
--sidebar-primary: oklch(0.488 0.243 264.376); --sidebar-foreground: oklch(0.9288 0.0126 255.5078);
--sidebar-primary-foreground: oklch(0.985 0 0); --sidebar-primary: oklch(0.6801 0.1583 276.9349);
--sidebar-accent: oklch(0.269 0 0); --sidebar-primary-foreground: oklch(0.2077 0.0398 265.7549);
--sidebar-accent-foreground: oklch(0.985 0 0); --sidebar-accent: oklch(0.3729 0.0306 259.7328);
--sidebar-border: oklch(1 0 0 / 10%); --sidebar-accent-foreground: oklch(0.8717 0.0093 258.3382);
--sidebar-ring: oklch(0.556 0 0); --sidebar-border: oklch(0.4461 0.0263 256.8018);
--sidebar-ring: oklch(0.6801 0.1583 276.9349);
--font-sans: Inter, sans-serif;
--font-serif: Merriweather, serif;
--font-mono: JetBrains Mono, monospace;
--radius: 0rem;
--shadow-x: 0px;
--shadow-y: 4px;
--shadow-blur: 8px;
--shadow-spread: -1px;
--shadow-opacity: 0.1;
--shadow-color: hsl(0 0% 0%);
--shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
--shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);
--shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 1px 2px -2px hsl(0 0% 0% / 0.1);
--shadow: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 1px 2px -2px hsl(0 0% 0% / 0.1);
--shadow-md: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 2px 4px -2px hsl(0 0% 0% / 0.1);
--shadow-lg: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 4px 6px -2px hsl(0 0% 0% / 0.1);
--shadow-xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.1), 0px 8px 10px -2px hsl(0 0% 0% / 0.1);
--shadow-2xl: 0px 4px 8px -1px hsl(0 0% 0% / 0.25);
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--font-sans: var(--font-sans);
--font-mono: var(--font-mono);
--font-serif: var(--font-serif);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--shadow-2xs: var(--shadow-2xs);
--shadow-xs: var(--shadow-xs);
--shadow-sm: var(--shadow-sm);
--shadow: var(--shadow);
--shadow-md: var(--shadow-md);
--shadow-lg: var(--shadow-lg);
--shadow-xl: var(--shadow-xl);
--shadow-2xl: var(--shadow-2xl);
} }
@layer base { @layer base {