// Business app UI
Restaurant Operations Dashboard App UI Design in Expo
This restaurant operations app UI gives a manager the day at a glance. The home screen flags labour cost and shows venue capacity across the week for three locations.
- Screens
- 7
- Built with
- Expo SDK 58
- Fonts
- Barlow Condensed, Inter
- License
- Free (MIT)
- Views
- 0

Daily Grind Restaurant Ops app screens

Operations home
A venue switcher, a labour cost alert with shift timer and a weekly venue capacity card with a chart.

AI operations lead
A chat with an AI lead that flags issues, quick reply chips and a message bar.

Reports
An illustration, report search and report cards with tags and open buttons.

Revenue
Gross revenue and average order value, and a weekly bar chart that shows the selected day total.

Integrations
Tilted cards for accounting and payroll tools with connect and disconnect pills.

Venue categories
Stacked folder tabs for venue sizes and a card with seats, staff and an illustration.

Operational timing
A live analog clock for the venue time zone with a shift progress ring.
Copy the Daily Grind Restaurant Ops kit
Use the artifact as a design brief, the skill to generate the UI with an AI agent, or the code to run it right away.
Design artifact
The full design: tokens, screens and source
# Daily Grind Restaurant Ops: design artifact
This restaurant operations app UI gives a manager the day at a glance. The home screen flags labour cost and shows venue capacity across the week for three locations.
- Type: Business mobile app UI
- Screens: 7
- Artboard: 390 × 844
- Target: Expo SDK 58, Expo Router, TypeScript, react-native-svg
- Live page: https://developermill.com/app-designs/restaurant-operations-app-ui-design
## Design direction
Charcoal pages with coral, periwinkle, butter and mint blocks, condensed Barlow headlines and retro chef illustrations.
- Weekly capacity pills with a trend chart
- AI operations chat with quick replies
- Revenue bars that reveal the day total
- Integration cards that connect and disconnect
## Foundations
### Colour
| Token | Hex |
| --- | --- |
| Charcoal | `#141414` |
| Coral | `#F2735A` |
| Periwinkle | `#8B85F4` |
| Butter | `#F6C94C` |
| Mint | `#B5E3C8` |
| Aqua | `#A6E8F2` |
### Typography
- Typefaces: Barlow Condensed, Inter
- Common sizes (px): 11, 12, 13, 14, 20, 30, 36, 40
### Shape and depth
- Common corner radii (px): 4, 6, 14, 20, 24, 26
- Shadows: `0 6px 16px rgba(0,0,0,.4)`, `0 10px 24px rgba(0,0,0,.35)',
pillStyle: 'align-self:flex-start`, `0 -4px 12px rgba(0,0,0,.15)',
pick: () => this.setState({ sel: c.id })
})),
isSmall: cur.id === 'small', notSmall: cur.id !== 'small', title: cur.title, chipBg: cur.id === 'local' ? 'rgba(255,255,255,.14)' : 'rgba(255,255,255,.55)', btnIcon: cur.id === 'local' ? '#141414' : '#fff', btnStyle: 'width:48px`, `0 -6px 16px rgba(0,0,0,.18)`
## Screens
### 1. Operations home
A venue switcher, a labour cost alert with shift timer and a weekly venue capacity card with a chart.
Preview: https://developermill.com/app-designs/restaurant-operations-app-ui-design/home.webp
Copy on this screen:
- H
- Hi, Hanna!
- The Daily Grind, NY
- Stabilizing
- labor cost
- Approve critical alerts and check Inventory Risk. Shift ends in
- 2:59:12
- hours.
- Venue
- capacity
- this week
- Astoria
- Long Island City
- Rego Park
### 2. AI operations lead
A chat with an AI lead that flags issues, quick reply chips and a message bar.
Preview: https://developermill.com/app-designs/restaurant-operations-app-ui-design/assistant.webp
Copy on this screen:
- AI operations
- lead
- Hi, Hanna,
- The Daily Grind
- shows strong revenue, but two flags need attention: AOV is dipping and Labor Cost is
- 28%
- . Let's initiate the optimization strategy.
- Hi! Show labor cost
- Initiate strategy planning
- Message
### 3. Reports
An illustration, report search and report cards with tags and open buttons.
Preview: https://developermill.com/app-designs/restaurant-operations-app-ui-design/reports.webp
Copy on this screen:
- Reports
- all
- Search reports
### 4. Revenue
Gross revenue and average order value, and a weekly bar chart that shows the selected day total.
Preview: https://developermill.com/app-designs/restaurant-operations-app-ui-design/revenue.webp
Copy on this screen:
- Revenue
- this week
- USD, $
- Gross revenue
- +7,5%
- $156,900.67
- Avg. order value
- +2,4%
- $18.50
- Growth vs.
- Last week
### 5. Integrations
Tilted cards for accounting and payroll tools with connect and disconnect pills.
Preview: https://developermill.com/app-designs/restaurant-operations-app-ui-design/integrations.webp
Copy on this screen:
- Integrations
- all operations
- all experience
### 6. Venue categories
Stacked folder tabs for venue sizes and a card with seats, staff and an illustration.
Preview: https://developermill.com/app-designs/restaurant-operations-app-ui-design/categories.webp
Copy on this screen:
- Categories
- Illustration pending
### 7. Operational timing
A live analog clock for the venue time zone with a shift progress ring.
Preview: https://developermill.com/app-designs/restaurant-operations-app-ui-design/timing.webp
Copy on this screen:
- Operational
- timing
- UTC-5
## Full source
The original artboards as HTML. Image URLs point at the hosted demo assets.
### Operations home (Main)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Home</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
body{margin:0;background:#141414}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; background: #141414; color: #fff; font-family: Inter, sans-serif; padding: 56px 16px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden">
<div style="display: flex; align-items: center; gap: 12px">
<div aria-hidden="true" style="width: 44px; height: 44px; border-radius: 50%; background: #F2735A; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; color: #141414">H</div>
<div style="flex: 1; font-size: 16px; font-weight: 500">Hi, Hanna!</div>
<button aria-label="Search" style="width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: flex; align-items: center; justify-content: center"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-3.5-3.5"></path></svg></button>
<button aria-label="Notifications" style="width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: flex; align-items: center; justify-content: center"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#E0472E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 8a6 6 0 0112 0c0 7 3 9 3 9H3s3-2 3-9"></path><path d="M10.3 21a2 2 0 003.4 0"></path></svg></button>
</div>
<button style="display: flex; align-items: center; gap: 10px; background: #fff; color: #141414; border: 0; border-radius: 999px; padding: 6px 6px 6px 16px; height: 48px; text-align: left">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 9l1.5-5h15L21 9"></path><path d="M3 9h18v2a3 3 0 01-6 0 3 3 0 01-6 0 3 3 0 01-6 0z"></path><path d="M5 13v7h14v-7"></path></svg>
<span style="flex: 1; font-size: 15px; font-weight: 600">The Daily Grind, NY</span>
<span aria-hidden="true" style="width: 36px; height: 36px; border-radius: 50%; background: #2A2A2A; display: flex; align-items: center; justify-content: center"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round"><path d="M6 9l6 6 6-6"></path></svg></span>
</button>
<div style="background: #242424; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 10px">
<div style="display: flex; align-items: flex-start; gap: 12px">
<div aria-hidden="true" style="width: 44px; height: 44px; border-radius: 14px; background: #F6C94C; display: flex; align-items: center; justify-content: center; flex-shrink: 0"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l8 4v6c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6z"></path><path d="M12 8v5M12 16h.01"></path></svg></div>
<h2 style="flex: 1; margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 26px; line-height: 0.95; text-transform: uppercase">Stabilizing<br>labor cost</h2>
<a href="Assistant.dc.html" aria-label="Open in AI Operations Lead" style="width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M7 17L17 7M8 7h9v9"></path></svg></a>
</div>
<p style="margin: 0; font-size: 14px; line-height: 1.4; color: #C9C9C9">Approve critical alerts and check Inventory Risk. Shift ends in <span style="background: #3A3A3A; color: #fff; border-radius: 6px; padding: 1px 6px; font-weight: 600">2:59:12</span> hours.</p>
</div>
<div style="background: #8B85F4; color: #141414; border-radius: 28px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0">
<div style="display: flex; align-items: flex-start; justify-content: space-between">
<h2 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 30px; line-height: 0.95; text-transform: uppercase">Venue<br>capacity</h2>
<button style="border: 0; background: #A9A4F8; color: #141414; border-radius: 999px; padding: 8px 12px; font-size: 13px; display: flex; align-items: center; gap: 6px">this week <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M6 9l6 6 6-6"></path></svg></button>
</div>
<div style="display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center">
<sc-for list="{{days}}" as="d" hint-placeholder-count="7">
<button onClick="{{d.pick}}" style="border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #141414">
<span style="font-size: 12px; font-weight: 500">{{d.day}}</span>
<span style="{{d.pillStyle}}">{{d.pct}}</span>
</button>
</sc-for>
</div>
<svg viewBox="0 0 326 130" preserveAspectRatio="none" style="width: 100%; flex: 1; min-height: 110px" aria-label="Venue capacity trend for the week" role="img">
<path d="M0 96 L12 80 L22 92 L34 62 L46 74 L58 50 L70 70 L82 58 L96 30 L108 52 L120 44 L132 72 L146 60 L158 86 L172 66 L186 78 L200 40 L212 60 L224 48 L238 74 L252 64 L266 90 L280 70 L294 84 L310 76 L326 94 L326 130 L0 130 Z" fill="#E8604A"></path>
<path d="M0 96 L12 80 L22 92 L34 62 L46 74 L58 50 L70 70 L82 58 L96 30 L108 52 L120 44 L132 72 L146 60 L158 86 L172 66 L186 78 L200 40 L212 60 L224 48 L238 74 L252 64 L266 90 L280 70 L294 84 L310 76 L326 94" fill="none" stroke="#141414" stroke-width="1.5"></path>
</svg>
<div style="display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px">
<span style="background: #F2735A; border-radius: 999px; padding: 6px 10px; display: flex; align-items: center; gap: 6px"><span style="width: 7px; height: 7px; border-radius: 50%; background: #141414"></span>Astoria</span>
<span style="background: #A9A4F8; border-radius: 999px; padding: 6px 10px; display: flex; align-items: center; gap: 6px"><span style="width: 7px; height: 7px; border-radius: 50%; background: #fff"></span>Long Island City</span>
<span style="background: #A9A4F8; border-radius: 999px; padding: 6px 10px; display: flex; align-items: center; gap: 6px"><span style="width: 7px; height: 7px; border-radius: 50%; background: #F6C94C"></span>Rego Park</span>
</div>
</div>
<nav style="background: #242424; border-radius: 999px; height: 64px; display: flex; align-items: center; justify-content: space-around; padding: 0 8px">
<a href="Main.dc.html" aria-label="Home" style="width: 56px; height: 48px; border-radius: 999px; background: #8B85F4; display: flex; align-items: center; justify-content: center"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2" stroke-linejoin="round" aria-hidden="true"><path d="M4 10l8-6 8 6v10h-5v-6H9v6H4z"></path></svg></a>
<a href="Revenue.dc.html" aria-label="Revenue" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 17l6-6 4 4 8-8"></path><path d="M15 7h6v6"></path></svg></a>
<a href="Reports.dc.html" aria-label="Reports" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linejoin="round" aria-hidden="true"><path d="M3 7h15a3 3 0 013 3v9H3z"></path><path d="M3 7l12-3v3"></path><circle cx="16" cy="13" r="1.2"></circle></svg></a>
<a href="Integrations.dc.html" aria-label="Settings" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="3"></circle><path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"></path></svg></a>
</nav>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { sel: 3 }; }
renderVals() {
const data = [['Mon','78%'],['Tue','92%'],['Wed','81%'],['Thu','96%'],['Fri','90%'],['Sat','85%'],['Sun','88%']];
return {
days: data.map((d, i) => ({
day: d[0], pct: d[1],
pillStyle: 'width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;' + (i === this.state.sel ? 'background:#141414;color:#fff' : 'background:#fff;color:#141414'),
pick: () => this.setState({ sel: i })
}))
};
}
}
</script>
</body>
</html>
```
### AI operations lead (Assistant)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>AI Operations Lead</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
body{margin:0;background:#141414}
a{color:inherit;text-decoration:none}
button,input{font-family:inherit}
button{cursor:pointer}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; background: #141414; color: #fff; font-family: Inter, sans-serif; padding: 56px 16px 24px; display: flex; flex-direction: column; gap: 18px; overflow: hidden">
<div style="display: flex; align-items: flex-start; justify-content: space-between; gap: 12px">
<h1 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 40px; line-height: 0.92; text-transform: uppercase">AI operations<br>lead</h1>
<a href="Main.dc.html" aria-label="Back to home" style="width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M7 17L17 7M8 7h9v9"></path></svg></a>
</div>
<div style="flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto">
<div style="display: flex; gap: 10px; align-items: flex-start">
<div aria-hidden="true" style="width: 40px; height: 40px; border-radius: 50%; background: #F6C94C; display: flex; align-items: center; justify-content: center; flex-shrink: 0"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="8" width="14" height="11" rx="3"></rect><path d="M12 4v4M9 13h.01M15 13h.01M10 16h4"></path></svg></div>
<div style="background: #2A2A2A; border-radius: 4px 20px 20px 20px; padding: 14px; font-size: 14px; line-height: 1.5; color: #E4E4E4; max-width: 270px">Hi, Hanna, <span style="background: #8B85F4; color: #141414; border-radius: 6px; padding: 1px 6px; font-weight: 600">The Daily Grind</span> shows strong revenue, but two flags need attention: AOV is dipping and Labor Cost is <span style="background: #F6C94C; color: #141414; border-radius: 6px; padding: 1px 6px; font-weight: 600">28%</span>. Let's initiate the optimization strategy.</div>
</div>
<sc-for list="{{msgs}}" as="m" hint-placeholder-count="0">
<div style="{{m.wrap}}"><div style="{{m.bubble}}">{{m.text}}</div></div>
</sc-for>
<sc-if value="{{showChips}}" hint-placeholder-val="{{ true }}">
<div style="display: flex; flex-direction: column; align-items: flex-end; gap: 8px">
<button onClick="{{askLabor}}" style="border: 0; background: #A6E8F2; color: #141414; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; min-height: 44px">Hi! Show labor cost</button>
<button onClick="{{askPlan}}" style="border: 0; background: #B5E3C8; color: #141414; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; min-height: 44px">Initiate strategy planning</button>
</div>
</sc-if>
</div>
<div style="display: flex; align-items: center; gap: 10px">
<button aria-label="Add attachment" style="width: 48px; height: 48px; border-radius: 50%; border: 0; background: #F2735A; display: flex; align-items: center; justify-content: center; flex-shrink: 0"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"></path></svg></button>
<label style="flex: 1; display: flex; align-items: center; gap: 8px; background: #2A2A2A; border-radius: 999px; height: 48px; padding: 0 16px">
<span style="position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0)">Message</span>
<input placeholder="Ask something to start" style="flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 14px">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#9A9A9A" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M4 10v4M8 7v10M12 4v16M16 8v8M20 11v2"></path></svg>
</label>
</div>
<nav style="background: #242424; border-radius: 999px; height: 64px; display: flex; align-items: center; justify-content: space-around; padding: 0 8px">
<a href="Main.dc.html" aria-label="Home" style="width: 56px; height: 48px; border-radius: 999px; background: #A6E8F2; display: flex; align-items: center; justify-content: center"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2" stroke-linejoin="round" aria-hidden="true"><path d="M4 10l8-6 8 6v10h-5v-6H9v6H4z"></path></svg></a>
<a href="Revenue.dc.html" aria-label="Revenue" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 17l6-6 4 4 8-8"></path><path d="M15 7h6v6"></path></svg></a>
<a href="Reports.dc.html" aria-label="Reports" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linejoin="round" aria-hidden="true"><path d="M3 7h15a3 3 0 013 3v9H3z"></path><path d="M3 7l12-3v3"></path><circle cx="16" cy="13" r="1.2"></circle></svg></a>
<a href="Integrations.dc.html" aria-label="Settings" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="3"></circle><path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1"></path></svg></a>
</nav>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { msgs: [] }; }
send(q, a) { this.setState({ msgs: this.state.msgs.concat([{ me: true, text: q }, { me: false, text: a }]) }); }
renderVals() {
const me = 'display:flex;justify-content:flex-end';
const bot = 'display:flex;justify-content:flex-start;padding-left:50px';
return {
showChips: this.state.msgs.length === 0,
msgs: this.state.msgs.map((m) => ({
text: m.text,
wrap: m.me ? me : bot,
bubble: m.me ? 'background:#A6E8F2;color:#141414;border-radius:20px 20px 4px 20px;padding:10px 14px;font-size:14px;max-width:260px' : 'background:#2A2A2A;color:#E4E4E4;border-radius:4px 20px 20px 20px;padding:12px 14px;font-size:14px;line-height:1.5;max-width:270px'
})),
askLabor: () => this.send('Hi! Show labor cost', 'Labor cost is at 28% of revenue this week. Open Revenue to see the daily breakdown next to sales.'),
askPlan: () => this.send('Initiate strategy planning', 'Starting a plan with two goals: bring labor cost down and lift average order value. Which one should we tackle first?')
};
}
}
</script>
</body>
</html>
```
### Reports (Reports)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Reports</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
body{margin:0;background:#DCE4DA}
a{color:inherit;text-decoration:none}
button,input{font-family:inherit}
button{cursor:pointer}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; background: #DCE4DA; color: #141414; font-family: Inter, sans-serif; display: flex; flex-direction: column; overflow: hidden; position: relative">
<div style="padding: 56px 16px 0; display: flex; align-items: center; gap: 12px">
<a href="Main.dc.html" aria-label="Back" style="width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"></path></svg></a>
<h1 style="flex: 1; margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 36px; text-transform: uppercase">Reports</h1>
<button style="border: 0; background: #fff; border-radius: 999px; height: 40px; padding: 0 14px; font-size: 13px; display: flex; align-items: center; gap: 8px">all <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M6 9l6 6 6-6"></path></svg></button>
</div>
<div style="height: 250px; margin: 8px 16px 0; display: flex; align-items: center; justify-content: center">
<svg viewBox="0 0 360 250" width="358" height="250" aria-hidden="true">
<g stroke="#141414" stroke-width="3" stroke-linejoin="round" stroke-linecap="round">
<path d="M70 150c-28 4-44-20-30-40-18-14-4-44 20-38 4-26 40-30 50-8 24-12 48 10 36 32 22 10 14 44-12 42-6 20-50 26-64 12z" fill="#E0472E"></path>
<path d="M86 150v40M104 140v50" fill="none"></path>
<path d="M262 120c-22 2-34-16-22-32-12-14 2-36 22-30 6-20 36-18 40 2 20-4 30 18 18 30 14 12 2 34-18 30-8 14-34 14-40 0z" fill="#E0472E"></path>
<path d="M282 118v70" fill="none"></path>
<rect x="118" y="84" width="92" height="104" rx="8" fill="#F6C94C"></rect>
<rect x="132" y="96" width="64" height="40" rx="4" fill="#F4EEDC"></rect>
<circle cx="152" cy="114" r="4" fill="#141414"></circle><circle cx="176" cy="114" r="4" fill="#141414"></circle>
<path d="M156 126q8 6 16 0" fill="none"></path>
<rect x="132" y="146" width="12" height="10" rx="2" fill="#F4EEDC"></rect><rect x="150" y="146" width="12" height="10" rx="2" fill="#E0472E"></rect><rect x="168" y="146" width="12" height="10" rx="2" fill="#F4EEDC"></rect><rect x="186" y="146" width="12" height="10" rx="2" fill="#F4EEDC"></rect>
<rect x="132" y="162" width="12" height="10" rx="2" fill="#F4EEDC"></rect><rect x="150" y="162" width="12" height="10" rx="2" fill="#F4EEDC"></rect><rect x="168" y="162" width="30" height="10" rx="2" fill="#141414"></rect>
<rect x="150" y="66" width="44" height="18" rx="3" fill="#F4EEDC"></rect>
<path d="M158 75h28" fill="none"></path>
<path d="M118 120l-22 20M210 120l20 14" fill="none"></path>
<path d="M140 188l-6 30h-12M188 188l6 30h12" fill="none"></path>
<circle cx="262" cy="170" r="34" fill="#F6C94C"></circle>
<circle cx="252" cy="162" r="4" fill="#141414"></circle><circle cx="270" cy="160" r="4" fill="#141414"></circle>
<path d="M222 176l78-10" stroke-width="5" fill="none"></path>
<circle cx="258" cy="171" r="2" fill="#F4EEDC" stroke="none"></circle>
<path d="M250 204l-4 16h-10M274 204l4 16h10" fill="none"></path>
<path d="M232 154q-10-10-4-20M292 150q12-6 10-20" fill="none"></path>
<path d="M232 110v-18l12-4v18" fill="none"></path><circle cx="228" cy="110" r="5" fill="#141414"></circle><circle cx="240" cy="106" r="5" fill="#141414"></circle>
<path d="M306 92v-16" fill="none"></path><circle cx="302" cy="92" r="5" fill="#141414"></circle>
<path d="M40 228h290" fill="none" stroke-width="2"></path>
</g>
</svg>
</div>
<div style="flex: 1; margin-top: 16px; background: #1B1B1B; color: #fff; border-radius: 32px 32px 0 0; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 0">
<label style="display: flex; align-items: center; gap: 10px; background: #2A2A2A; border-radius: 999px; height: 48px; padding: 0 16px">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#9A9A9A" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"></circle><path d="M20 20l-3.5-3.5"></path></svg>
<span style="position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0)">Search reports</span>
<input placeholder="Search by name or type" value="{{q}}" onInput="{{onQ}}" style="flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 14px">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#9A9A9A" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M4 10v4M8 7v10M12 4v16M16 8v8M20 11v2"></path></svg>
</label>
<div style="font-size: 13px; color: #A8A8A8">{{countLabel}}</div>
<div style="display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0">
<sc-for list="{{items}}" as="r" hint-placeholder-count="3">
<div style="background: #2A2A2A; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px">
<div style="display: flex; gap: 12px; align-items: flex-start">
<div aria-hidden="true" style="{{r.iconStyle}}"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2" stroke-linejoin="round"><path d="M6 3h9l4 4v14H6z"></path><path d="M9 12h7M9 16h5"></path></svg></div>
<div style="flex: 1; min-width: 0">
<h2 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 22px; line-height: 1; text-transform: uppercase">{{r.title}}</h2>
<p style="margin: 4px 0 0; font-size: 13px; color: #B5B5B5; line-height: 1.35">{{r.desc}}</p>
</div>
<button aria-label="Open report" style="width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M7 17L17 7M8 7h9v9"></path></svg></button>
</div>
<div style="display: flex; gap: 6px; padding-left: 56px">
<span style="background: #F6C94C; color: #141414; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500">{{r.tag1}}</span>
<span style="background: #8B85F4; color: #141414; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500">{{r.tag2}}</span>
</div>
</div>
</sc-for>
</div>
</div>
<button aria-label="New report" style="position: absolute; right: 20px; bottom: 28px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #F6C94C; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.4)"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"></path></svg></button>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { q: '' }; }
renderVals() {
const all = [
{ title: 'Prime cost report', desc: 'The Cost of Goods Sold (Food & Beverage Cost) and total labor cost, side by side.', tag1: 'P&L Statement', tag2: 'Management', c: '#F2735A' },
{ title: 'Menu engineering', desc: 'Popularity and profit of every menu item, sorted into stars, puzzles and dogs.', tag1: 'Menu', tag2: 'Management', c: '#A6E8F2' },
{ title: 'Labor cost report', desc: 'Scheduled vs. actual hours and labor as a share of revenue, by shift.', tag1: 'Payroll', tag2: 'Operations', c: '#B5E3C8' }
];
const q = this.state.q.trim().toLowerCase();
const items = all.filter((r) => !q || (r.title + ' ' + r.tag1 + ' ' + r.tag2).toLowerCase().includes(q));
return {
q: this.state.q,
onQ: (e) => this.setState({ q: e.target.value }),
countLabel: q ? items.length + ' reports found' : '101 reports found',
items: items.map((r) => Object.assign({}, r, { iconStyle: 'width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:' + r.c }))
};
}
}
</script>
</body>
</html>
```
### Revenue (Revenue)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Revenue</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
body{margin:0;background:#F07A63}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; background: #F07A63; color: #141414; font-family: Inter, sans-serif; padding: 56px 16px 28px; display: flex; flex-direction: column; gap: 14px; overflow: hidden">
<div style="display: flex; align-items: center; gap: 12px">
<a href="Main.dc.html" aria-label="Back" style="width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"></path></svg></a>
<h1 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 38px; text-transform: uppercase">Revenue</h1>
</div>
<div style="display: flex; gap: 8px">
<button style="flex: 1; border: 0; background: #fff; border-radius: 999px; height: 44px; padding: 0 16px; font-size: 14px; display: flex; align-items: center; justify-content: space-between">this week <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M6 9l6 6 6-6"></path></svg></button>
<button style="flex: 1; border: 0; background: #fff; border-radius: 999px; height: 44px; padding: 0 16px; font-size: 14px; display: flex; align-items: center; justify-content: space-between">USD, $ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M6 9l6 6 6-6"></path></svg></button>
</div>
<div style="background: #F59A86; border-radius: 24px; padding: 6px; display: flex; flex-direction: column; gap: 6px">
<div style="background: #E8604A; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px">
<div style="display: flex; justify-content: space-between; align-items: center">
<span style="font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 20px; text-transform: uppercase">Gross revenue</span>
<span style="background: #141414; color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600">+7,5%</span>
</div>
<div style="font-size: 36px; font-weight: 600; letter-spacing: -0.5px">$156,900.67</div>
</div>
<div style="background: #E8604A; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px">
<div style="display: flex; justify-content: space-between; align-items: center">
<span style="font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 20px; text-transform: uppercase">Avg. order value</span>
<span style="background: #141414; color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600">+2,4%</span>
</div>
<div style="display: flex; align-items: baseline; gap: 12px">
<span style="font-size: 36px; font-weight: 600; letter-spacing: -0.5px">$18.50</span>
<span style="font-size: 12px; line-height: 1.3; color: #3A1A14">Growth vs.<br>Last week</span>
</div>
</div>
</div>
<div style="flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px">
<div style="flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end">
<sc-for list="{{days}}" as="d" hint-placeholder-count="7">
<button onClick="{{d.pick}}" aria-label="{{d.aria}}" style="border: 0; background: transparent; padding: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative">
<sc-if value="{{d.on}}" hint-placeholder-val="{{ false }}">
<span style="position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: #141414; color: #fff; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; z-index: 1">{{d.value}}</span>
</sc-if>
<span style="{{d.barStyle}}"></span>
</button>
</sc-for>
</div>
<div style="display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; text-align: center">
<sc-for list="{{days}}" as="d" hint-placeholder-count="7">
<span style="{{d.labelStyle}}">{{d.day}}</span>
</sc-for>
</div>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { sel: 1 }; }
renderVals() {
const data = [['Mon',19840.20],['Tue',21150.88],['Wed',22410.35],['Thu',20980.14],['Fri',25870.62],['Sat',24312.48],['Sun',22336.00]];
const max = 25870.62;
const fmt = (v) => '$' + v.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
return {
days: data.map((d, i) => {
const on = i === this.state.sel;
const pct = Math.round(38 + (d[1] / max) * 50);
return {
day: d[0], on, value: fmt(d[1]), aria: d[0] + ' revenue ' + fmt(d[1]),
barStyle: 'display:block;width:100%;height:' + pct + '%;border-radius:12px;' + (on ? 'background:#D9F2E4;border:2px solid #141414;box-sizing:border-box' : 'background:repeating-linear-gradient(0deg,#B5E3C8 0 8px,#A3D9BA 8px 10px)'),
labelStyle: 'font-size:12px;font-weight:500;padding:6px 0;border-radius:999px;' + (on ? 'background:#141414;color:#fff' : 'color:#141414'),
pick: () => this.setState({ sel: i })
};
})
};
}
}
</script>
</body>
</html>
```
### Integrations (Integrations)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Integrations</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
body{margin:0;background:#141414}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; background: #141414; color: #fff; font-family: Inter, sans-serif; padding: 56px 16px 28px; display: flex; flex-direction: column; gap: 16px; overflow: hidden">
<div style="display: flex; align-items: center; gap: 12px">
<a href="Main.dc.html" aria-label="Back" style="width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"></path></svg></a>
<h1 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 36px; text-transform: uppercase">Integrations</h1>
</div>
<div style="display: flex; gap: 8px">
<button style="flex: 1; border: 0; background: #fff; color: #141414; border-radius: 999px; height: 44px; padding: 0 16px; font-size: 13px; display: flex; align-items: center; justify-content: space-between">all operations <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M6 9l6 6 6-6"></path></svg></button>
<button style="flex: 1; border: 0; background: #fff; color: #141414; border-radius: 999px; height: 44px; padding: 0 16px; font-size: 13px; display: flex; align-items: center; justify-content: space-between">all experience <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.5" stroke-linecap="round" aria-hidden="true"><path d="M6 9l6 6 6-6"></path></svg></button>
</div>
<div style="flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 18px 4px 0">
<sc-for list="{{apps}}" as="a" hint-placeholder-count="3">
<div style="{{a.cardStyle}}">
<div style="flex: 1; display: flex; flex-direction: column; gap: 14px">
<h2 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; color: #141414">{{a.name}}</h2>
<button onClick="{{a.toggle}}" style="{{a.pillStyle}}"><span style="{{a.dotStyle}}"></span>{{a.status}}</button>
</div>
<div aria-hidden="true" style="width: 72px; height: 72px; border-radius: 20px; background: #1E1E1E; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 28px; color: #fff; flex-shrink: 0">{{a.mono}}</div>
</div>
</sc-for>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { on: { qb: false, xero: true, hb: true } }; }
renderVals() {
const list = [
{ id: 'qb', name: 'QuickBooks', mono: 'qb', c: '#F2735A', rot: -5, ml: 0 },
{ id: 'xero', name: 'Xero', mono: 'xe', c: '#F6C94C', rot: 0, ml: 10 },
{ id: 'hb', name: 'Homebase', mono: 'hb', c: '#A6E8F2', rot: -4, ml: 2 }
];
return {
apps: list.map((a) => {
const on = this.state.on[a.id];
return {
name: a.name, mono: a.mono, status: on ? 'Connected' : 'Unconnected',
cardStyle: 'background:' + a.c + ';border-radius:26px;padding:18px;display:flex;align-items:center;gap:12px;transform:rotate(' + a.rot + 'deg);margin-left:' + a.ml + 'px;box-shadow:0 10px 24px rgba(0,0,0,.35)',
pillStyle: 'align-self:flex-start;border:0;border-radius:999px;padding:8px 14px;min-height:36px;font-size:13px;font-weight:600;display:flex;align-items:center;gap:8px;' + (on ? 'background:#141414;color:#fff' : 'background:rgba(20,20,20,.18);color:#141414'),
dotStyle: 'width:8px;height:8px;border-radius:50%;background:' + (on ? '#B5E3C8' : '#141414'),
toggle: () => this.setState({ on: Object.assign({}, this.state.on, { [a.id]: !on }) })
};
})
};
}
}
</script>
</body>
</html>
```
### Venue categories (Categories)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Categories</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
body{margin:0;background:#7F86F2}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; background: #7F86F2; color: #141414; font-family: Inter, sans-serif; padding: 56px 16px 24px; display: flex; flex-direction: column; gap: 20px; overflow: hidden">
<div style="display: flex; align-items: center; gap: 12px">
<a href="Main.dc.html" aria-label="Back" style="width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"></path></svg></a>
<h1 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 36px; text-transform: uppercase; color: #fff">Categories</h1>
</div>
<div style="flex: 1; min-height: 0; display: flex; flex-direction: column">
<sc-for list="{{tabs}}" as="t" hint-placeholder-count="2">
<button onClick="{{t.pick}}" style="{{t.style}}">{{t.name}}</button>
</sc-for>
<div style="{{cardStyle}}">
<div style="display: flex; align-items: flex-start; justify-content: space-between; gap: 12px">
<h2 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 44px; line-height: 0.9; text-transform: uppercase; white-space: pre-line">{{title}}</h2>
<button aria-label="Open category" style="{{btnStyle}}"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="{{btnIcon}}" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M7 17L17 7M8 7h9v9"></path></svg></button>
</div>
<div style="display: flex; gap: 8px; flex-wrap: wrap">
<span style="background: {{chipBg}}; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px"><span style="width: 8px; height: 8px; border-radius: 50%; background: #E0472E"></span>{{seats}}</span>
<span style="background: {{chipBg}}; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px"><span style="width: 8px; height: 8px; border-radius: 50%; background: #5B55E0"></span>{{workers}}</span>
</div>
<sc-if value="{{isSmall}}" hint-placeholder-val="{{ true }}">
<div style="flex: 1; min-height: 200px; display: flex; align-items: center; justify-content: center">
<svg viewBox="0 0 320 330" style="width: 100%; height: 100%" aria-hidden="true">
<g stroke="#141414" stroke-width="3" stroke-linejoin="round" stroke-linecap="round">
<path d="M60 120c-30-4-36-44-6-52-6-34 40-50 60-24 16-30 66-24 70 8 26-20 70-4 64 30 30 4 34 44 6 50 6 26-30 40-50 22-16 22-58 22-70 0-22 16-60 4-56-22-14 2-24-4-18-12z" fill="#E0472E"></path>
<path d="M110 80c-10-14 6-28 20-18 6-14 30-10 30 6 14-6 26 10 16 22 10 12-6 26-20 18-8 12-30 10-32-4-14 4-24-12-14-24z" fill="#F4EEDC"></path>
<path d="M190 104c-6-10 4-20 14-14 6-10 22-6 22 6 10 2 10 18-2 20-2 10-18 12-22 2-10 2-16-8-12-14z" fill="#F4EEDC"></path>
<rect x="70" y="168" width="180" height="20" fill="#F4EEDC"></rect>
<path d="M60 168l20-28h160l20 28z" fill="#3D5BD9"></path>
<path d="M100 140l-8 28M140 140v28M180 140v28M220 140l8 28" fill="none"></path>
<circle cx="160" cy="214" r="22" fill="#F4EEDC"></circle>
<rect x="140" y="176" width="40" height="22" rx="10" fill="#fff"></rect>
<circle cx="152" cy="212" r="3" fill="#141414"></circle><circle cx="168" cy="212" r="3" fill="#141414"></circle>
<path d="M154 222q6 5 12 0" fill="none"></path>
<rect x="80" y="236" width="160" height="70" fill="#E0472E"></rect>
<rect x="80" y="230" width="160" height="14" fill="#F4EEDC"></rect>
<path d="M126 244c0 20 68 20 68 0" fill="#3D5BD9"></path>
<ellipse cx="110" cy="226" rx="20" ry="6" fill="#141414"></ellipse>
<path d="M130 226l18-10" fill="none"></path>
<path d="M210 214v16M222 220v10" fill="none"></path><rect x="202" y="200" width="28" height="14" rx="4" fill="#F6C94C"></rect>
<path d="M100 262h40M180 262h40M100 280h120" fill="none" stroke="#F4EEDC"></path>
<path d="M70 306h180" fill="none"></path>
</g>
</svg>
</div>
</sc-if>
<sc-if value="{{notSmall}}" hint-placeholder-val="{{ false }}">
<div style="flex: 1; min-height: 200px; border-radius: 20px; border: 2px dashed currentColor; opacity: .7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center">
<svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"></rect><circle cx="9" cy="10" r="2"></circle><path d="M21 17l-5-5-9 8"></path></svg>
<span style="font-size: 13px; font-weight: 600">Illustration pending</span>
<span style="font-size: 12px; max-width: 240px">{{art}}</span>
</div>
</sc-if>
</div>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { sel: 'small' }; }
renderVals() {
const cats = [
{ id: 'high', name: 'High-volume', title: 'High-\nvolume', seats: '100+ seats', workers: '20+ workers', bg: '#F2735A', fg: '#141414', art: 'Busy retro diner kitchen with several cooks' },
{ id: 'local', name: 'Local spot', title: 'Local\nspot', seats: '20–60 seats', workers: '5–15 workers', bg: '#1E1E1E', fg: '#fff', art: 'Cozy neighbourhood café counter' },
{ id: 'small', name: 'Small eatery', title: 'Small\neatery', seats: '< 20 seats', workers: '< 5 workers', bg: '#F6C94C', fg: '#141414', art: 'Retro chef character in a tiny food stall, red smoke clouds' }
];
const cur = cats.find((c) => c.id === this.state.sel);
const rest = cats.filter((c) => c.id !== this.state.sel);
return {
tabs: rest.map((c, i) => ({
name: c.name,
style: 'border:0;width:100%;text-align:left;height:84px;margin-bottom:-28px;padding:16px 20px 0;display:flex;align-items:flex-start;border-radius:26px 26px 0 0;font-family:\'Barlow Condensed\',sans-serif;font-weight:600;font-size:24px;text-transform:uppercase;background:' + c.bg + ';color:' + c.fg + ';margin-left:' + (12 - i * 6) + 'px;margin-right:' + (12 - i * 6) + 'px;box-shadow:0 -4px 12px rgba(0,0,0,.15)',
pick: () => this.setState({ sel: c.id })
})),
isSmall: cur.id === 'small', notSmall: cur.id !== 'small', title: cur.title, chipBg: cur.id === 'local' ? 'rgba(255,255,255,.14)' : 'rgba(255,255,255,.55)', btnIcon: cur.id === 'local' ? '#141414' : '#fff', btnStyle: 'width:48px;height:48px;border-radius:50%;border:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:' + (cur.id === 'local' ? '#fff' : '#141414'), seats: cur.seats, workers: cur.workers, art: cur.art,
cardStyle: 'position:relative;flex:1;min-height:0;border-radius:28px;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 -6px 16px rgba(0,0,0,.18);background:' + cur.bg + ';color:' + cur.fg
};
}
}
</script>
</body>
</html>
```
### Operational timing (Timing)
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Operational Timing</title>
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
body{margin:0;background:#DCE4DA}
a{color:inherit;text-decoration:none}
</style>
</helmet>
<div style="width: 390px; height: 844px; box-sizing: border-box; background: #DCE4DA; color: #141414; font-family: Inter, sans-serif; padding: 56px 16px 32px; display: flex; flex-direction: column; gap: 20px; overflow: hidden">
<div style="display: flex; align-items: flex-start; gap: 12px">
<a href="Main.dc.html" aria-label="Back" style="width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#141414" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"></path></svg></a>
<h1 style="margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 40px; line-height: 0.92; text-transform: uppercase">Operational<br>timing</h1>
</div>
<div style="flex: 1; display: flex; align-items: center; justify-content: center">
<svg viewBox="0 0 300 300" width="340" height="340" role="img" aria-label="{{aria}}">
<circle cx="150" cy="150" r="146" fill="#fff"></circle>
<circle cx="150" cy="150" r="136" fill="none" stroke="#E7ECE6" stroke-width="1"></circle>
<g stroke="#141414" stroke-width="2" stroke-linecap="round">
<path d="M150 14v10M286 150h-10M150 286v-10M14 150h10"></path>
</g>
<g font-family="Inter, sans-serif" font-size="13" fill="#141414" text-anchor="middle">
<text x="150" y="44">12</text><text x="262" y="155">3</text><text x="150" y="268">6</text><text x="38" y="155">9</text>
</g>
<circle cx="150" cy="150" r="62" fill="none" stroke="#DCE4DA" stroke-width="22"></circle>
<circle cx="150" cy="150" r="62" fill="none" stroke="#F2735A" stroke-width="22" stroke-dasharray="{{arc}}" transform="rotate(-90 150 150)"></circle>
<circle cx="150" cy="150" r="34" fill="none" stroke="#141414" stroke-width="8" stroke-dasharray="150 64" transform="rotate(30 150 150)"></circle>
<line x1="150" y1="150" x2="150" y2="92" stroke="#141414" stroke-width="6" stroke-linecap="round" transform="rotate({{hDeg}} 150 150)"></line>
<line x1="150" y1="150" x2="150" y2="58" stroke="#141414" stroke-width="4" stroke-linecap="round" transform="rotate({{mDeg}} 150 150)"></line>
<line x1="150" y1="168" x2="150" y2="40" stroke="#E0472E" stroke-width="2" stroke-linecap="round" transform="rotate({{sDeg}} 150 150)"></line>
<circle cx="150" cy="150" r="6" fill="#E0472E"></circle>
</svg>
</div>
<div style="display: flex; justify-content: space-between; align-items: center">
<span style="background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600">UTC-5</span>
<span style="background: #141414; color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums">{{time}}</span>
</div>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props='{"$preview":{"width":390,"height":844}}'>
class Component extends DCLogic {
constructor(p) { super(p); this.state = { t: Date.now() }; }
componentDidMount() { this.timer = setInterval(() => this.setState({ t: Date.now() }), 1000); }
componentWillUnmount() { clearInterval(this.timer); }
renderVals() {
const d = new Date(this.state.t - 5 * 3600 * 1000);
const h = d.getUTCHours(), m = d.getUTCMinutes(), s = d.getUTCSeconds();
const pad = (n) => String(n).padStart(2, '0');
const circ = 2 * Math.PI * 62;
const shiftDone = Math.min(1, ((h * 60 + m) % 480) / 480);
return {
time: pad(h) + ':' + pad(m) + ':' + pad(s),
aria: 'Clock showing ' + pad(h) + ':' + pad(m) + ' UTC-5',
hDeg: String((h % 12) * 30 + m * 0.5),
mDeg: String(m * 6 + s * 0.1),
sDeg: String(s * 6),
arc: (circ * shiftDone).toFixed(1) + ' ' + circ.toFixed(1)
};
}
}
</script>
</body>
</html>
```SKILL.md
Save as .claude/skills/restaurant-operations-app-ui/SKILL.md
--- name: restaurant-operations-app-ui description: Build the Daily Grind Restaurant Ops mobile app UI in Expo React Native. Use when asked to create a restaurant dashboard app UI or a new screen in this visual style. --- # Daily Grind Restaurant Ops app UI Build this business app UI in an Expo Router project with TypeScript. Reference: https://developermill.com/app-designs/restaurant-operations-app-ui-design ## Visual direction Charcoal pages with coral, periwinkle, butter and mint blocks, condensed Barlow headlines and retro chef illustrations. Keep these signature details: - Weekly capacity pills with a trend chart - AI operations chat with quick replies - Revenue bars that reveal the day total - Integration cards that connect and disconnect ## Set up ```bash npx expo install react-native-svg @expo-google-fonts/barlow-condensed @expo-google-fonts/inter expo-font ``` ## Tokens | Name | Hex | | --- | --- | | Charcoal | `#141414` | | Coral | `#F2735A` | | Periwinkle | `#8B85F4` | | Butter | `#F6C94C` | | Mint | `#B5E3C8` | | Aqua | `#A6E8F2` | - Typefaces: Barlow Condensed, Inter - Text sizes (px): 11, 12, 13, 14, 20, 30, 36, 40 - Corner radii (px): 4, 6, 14, 20, 24, 26 Define these once and reuse them. Do not add new colours. ## Screens 1. **Operations home.** A venue switcher, a labour cost alert with shift timer and a weekly venue capacity card with a chart. 2. **AI operations lead.** A chat with an AI lead that flags issues, quick reply chips and a message bar. 3. **Reports.** An illustration, report search and report cards with tags and open buttons. 4. **Revenue.** Gross revenue and average order value, and a weekly bar chart that shows the selected day total. 5. **Integrations.** Tilted cards for accounting and payroll tools with connect and disconnect pills. 6. **Venue categories.** Stacked folder tabs for venue sizes and a card with seats, staff and an illustration. 7. **Operational timing.** A live analog clock for the venue time zone with a shift progress ring. ## Build rules - Draw each screen on a 390 × 844 artboard and scale it to the device width. - Load each custom font weight by family name with expo-font. Do not set fontWeight with custom fonts. - Draw icons, charts and illustrations with react-native-svg. - Use Pressable with an accessibilityLabel for controls, with at least a 44px target. - Navigate with router.navigate and keep sample data as constants at the top of the file. - Use expo-image with contentFit for photos. ## Done when - All routes are linked and reachable. - Colours, type and radii match the tokens above. - `npx tsc --noEmit` and `npx expo lint` pass. - The layout holds up on small and large phones.
Set up the project
npx create-expo-app@latest restaurant-operations-app --template default cd restaurant-operations-app rm -rf src npx expo install react-native-svg @expo-google-fonts/barlow-condensed @expo-google-fonts/inter expo-font
src/app/_layout.tsx
import {
BarlowCondensed_600SemiBold,
BarlowCondensed_700Bold,
} from '@expo-google-fonts/barlow-condensed';
import {
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_700Bold,
Inter_800ExtraBold,
} from '@expo-google-fonts/inter';
import { useFonts } from 'expo-font';
import { Stack } from 'expo-router';
export default function RootLayout() {
const [fontsLoaded] = useFonts({
BarlowCondensed_600SemiBold,
BarlowCondensed_700Bold,
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_700Bold,
Inter_800ExtraBold,
});
if (!fontsLoaded) return null;
return <Stack screenOptions={{ headerShown: false }} />;
}src/app/index.tsx
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, Text, View } from 'react-native';
import Svg, { Circle, Path } from 'react-native-svg';
import { Screen } from '@/components/screen';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({ sel: 3 });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const data = [
['Mon', '78%'],
['Tue', '92%'],
['Wed', '81%'],
['Thu', '96%'],
['Fri', '90%'],
['Sat', '85%'],
['Sun', '88%'],
];
return {
days: data.map((d, i) => ({
day: d[0],
pct: d[1],
pillBg: i === state.sel ? '#141414' : '#fff',
pillFg: i === state.sel ? '#fff' : '#141414',
pick: () => setState({ sel: i }),
})),
};
}
export default function MainScreen() {
const { days } = useScreen();
return (
<Screen background="#141414" statusBar="light">
<View style={{ paddingTop: 56, paddingBottom: 24, paddingHorizontal: 16, gap: 14, flex: 1 }}>
<View style={{ alignItems: 'center', gap: 12, flexDirection: 'row' }}>
<View
style={{
width: 44,
height: 44,
borderRadius: '50%',
backgroundColor: '#F2735A',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'BarlowCondensed_700Bold',
fontSize: 20,
color: '#141414',
flexShrink: 1,
}}>
H
</Text>
</View>
<Text
style={{
flex: 1,
fontFamily: 'Inter_500Medium',
fontSize: 16,
color: '#fff',
flexShrink: 1,
}}>
Hi, Hanna!
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Search"
style={{
width: 44,
height: 44,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2"
strokeLinecap="round">
<Circle cx="11" cy="11" r="7" />
<Path d="M20 20l-3.5-3.5" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="button"
accessibilityLabel="Notifications"
style={{
width: 44,
height: 44,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#E0472E"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M6 8a6 6 0 0112 0c0 7 3 9 3 9H3s3-2 3-9" />
<Path d="M10.3 21a2 2 0 003.4 0" />
</Svg>
</Pressable>
</View>
<Pressable
accessibilityRole="button"
style={{
alignItems: 'center',
gap: 10,
backgroundColor: '#fff',
borderWidth: 0,
borderRadius: 999,
paddingVertical: 6,
paddingLeft: 16,
paddingRight: 6,
height: 48,
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M3 9l1.5-5h15L21 9" />
<Path d="M3 9h18v2a3 3 0 01-6 0 3 3 0 01-6 0 3 3 0 01-6 0z" />
<Path d="M5 13v7h14v-7" />
</Svg>
<Text
style={{
flex: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 15,
color: '#141414',
textAlign: 'left',
flexShrink: 1,
}}>
The Daily Grind, NY
</Text>
<View
style={{
width: 36,
height: 36,
borderRadius: '50%',
backgroundColor: '#2A2A2A',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M6 9l6 6 6-6" />
</Svg>
</View>
</Pressable>
<View style={{ backgroundColor: '#242424', borderRadius: 24, padding: 16, gap: 10 }}>
<View style={{ alignItems: 'flex-start', gap: 12, flexDirection: 'row' }}>
<View
style={{
width: 44,
height: 44,
borderRadius: 14,
backgroundColor: '#F6C94C',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M12 2l8 4v6c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6z" />
<Path d="M12 8v5M12 16h.01" />
</Svg>
</View>
<Text
style={{
flex: 1,
margin: 0,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 26,
color: '#fff',
lineHeight: 24.7,
textTransform: 'uppercase',
flexShrink: 1,
}}>
Stabilizing{'\n'}labor cost
</Text>
<Pressable
accessibilityRole="link"
accessibilityLabel="Open in AI Operations Lead"
onPress={() => router.navigate('/assistant')}
style={{
width: 47,
height: 47,
borderRadius: '50%',
borderWidth: 1.5,
borderColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2"
strokeLinecap="round">
<Path d="M7 17L17 7M8 7h9v9" />
</Svg>
</Pressable>
</View>
<Text
style={{
margin: 0,
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#C9C9C9',
lineHeight: 19.6,
}}>
{'Approve critical alerts and check Inventory Risk. Shift ends in '}
<Text
style={{
fontFamily: 'Inter_600SemiBold',
color: '#fff',
backgroundColor: '#3A3A3A',
}}>
2:59:12
</Text>
{' hours.'}
</Text>
</View>
<View
style={{
backgroundColor: '#8B85F4',
borderRadius: 28,
paddingTop: 18,
paddingBottom: 16,
paddingHorizontal: 16,
gap: 12,
flex: 1,
minHeight: 0,
}}>
<View
style={{
alignItems: 'flex-start',
justifyContent: 'space-between',
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 30,
color: '#141414',
lineHeight: 28.5,
textTransform: 'uppercase',
}}>
Venue{'\n'}capacity
</Text>
<Pressable
accessibilityRole="button"
style={{
borderWidth: 0,
backgroundColor: '#A9A4F8',
borderRadius: 999,
paddingVertical: 8,
paddingHorizontal: 12,
alignItems: 'center',
gap: 6,
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 13,
color: '#141414',
flexShrink: 1,
}}>
this week
</Text>
<Svg
width="12"
height="12"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M6 9l6 6 6-6" />
</Svg>
</Pressable>
</View>
<View style={{ flexDirection: 'row', gap: 4, flexWrap: 'wrap' }}>
{days.map((d, index) => (
<Pressable
key={index}
accessibilityRole="button"
onPress={d.pick}
style={{
borderWidth: 0,
padding: 0,
alignItems: 'center',
gap: 6,
flexGrow: 1,
flexBasis: '12.3%',
}}>
<Text
style={{
fontFamily: 'Inter_500Medium',
fontSize: 12,
color: '#141414',
textAlign: 'center',
}}>
{d.day}
</Text>
<View
style={{
width: 38,
height: 38,
borderRadius: '50%',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: d.pillBg,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_600SemiBold',
fontSize: 11,
color: d.pillFg,
textAlign: 'center',
flexShrink: 1,
}}>
{d.pct}
</Text>
</View>
</Pressable>
))}
</View>
<Svg
viewBox="0 0 326 130"
preserveAspectRatio="none"
accessibilityRole="image"
accessibilityLabel="Venue capacity trend for the week"
style={{ width: '100%', flex: 1, minHeight: 110 }}>
<Path
d="M0 96 L12 80 L22 92 L34 62 L46 74 L58 50 L70 70 L82 58 L96 30 L108 52 L120 44 L132 72 L146 60 L158 86 L172 66 L186 78 L200 40 L212 60 L224 48 L238 74 L252 64 L266 90 L280 70 L294 84 L310 76 L326 94 L326 130 L0 130 Z"
fill="#E8604A"
/>
<Path
d="M0 96 L12 80 L22 92 L34 62 L46 74 L58 50 L70 70 L82 58 L96 30 L108 52 L120 44 L132 72 L146 60 L158 86 L172 66 L186 78 L200 40 L212 60 L224 48 L238 74 L252 64 L266 90 L280 70 L294 84 L310 76 L326 94"
fill="none"
stroke="#141414"
strokeWidth="1.5"
/>
</Svg>
<View style={{ gap: 6, flexWrap: 'wrap', flexDirection: 'row' }}>
<View
style={{
backgroundColor: '#F2735A',
borderRadius: 999,
paddingVertical: 6,
paddingHorizontal: 10,
alignItems: 'center',
gap: 6,
flexShrink: 1,
flexDirection: 'row',
}}>
<View
style={{ width: 7, height: 7, borderRadius: '50%', backgroundColor: '#141414' }}
/>
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 12,
color: '#141414',
flexShrink: 1,
}}>
Astoria
</Text>
</View>
<View
style={{
backgroundColor: '#A9A4F8',
borderRadius: 999,
paddingVertical: 6,
paddingHorizontal: 10,
alignItems: 'center',
gap: 6,
flexShrink: 1,
flexDirection: 'row',
}}>
<View style={{ width: 7, height: 7, borderRadius: '50%', backgroundColor: '#fff' }} />
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 12,
color: '#141414',
flexShrink: 1,
}}>
Long Island City
</Text>
</View>
<View
style={{
backgroundColor: '#A9A4F8',
borderRadius: 999,
paddingVertical: 6,
paddingHorizontal: 10,
alignItems: 'center',
gap: 6,
flexShrink: 1,
flexDirection: 'row',
}}>
<View
style={{ width: 7, height: 7, borderRadius: '50%', backgroundColor: '#F6C94C' }}
/>
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 12,
color: '#141414',
flexShrink: 1,
}}>
Rego Park
</Text>
</View>
</View>
</View>
<View
style={{
backgroundColor: '#242424',
borderRadius: 999,
height: 64,
alignItems: 'center',
justifyContent: 'space-around',
paddingVertical: 0,
paddingHorizontal: 8,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Home"
onPress={() => router.navigate('/')}
style={{
width: 56,
height: 48,
borderRadius: 999,
backgroundColor: '#8B85F4',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2"
strokeLinejoin="round">
<Path d="M4 10l8-6 8 6v10h-5v-6H9v6H4z" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Revenue"
onPress={() => router.navigate('/revenue')}
style={{
width: 48,
height: 48,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M3 17l6-6 4 4 8-8" />
<Path d="M15 7h6v6" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Reports"
onPress={() => router.navigate('/reports')}
style={{
width: 48,
height: 48,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2"
strokeLinejoin="round">
<Path d="M3 7h15a3 3 0 013 3v9H3z" />
<Path d="M3 7l12-3v3" />
<Circle cx="16" cy="13" r="1.2" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Settings"
onPress={() => router.navigate('/integrations')}
style={{
width: 48,
height: 48,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2">
<Circle cx="12" cy="12" r="3" />
<Path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1" />
</Svg>
</Pressable>
</View>
</View>
</Screen>
);
}src/app/assistant.tsx
import { router } from 'expo-router';
import { useState, Fragment } from 'react';
import { Pressable, ScrollView, Text, TextInput, View } from 'react-native';
import Svg, { Circle, Path, Rect } from 'react-native-svg';
import { Screen } from '@/components/screen';
type ScreenState = { msgs: { me: boolean; text: string }[] };
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<ScreenState>({ msgs: [] });
const setState = (patch: Partial<ScreenState>) =>
setScreenState((current) => ({ ...current, ...patch }));
const send = (q: string, a: string) => {
setState({
msgs: state.msgs.concat([
{ me: true, text: q },
{ me: false, text: a },
]),
});
};
return {
showChips: state.msgs.length === 0,
msgs: state.msgs.map((m) => ({
text: m.text,
me: m.me,
bot: !m.me,
})),
askLabor: () =>
send(
'Hi! Show labor cost',
'Labor cost is at 28% of revenue this week. Open Revenue to see the daily breakdown next to sales.',
),
askPlan: () =>
send(
'Initiate strategy planning',
'Starting a plan with two goals: bring labor cost down and lift average order value. Which one should we tackle first?',
),
};
}
export default function AssistantScreen() {
const { showChips, msgs, askLabor, askPlan } = useScreen();
return (
<Screen background="#141414" statusBar="light">
<View style={{ paddingTop: 56, paddingBottom: 24, paddingHorizontal: 16, gap: 18, flex: 1 }}>
<View
style={{
alignItems: 'flex-start',
justifyContent: 'space-between',
gap: 12,
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 40,
color: '#fff',
lineHeight: 36.8,
textTransform: 'uppercase',
}}>
AI operations{'\n'}lead
</Text>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back to home"
onPress={() => router.navigate('/')}
style={{
width: 47,
height: 47,
borderRadius: '50%',
borderWidth: 1.5,
borderColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2"
strokeLinecap="round">
<Path d="M7 17L17 7M8 7h9v9" />
</Svg>
</Pressable>
</View>
<ScrollView
showsVerticalScrollIndicator={false}
contentContainerStyle={{ gap: 12 }}
style={{ flex: 1, minHeight: 0 }}>
<View style={{ gap: 10, alignItems: 'flex-start', flexDirection: 'row' }}>
<View
style={{
width: 40,
height: 40,
borderRadius: '50%',
backgroundColor: '#F6C94C',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Rect x="5" y="8" width="14" height="11" rx="3" />
<Path d="M12 4v4M9 13h.01M15 13h.01M10 16h4" />
</Svg>
</View>
<Text
style={{
backgroundColor: '#2A2A2A',
borderTopLeftRadius: 4,
borderTopRightRadius: 20,
borderBottomRightRadius: 20,
borderBottomLeftRadius: 20,
padding: 14,
maxWidth: 270,
flexShrink: 1,
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#E4E4E4',
lineHeight: 21,
}}>
{'Hi, Hanna, '}
<Text
style={{
fontFamily: 'Inter_600SemiBold',
color: '#141414',
backgroundColor: '#8B85F4',
}}>
The Daily Grind
</Text>
{
' shows strong revenue, but two flags need attention: AOV is dipping and Labor Cost is '
}
<Text
style={{
fontFamily: 'Inter_600SemiBold',
color: '#141414',
backgroundColor: '#F6C94C',
}}>
28%
</Text>
{". Let's initiate the optimization strategy."}
</Text>
</View>
{msgs.map((m, index) => (
<Fragment key={index}>
{m.me ? (
<View style={{ justifyContent: 'flex-end', flexDirection: 'row' }}>
<Text
style={{
maxWidth: 260,
paddingVertical: 10,
paddingHorizontal: 14,
borderTopLeftRadius: 20,
borderTopRightRadius: 20,
borderBottomRightRadius: 4,
borderBottomLeftRadius: 20,
backgroundColor: '#A6E8F2',
flexShrink: 1,
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#141414',
}}>
{m.text}
</Text>
</View>
) : null}
{m.bot ? (
<View
style={{ justifyContent: 'flex-start', paddingLeft: 50, flexDirection: 'row' }}>
<Text
style={{
maxWidth: 270,
paddingVertical: 12,
paddingHorizontal: 14,
borderTopLeftRadius: 4,
borderTopRightRadius: 20,
borderBottomRightRadius: 20,
borderBottomLeftRadius: 20,
backgroundColor: '#2A2A2A',
flexShrink: 1,
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#E4E4E4',
lineHeight: 21,
}}>
{m.text}
</Text>
</View>
) : null}
</Fragment>
))}
{showChips ? (
<View style={{ alignItems: 'flex-end', gap: 8 }}>
<Pressable
accessibilityRole="button"
onPress={askLabor}
style={{
borderWidth: 0,
backgroundColor: '#A6E8F2',
borderRadius: 999,
paddingVertical: 10,
paddingHorizontal: 16,
minHeight: 44,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'Inter_500Medium',
fontSize: 14,
color: '#141414',
textAlign: 'center',
}}>
Hi! Show labor cost
</Text>
</Pressable>
<Pressable
accessibilityRole="button"
onPress={askPlan}
style={{
borderWidth: 0,
backgroundColor: '#B5E3C8',
borderRadius: 999,
paddingVertical: 10,
paddingHorizontal: 16,
minHeight: 44,
alignItems: 'center',
justifyContent: 'center',
}}>
<Text
style={{
fontFamily: 'Inter_500Medium',
fontSize: 14,
color: '#141414',
textAlign: 'center',
}}>
Initiate strategy planning
</Text>
</Pressable>
</View>
) : null}
</ScrollView>
<View style={{ alignItems: 'center', gap: 10, flexDirection: 'row' }}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Add attachment"
style={{
width: 48,
height: 48,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: '#F2735A',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
flexDirection: 'row',
}}>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M12 5v14M5 12h14" />
</Svg>
</Pressable>
<View
style={{
flex: 1,
alignItems: 'center',
gap: 8,
backgroundColor: '#2A2A2A',
borderRadius: 999,
height: 48,
paddingVertical: 0,
paddingHorizontal: 16,
flexDirection: 'row',
}}>
<TextInput
placeholder="Ask something to start"
placeholderTextColor="#8A8A8A"
style={{
flex: 1,
minWidth: 0,
borderWidth: 0,
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#fff',
}}
/>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#9A9A9A"
strokeWidth="2"
strokeLinecap="round">
<Path d="M4 10v4M8 7v10M12 4v16M16 8v8M20 11v2" />
</Svg>
</View>
</View>
<View
style={{
backgroundColor: '#242424',
borderRadius: 999,
height: 64,
alignItems: 'center',
justifyContent: 'space-around',
paddingVertical: 0,
paddingHorizontal: 8,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Home"
onPress={() => router.navigate('/')}
style={{
width: 56,
height: 48,
borderRadius: 999,
backgroundColor: '#A6E8F2',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2"
strokeLinejoin="round">
<Path d="M4 10l8-6 8 6v10h-5v-6H9v6H4z" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Revenue"
onPress={() => router.navigate('/revenue')}
style={{
width: 48,
height: 48,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M3 17l6-6 4 4 8-8" />
<Path d="M15 7h6v6" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Reports"
onPress={() => router.navigate('/reports')}
style={{
width: 48,
height: 48,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2"
strokeLinejoin="round">
<Path d="M3 7h15a3 3 0 013 3v9H3z" />
<Path d="M3 7l12-3v3" />
<Circle cx="16" cy="13" r="1.2" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="link"
accessibilityLabel="Settings"
onPress={() => router.navigate('/integrations')}
style={{
width: 48,
height: 48,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="22"
height="22"
viewBox="0 0 24 24"
fill="none"
stroke="#fff"
strokeWidth="2">
<Circle cx="12" cy="12" r="3" />
<Path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1" />
</Svg>
</Pressable>
</View>
</View>
</Screen>
);
}src/app/categories.tsx
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, Text, View } from 'react-native';
import Svg, { Circle, Ellipse, G, Path, Rect } from 'react-native-svg';
import { Screen } from '@/components/screen';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({ sel: 'small' });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const cats = [
{
id: 'high',
name: 'High-volume',
title: 'High-\nvolume',
seats: '100+ seats',
workers: '20+ workers',
bg: '#F2735A',
fg: '#141414',
art: 'Busy retro diner kitchen with several cooks',
},
{
id: 'local',
name: 'Local spot',
title: 'Local\nspot',
seats: '20–60 seats',
workers: '5–15 workers',
bg: '#1E1E1E',
fg: '#fff',
art: 'Cozy neighbourhood café counter',
},
{
id: 'small',
name: 'Small eatery',
title: 'Small\neatery',
seats: '< 20 seats',
workers: '< 5 workers',
bg: '#F6C94C',
fg: '#141414',
art: 'Retro chef character in a tiny food stall, red smoke clouds',
},
];
const cur = cats.find((c) => c.id === state.sel) || cats[2];
const rest = cats.filter((c) => c.id !== state.sel);
return {
tabs: rest.map((c, i) => ({
name: c.name,
bg: c.bg,
fg: c.fg,
inset: 12 - i * 6,
pick: () => setState({ sel: c.id }),
})),
isSmall: true,
notSmall: false,
title: cur.title,
chipBg: cur.id === 'local' ? 'rgba(255,255,255,.14)' : 'rgba(255,255,255,.55)',
btnIcon: cur.id === 'local' ? '#141414' : '#fff',
btnBg: cur.id === 'local' ? '#fff' : '#141414',
seats: cur.seats,
workers: cur.workers,
art: cur.art,
cardBg: cur.bg,
cardFg: cur.fg,
};
}
export default function CategoriesScreen() {
const {
tabs,
isSmall,
notSmall,
title,
chipBg,
btnIcon,
btnBg,
seats,
workers,
art,
cardBg,
cardFg,
} = useScreen();
return (
<Screen background="#7F86F2" statusBar="dark">
<View style={{ paddingTop: 56, paddingBottom: 24, paddingHorizontal: 16, gap: 20, flex: 1 }}>
<View style={{ alignItems: 'center', gap: 12, flexDirection: 'row' }}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: '50%',
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M19 12H5M11 6l-6 6 6 6" />
</Svg>
</Pressable>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 36,
color: '#fff',
textTransform: 'uppercase',
}}>
Categories
</Text>
</View>
<View style={{ flex: 1, minHeight: 0 }}>
{tabs.map((t, index) => (
<Pressable
key={index}
accessibilityRole="button"
onPress={t.pick}
style={{
borderWidth: 0,
width: '100%',
height: 84,
marginBottom: -28,
marginLeft: t.inset,
marginRight: t.inset,
paddingTop: 16,
paddingBottom: 0,
paddingHorizontal: 20,
alignItems: 'flex-start',
borderTopLeftRadius: 26,
borderTopRightRadius: 26,
borderBottomRightRadius: 0,
borderBottomLeftRadius: 0,
backgroundColor: t.bg,
boxShadow: '0 -4px 12px rgba(0,0,0,.15)',
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 24,
color: t.fg,
textAlign: 'left',
textTransform: 'uppercase',
flexShrink: 1,
}}>
{t.name}
</Text>
</Pressable>
))}
<View
style={{
flex: 1,
minHeight: 0,
borderRadius: 28,
padding: 20,
gap: 14,
boxShadow: '0 -6px 16px rgba(0,0,0,.18)',
backgroundColor: cardBg,
}}>
<View
style={{
alignItems: 'flex-start',
justifyContent: 'space-between',
gap: 12,
flexDirection: 'row',
}}>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'BarlowCondensed_700Bold',
fontSize: 44,
color: cardFg,
lineHeight: 39.6,
textTransform: 'uppercase',
}}>
{title}
</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel="Open category"
style={{
width: 48,
height: 48,
borderRadius: '50%',
borderWidth: 0,
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
backgroundColor: btnBg,
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke={btnIcon}
strokeWidth="2.2"
strokeLinecap="round">
<Path d="M7 17L17 7M8 7h9v9" />
</Svg>
</Pressable>
</View>
<View style={{ gap: 8, flexWrap: 'wrap', flexDirection: 'row' }}>
<View
style={{
backgroundColor: chipBg,
borderRadius: 999,
paddingVertical: 6,
paddingHorizontal: 12,
alignItems: 'center',
gap: 6,
flexShrink: 1,
flexDirection: 'row',
}}>
<View
style={{ width: 8, height: 8, borderRadius: '50%', backgroundColor: '#E0472E' }}
/>
<Text
style={{
fontFamily: 'Inter_500Medium',
fontSize: 13,
color: cardFg,
flexShrink: 1,
}}>
{seats}
</Text>
</View>
<View
style={{
backgroundColor: chipBg,
borderRadius: 999,
paddingVertical: 6,
paddingHorizontal: 12,
alignItems: 'center',
gap: 6,
flexShrink: 1,
flexDirection: 'row',
}}>
<View
style={{ width: 8, height: 8, borderRadius: '50%', backgroundColor: '#5B55E0' }}
/>
<Text
style={{
fontFamily: 'Inter_500Medium',
fontSize: 13,
color: cardFg,
flexShrink: 1,
}}>
{workers}
</Text>
</View>
</View>
{isSmall ? (
<View
style={{
flex: 1,
minHeight: 200,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg viewBox="0 0 320 330" style={{ width: '100%', height: '100%' }}>
<G stroke="#141414" strokeWidth="3" strokeLinejoin="round" strokeLinecap="round">
<Path
d="M60 120c-30-4-36-44-6-52-6-34 40-50 60-24 16-30 66-24 70 8 26-20 70-4 64 30 30 4 34 44 6 50 6 26-30 40-50 22-16 22-58 22-70 0-22 16-60 4-56-22-14 2-24-4-18-12z"
fill="#E0472E"
/>
<Path
d="M110 80c-10-14 6-28 20-18 6-14 30-10 30 6 14-6 26 10 16 22 10 12-6 26-20 18-8 12-30 10-32-4-14 4-24-12-14-24z"
fill="#F4EEDC"
/>
<Path
d="M190 104c-6-10 4-20 14-14 6-10 22-6 22 6 10 2 10 18-2 20-2 10-18 12-22 2-10 2-16-8-12-14z"
fill="#F4EEDC"
/>
<Rect x="70" y="168" width="180" height="20" fill="#F4EEDC" />
<Path d="M60 168l20-28h160l20 28z" fill="#3D5BD9" />
<Path d="M100 140l-8 28M140 140v28M180 140v28M220 140l8 28" fill="none" />
<Circle cx="160" cy="214" r="22" fill="#F4EEDC" />
<Rect x="140" y="176" width="40" height="22" rx="10" fill="#fff" />
<Circle cx="152" cy="212" r="3" fill="#141414" />
<Circle cx="168" cy="212" r="3" fill="#141414" />
<Path d="M154 222q6 5 12 0" fill="none" />
<Rect x="80" y="236" width="160" height="70" fill="#E0472E" />
<Rect x="80" y="230" width="160" height="14" fill="#F4EEDC" />
<Path d="M126 244c0 20 68 20 68 0" fill="#3D5BD9" />
<Ellipse cx="110" cy="226" rx="20" ry="6" fill="#141414" />
<Path d="M130 226l18-10" fill="none" />
<Path d="M210 214v16M222 220v10" fill="none" />
<Rect x="202" y="200" width="28" height="14" rx="4" fill="#F6C94C" />
<Path d="M100 262h40M180 262h40M100 280h120" fill="none" stroke="#F4EEDC" />
<Path d="M70 306h180" fill="none" />
</G>
</Svg>
</View>
) : null}
{notSmall ? (
<View
style={{
flex: 1,
minHeight: 200,
borderRadius: 20,
borderWidth: 2,
borderColor: 'currentColor',
borderStyle: 'dashed',
opacity: 0.7,
alignItems: 'center',
justifyContent: 'center',
gap: 6,
}}>
<Svg
width="36"
height="36"
viewBox="0 0 24 24"
fill="none"
stroke={cardFg}
strokeWidth="1.6"
strokeLinecap="round"
strokeLinejoin="round">
<Rect x="3" y="4" width="18" height="16" rx="2" />
<Circle cx="9" cy="10" r="2" />
<Path d="M21 17l-5-5-9 8" />
</Svg>
<Text
style={{
fontFamily: 'Inter_600SemiBold',
fontSize: 13,
color: cardFg,
textAlign: 'center',
}}>
Illustration pending
</Text>
<Text
style={{
maxWidth: 240,
fontFamily: 'Inter_400Regular',
fontSize: 12,
color: cardFg,
textAlign: 'center',
}}>
{art}
</Text>
</View>
) : null}
</View>
</View>
</View>
</Screen>
);
}src/app/integrations.tsx
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, Text, View } from 'react-native';
import Svg, { Path } from 'react-native-svg';
import { Screen } from '@/components/screen';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({
on: { qb: false, xero: true, hb: true },
});
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const list = [
{ id: 'qb', name: 'QuickBooks', mono: 'qb', c: '#F2735A', rot: -5, ml: 0 },
{ id: 'xero', name: 'Xero', mono: 'xe', c: '#F6C94C', rot: 0, ml: 10 },
{ id: 'hb', name: 'Homebase', mono: 'hb', c: '#A6E8F2', rot: -4, ml: 2 },
];
return {
apps: list.map((a) => {
const on = state.on[a.id];
return {
name: a.name,
mono: a.mono,
status: on ? 'Connected' : 'Unconnected',
c: a.c,
rot: a.rot + 'deg',
ml: a.ml,
pillBg: on ? '#141414' : 'rgba(20,20,20,.18)',
pillFg: on ? '#fff' : '#141414',
dot: on ? '#B5E3C8' : '#141414',
toggle: () => setState({ on: Object.assign({}, state.on, { [a.id]: !on }) }),
};
}),
};
}
export default function IntegrationsScreen() {
const { apps } = useScreen();
return (
<Screen background="#141414" statusBar="light">
<View style={{ paddingTop: 56, paddingBottom: 28, paddingHorizontal: 16, gap: 16, flex: 1 }}>
<View style={{ alignItems: 'center', gap: 12, flexDirection: 'row' }}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: '50%',
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M19 12H5M11 6l-6 6 6 6" />
</Svg>
</Pressable>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 36,
color: '#fff',
textTransform: 'uppercase',
}}>
Integrations
</Text>
</View>
<View style={{ gap: 8, flexDirection: 'row' }}>
<Pressable
accessibilityRole="button"
style={{
flex: 1,
borderWidth: 0,
backgroundColor: '#fff',
borderRadius: 999,
height: 44,
paddingVertical: 0,
paddingHorizontal: 16,
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 13,
color: '#141414',
flexShrink: 1,
}}>
all operations
</Text>
<Svg
width="12"
height="12"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M6 9l6 6 6-6" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="button"
style={{
flex: 1,
borderWidth: 0,
backgroundColor: '#fff',
borderRadius: 999,
height: 44,
paddingVertical: 0,
paddingHorizontal: 16,
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 13,
color: '#141414',
flexShrink: 1,
}}>
all experience
</Text>
<Svg
width="12"
height="12"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M6 9l6 6 6-6" />
</Svg>
</Pressable>
</View>
<View style={{ flex: 1, gap: 22, paddingTop: 18, paddingBottom: 0, paddingHorizontal: 4 }}>
{apps.map((a, index) => (
<View
key={index}
style={{
backgroundColor: a.c,
borderRadius: 26,
padding: 18,
alignItems: 'center',
gap: 12,
transform: [{ rotate: a.rot }],
marginLeft: a.ml,
boxShadow: '0 10px 24px rgba(0,0,0,.35)',
flexDirection: 'row',
}}>
<View style={{ flex: 1, gap: 14 }}>
<Text
style={{
margin: 0,
fontFamily: 'BarlowCondensed_700Bold',
fontSize: 30,
color: '#141414',
lineHeight: 30,
textTransform: 'uppercase',
}}>
{a.name}
</Text>
<Pressable
accessibilityRole="button"
onPress={a.toggle}
style={{
alignSelf: 'flex-start',
borderWidth: 0,
borderRadius: 999,
paddingVertical: 8,
paddingHorizontal: 14,
minHeight: 36,
alignItems: 'center',
gap: 8,
backgroundColor: a.pillBg,
flexDirection: 'row',
}}>
<View
style={{ width: 8, height: 8, borderRadius: '50%', backgroundColor: a.dot }}
/>
<Text
style={{
fontFamily: 'Inter_600SemiBold',
fontSize: 13,
color: a.pillFg,
flexShrink: 1,
}}>
{a.status}
</Text>
</Pressable>
</View>
<View
style={{
width: 72,
height: 72,
borderRadius: 20,
backgroundColor: '#1E1E1E',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'BarlowCondensed_700Bold',
fontSize: 28,
color: '#fff',
flexShrink: 1,
}}>
{a.mono}
</Text>
</View>
</View>
))}
</View>
</View>
</Screen>
);
}src/app/reports.tsx
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, ScrollView, Text, TextInput, View } from 'react-native';
import Svg, { Circle, G, Path, Rect } from 'react-native-svg';
import { Screen } from '@/components/screen';
import { css } from '@/lib/css';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({ q: '' });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const all = [
{
title: 'Prime cost report',
desc: 'The Cost of Goods Sold (Food & Beverage Cost) and total labor cost, side by side.',
tag1: 'P&L Statement',
tag2: 'Management',
c: '#F2735A',
},
{
title: 'Menu engineering',
desc: 'Popularity and profit of every menu item, sorted into stars, puzzles and dogs.',
tag1: 'Menu',
tag2: 'Management',
c: '#A6E8F2',
},
{
title: 'Labor cost report',
desc: 'Scheduled vs. actual hours and labor as a share of revenue, by shift.',
tag1: 'Payroll',
tag2: 'Operations',
c: '#B5E3C8',
},
];
const q = state.q.trim().toLowerCase();
const items = all.filter(
(r) => !q || (r.title + ' ' + r.tag1 + ' ' + r.tag2).toLowerCase().includes(q),
);
return {
q: state.q,
onQ: (text: string) => setState({ q: text }),
countLabel: q ? items.length + ' reports found' : '101 reports found',
items: items.map((r) =>
Object.assign({}, r, {
iconStyle:
'width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:' +
r.c,
}),
),
};
}
export default function ReportsScreen() {
const { q, onQ, countLabel, items } = useScreen();
return (
<Screen background="#DCE4DA" statusBar="dark">
<View style={{ flex: 1 }}>
<View
style={{
paddingTop: 56,
paddingBottom: 0,
paddingHorizontal: 16,
alignItems: 'center',
gap: 12,
flexDirection: 'row',
}}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: '50%',
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M19 12H5M11 6l-6 6 6 6" />
</Svg>
</Pressable>
<Text
style={{
flex: 1,
margin: 0,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 36,
color: '#141414',
textTransform: 'uppercase',
flexShrink: 1,
}}>
Reports
</Text>
<Pressable
accessibilityRole="button"
style={{
borderWidth: 0,
backgroundColor: '#fff',
borderRadius: 999,
height: 40,
paddingVertical: 0,
paddingHorizontal: 14,
alignItems: 'center',
gap: 8,
flexShrink: 1,
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 13,
color: '#000000',
flexShrink: 1,
}}>
all
</Text>
<Svg
width="12"
height="12"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M6 9l6 6 6-6" />
</Svg>
</Pressable>
</View>
<View
style={{
height: 250,
marginTop: 8,
marginBottom: 0,
marginHorizontal: 16,
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg viewBox="0 0 360 250" width="358" height="250">
<G stroke="#141414" strokeWidth="3" strokeLinejoin="round" strokeLinecap="round">
<Path
d="M70 150c-28 4-44-20-30-40-18-14-4-44 20-38 4-26 40-30 50-8 24-12 48 10 36 32 22 10 14 44-12 42-6 20-50 26-64 12z"
fill="#E0472E"
/>
<Path d="M86 150v40M104 140v50" fill="none" />
<Path
d="M262 120c-22 2-34-16-22-32-12-14 2-36 22-30 6-20 36-18 40 2 20-4 30 18 18 30 14 12 2 34-18 30-8 14-34 14-40 0z"
fill="#E0472E"
/>
<Path d="M282 118v70" fill="none" />
<Rect x="118" y="84" width="92" height="104" rx="8" fill="#F6C94C" />
<Rect x="132" y="96" width="64" height="40" rx="4" fill="#F4EEDC" />
<Circle cx="152" cy="114" r="4" fill="#141414" />
<Circle cx="176" cy="114" r="4" fill="#141414" />
<Path d="M156 126q8 6 16 0" fill="none" />
<Rect x="132" y="146" width="12" height="10" rx="2" fill="#F4EEDC" />
<Rect x="150" y="146" width="12" height="10" rx="2" fill="#E0472E" />
<Rect x="168" y="146" width="12" height="10" rx="2" fill="#F4EEDC" />
<Rect x="186" y="146" width="12" height="10" rx="2" fill="#F4EEDC" />
<Rect x="132" y="162" width="12" height="10" rx="2" fill="#F4EEDC" />
<Rect x="150" y="162" width="12" height="10" rx="2" fill="#F4EEDC" />
<Rect x="168" y="162" width="30" height="10" rx="2" fill="#141414" />
<Rect x="150" y="66" width="44" height="18" rx="3" fill="#F4EEDC" />
<Path d="M158 75h28" fill="none" />
<Path d="M118 120l-22 20M210 120l20 14" fill="none" />
<Path d="M140 188l-6 30h-12M188 188l6 30h12" fill="none" />
<Circle cx="262" cy="170" r="34" fill="#F6C94C" />
<Circle cx="252" cy="162" r="4" fill="#141414" />
<Circle cx="270" cy="160" r="4" fill="#141414" />
<Path d="M222 176l78-10" strokeWidth="5" fill="none" />
<Circle cx="258" cy="171" r="2" fill="#F4EEDC" stroke="none" />
<Path d="M250 204l-4 16h-10M274 204l4 16h10" fill="none" />
<Path d="M232 154q-10-10-4-20M292 150q12-6 10-20" fill="none" />
<Path d="M232 110v-18l12-4v18" fill="none" />
<Circle cx="228" cy="110" r="5" fill="#141414" />
<Circle cx="240" cy="106" r="5" fill="#141414" />
<Path d="M306 92v-16" fill="none" />
<Circle cx="302" cy="92" r="5" fill="#141414" />
<Path d="M40 228h290" fill="none" strokeWidth="2" />
</G>
</Svg>
</View>
<View
style={{
flex: 1,
marginTop: 16,
backgroundColor: '#1B1B1B',
borderTopLeftRadius: 32,
borderTopRightRadius: 32,
borderBottomRightRadius: 0,
borderBottomLeftRadius: 0,
paddingTop: 18,
paddingBottom: 24,
paddingHorizontal: 16,
gap: 14,
minHeight: 0,
}}>
<View
style={{
alignItems: 'center',
gap: 10,
backgroundColor: '#2A2A2A',
borderRadius: 999,
height: 48,
paddingVertical: 0,
paddingHorizontal: 16,
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#9A9A9A"
strokeWidth="2"
strokeLinecap="round">
<Circle cx="11" cy="11" r="7" />
<Path d="M20 20l-3.5-3.5" />
</Svg>
<TextInput
value={q}
onChangeText={onQ}
placeholder="Search by name or type"
placeholderTextColor="#8A8A8A"
style={{
flex: 1,
minWidth: 0,
borderWidth: 0,
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#fff',
}}
/>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#9A9A9A"
strokeWidth="2"
strokeLinecap="round">
<Path d="M4 10v4M8 7v10M12 4v16M16 8v8M20 11v2" />
</Svg>
</View>
<Text style={{ fontFamily: 'Inter_400Regular', fontSize: 13, color: '#A8A8A8' }}>
{countLabel}
</Text>
<ScrollView
showsVerticalScrollIndicator={false}
contentContainerStyle={{ gap: 10 }}
style={{ minHeight: 0 }}>
{items.map((r, index) => (
<View
key={index}
style={{ backgroundColor: '#2A2A2A', borderRadius: 20, padding: 14, gap: 10 }}>
<View style={{ gap: 12, alignItems: 'flex-start', flexDirection: 'row' }}>
<View style={{ flexShrink: 1, ...css(r.iconStyle) }}>
<Svg
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2"
strokeLinejoin="round">
<Path d="M6 3h9l4 4v14H6z" />
<Path d="M9 12h7M9 16h5" />
</Svg>
</View>
<View style={{ flex: 1, minWidth: 0 }}>
<Text
style={{
margin: 0,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 22,
color: '#fff',
lineHeight: 22,
textTransform: 'uppercase',
}}>
{r.title}
</Text>
<Text
style={{
marginTop: 4,
marginBottom: 0,
marginHorizontal: 0,
fontFamily: 'Inter_400Regular',
fontSize: 13,
color: '#B5B5B5',
lineHeight: 17.55,
}}>
{r.desc}
</Text>
</View>
<Pressable
accessibilityRole="button"
accessibilityLabel="Open report"
style={{
width: 40,
height: 40,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
flexDirection: 'row',
}}>
<Svg
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.2"
strokeLinecap="round">
<Path d="M7 17L17 7M8 7h9v9" />
</Svg>
</Pressable>
</View>
<View style={{ gap: 6, paddingLeft: 56, flexDirection: 'row' }}>
<Text
style={{
backgroundColor: '#F6C94C',
borderRadius: 999,
paddingVertical: 4,
paddingHorizontal: 10,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 12,
color: '#141414',
}}>
{r.tag1}
</Text>
<Text
style={{
backgroundColor: '#8B85F4',
borderRadius: 999,
paddingVertical: 4,
paddingHorizontal: 10,
flexShrink: 1,
fontFamily: 'Inter_500Medium',
fontSize: 12,
color: '#141414',
}}>
{r.tag2}
</Text>
</View>
</View>
))}
</ScrollView>
</View>
<Pressable
accessibilityRole="button"
accessibilityLabel="New report"
style={{
position: 'absolute',
right: 20,
bottom: 28,
width: 56,
height: 56,
borderRadius: '50%',
borderWidth: 0,
backgroundColor: '#F6C94C',
alignItems: 'center',
justifyContent: 'center',
boxShadow: '0 6px 16px rgba(0,0,0,.4)',
flexDirection: 'row',
}}>
<Svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M12 5v14M5 12h14" />
</Svg>
</Pressable>
</View>
</Screen>
);
}src/app/revenue.tsx
import { router } from 'expo-router';
import { useState } from 'react';
import { Pressable, Text, View } from 'react-native';
import Svg, { Path } from 'react-native-svg';
import { Screen } from '@/components/screen';
// Screen state, and the values the layout below reads from it.
function useScreen() {
const [state, setScreenState] = useState<Record<string, any>>({ sel: 1 });
const setState = (patch: Record<string, any>) =>
setScreenState((current) => ({ ...current, ...patch }));
const data = [
['Mon', 19840.2],
['Tue', 21150.88],
['Wed', 22410.35],
['Thu', 20980.14],
['Fri', 25870.62],
['Sat', 24312.48],
['Sun', 22336.0],
];
const max = 25870.62;
const fmt = (v: any) =>
'$' + v.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
return {
days: data.map((d, i) => {
const on = i === state.sel;
const pct = Math.round(38 + (Number(d[1]) / max) * 50);
return {
day: d[0],
on,
value: fmt(d[1]),
aria: d[0] + ' revenue ' + fmt(d[1]),
height: pct + '%',
barBg: on ? '#D9F2E4' : '#B5E3C8',
barBorder: on ? 2 : 0,
labelBg: on ? '#141414' : 'transparent',
labelFg: on ? '#fff' : '#141414',
pick: () => setState({ sel: i }),
};
}),
};
}
export default function RevenueScreen() {
const { days } = useScreen();
return (
<Screen background="#F07A63" statusBar="dark">
<View style={{ paddingTop: 56, paddingBottom: 28, paddingHorizontal: 16, gap: 14, flex: 1 }}>
<View style={{ alignItems: 'center', gap: 12, flexDirection: 'row' }}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: '50%',
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M19 12H5M11 6l-6 6 6 6" />
</Svg>
</Pressable>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 38,
color: '#141414',
textTransform: 'uppercase',
}}>
Revenue
</Text>
</View>
<View style={{ gap: 8, flexDirection: 'row' }}>
<Pressable
accessibilityRole="button"
style={{
flex: 1,
borderWidth: 0,
backgroundColor: '#fff',
borderRadius: 999,
height: 44,
paddingVertical: 0,
paddingHorizontal: 16,
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#000000',
flexShrink: 1,
}}>
this week
</Text>
<Svg
width="12"
height="12"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M6 9l6 6 6-6" />
</Svg>
</Pressable>
<Pressable
accessibilityRole="button"
style={{
flex: 1,
borderWidth: 0,
backgroundColor: '#fff',
borderRadius: 999,
height: 44,
paddingVertical: 0,
paddingHorizontal: 16,
alignItems: 'center',
justifyContent: 'space-between',
flexDirection: 'row',
}}>
<Text
style={{
fontFamily: 'Inter_400Regular',
fontSize: 14,
color: '#000000',
flexShrink: 1,
}}>
USD, $
</Text>
<Svg
width="12"
height="12"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.5"
strokeLinecap="round">
<Path d="M6 9l6 6 6-6" />
</Svg>
</Pressable>
</View>
<View style={{ backgroundColor: '#F59A86', borderRadius: 24, padding: 6, gap: 6 }}>
<View
style={{
backgroundColor: '#E8604A',
borderRadius: 20,
paddingVertical: 14,
paddingHorizontal: 16,
gap: 6,
}}>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
flexDirection: 'row',
}}>
<Text
style={{
flexShrink: 1,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 20,
color: '#141414',
textTransform: 'uppercase',
}}>
Gross revenue
</Text>
<Text
style={{
backgroundColor: '#141414',
borderRadius: 999,
paddingVertical: 3,
paddingHorizontal: 9,
flexShrink: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 12,
color: '#fff',
}}>
+7,5%
</Text>
</View>
<Text
style={{
fontFamily: 'Inter_600SemiBold',
fontSize: 36,
color: '#141414',
letterSpacing: -0.5,
}}>
$156,900.67
</Text>
</View>
<View
style={{
backgroundColor: '#E8604A',
borderRadius: 20,
paddingVertical: 14,
paddingHorizontal: 16,
gap: 6,
}}>
<View
style={{
justifyContent: 'space-between',
alignItems: 'center',
flexDirection: 'row',
}}>
<Text
style={{
flexShrink: 1,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 20,
color: '#141414',
textTransform: 'uppercase',
}}>
Avg. order value
</Text>
<Text
style={{
backgroundColor: '#141414',
borderRadius: 999,
paddingVertical: 3,
paddingHorizontal: 9,
flexShrink: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 12,
color: '#fff',
}}>
+2,4%
</Text>
</View>
<View style={{ alignItems: 'baseline', gap: 12, flexDirection: 'row' }}>
<Text
style={{
flexShrink: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 36,
color: '#141414',
letterSpacing: -0.5,
}}>
$18.50
</Text>
<Text
style={{
flexShrink: 1,
fontFamily: 'Inter_400Regular',
fontSize: 12,
color: '#3A1A14',
lineHeight: 15.6,
}}>
Growth vs.{'\n'}Last week
</Text>
</View>
</View>
</View>
<View style={{ flex: 1, minHeight: 0, gap: 10 }}>
<View
style={{
flex: 1,
flexDirection: 'row',
gap: 8,
alignItems: 'flex-end',
flexWrap: 'wrap',
}}>
{days.map((d, index) => (
<Pressable
key={index}
accessibilityRole="button"
accessibilityLabel={d.aria}
onPress={d.pick}
style={{
borderWidth: 0,
padding: 0,
height: '100%',
justifyContent: 'flex-end',
alignItems: 'center',
flexGrow: 1,
flexBasis: '11.3%',
}}>
{d.on ? (
<Text
style={{
position: 'absolute',
top: 0,
left: '50%',
marginLeft: -50,
width: 100,
backgroundColor: '#141414',
borderRadius: 999,
paddingVertical: 6,
paddingHorizontal: 10,
zIndex: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 12,
color: '#fff',
textAlign: 'center',
}}>
{d.value}
</Text>
) : null}
<View
style={{
width: '100%',
height: d.height,
borderRadius: 12,
backgroundColor: d.barBg,
borderWidth: d.barBorder,
borderStyle: 'solid',
borderColor: '#141414',
}}
/>
</Pressable>
))}
</View>
<View style={{ flexDirection: 'row', gap: 8, flexWrap: 'wrap' }}>
{days.map((d, index) => (
<Text
key={index}
style={{
paddingVertical: 6,
paddingHorizontal: 0,
borderRadius: 999,
backgroundColor: d.labelBg,
flexGrow: 1,
flexBasis: '11.3%',
fontFamily: 'Inter_500Medium',
fontSize: 12,
color: d.labelFg,
textAlign: 'center',
}}>
{d.day}
</Text>
))}
</View>
</View>
</View>
</Screen>
);
}src/app/timing.tsx
import { router } from 'expo-router';
import { useEffect, useState } from 'react';
import { Pressable, Text, View } from 'react-native';
import Svg, { Circle, G, Line, Path, Text as SvgText } from 'react-native-svg';
import { Screen } from '@/components/screen';
// A live clock for the venue's time zone (UTC-5) that ticks every second.
function useScreen() {
const [now, setNow] = useState(() => Date.now());
useEffect(() => {
const timer = setInterval(() => setNow(Date.now()), 1000);
return () => clearInterval(timer);
}, []);
const d = new Date(now - 5 * 3600 * 1000);
const h = d.getUTCHours();
const m = d.getUTCMinutes();
const s = d.getUTCSeconds();
const pad = (n: number) => String(n).padStart(2, '0');
const circ = 2 * Math.PI * 62;
const shiftDone = Math.min(1, ((h * 60 + m) % 480) / 480);
return {
time: pad(h) + ':' + pad(m) + ':' + pad(s),
aria: 'Clock showing ' + pad(h) + ':' + pad(m) + ' UTC-5',
hDeg: String((h % 12) * 30 + m * 0.5),
mDeg: String(m * 6 + s * 0.1),
sDeg: String(s * 6),
arc: (circ * shiftDone).toFixed(1) + ' ' + circ.toFixed(1),
};
}
export default function TimingScreen() {
const { time, aria, hDeg, mDeg, sDeg, arc } = useScreen();
return (
<Screen background="#DCE4DA" statusBar="dark">
<View style={{ paddingTop: 56, paddingBottom: 32, paddingHorizontal: 16, gap: 20, flex: 1 }}>
<View style={{ alignItems: 'flex-start', gap: 12, flexDirection: 'row' }}>
<Pressable
accessibilityRole="link"
accessibilityLabel="Back"
onPress={() => router.navigate('/')}
style={{
width: 44,
height: 44,
borderRadius: '50%',
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0,
flexDirection: 'row',
}}>
<Svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#141414"
strokeWidth="2.2"
strokeLinecap="round"
strokeLinejoin="round">
<Path d="M19 12H5M11 6l-6 6 6 6" />
</Svg>
</Pressable>
<Text
style={{
margin: 0,
flexShrink: 1,
fontFamily: 'BarlowCondensed_600SemiBold',
fontSize: 40,
color: '#141414',
lineHeight: 36.8,
textTransform: 'uppercase',
}}>
Operational{'\n'}timing
</Text>
</View>
<View
style={{ flex: 1, alignItems: 'center', justifyContent: 'center', flexDirection: 'row' }}>
<Svg
viewBox="0 0 300 300"
width="340"
height="340"
accessibilityRole="image"
accessibilityLabel={aria}>
<Circle cx="150" cy="150" r="146" fill="#fff" />
<Circle cx="150" cy="150" r="136" fill="none" stroke="#E7ECE6" strokeWidth="1" />
<G stroke="#141414" strokeWidth="2" strokeLinecap="round">
<Path d="M150 14v10M286 150h-10M150 286v-10M14 150h10" />
</G>
<G fontFamily="Inter_400Regular" fontSize="13" fill="#141414" textAnchor="middle">
<SvgText x="150" y="44">
12
</SvgText>
<SvgText x="262" y="155">
3
</SvgText>
<SvgText x="150" y="268">
6
</SvgText>
<SvgText x="38" y="155">
9
</SvgText>
</G>
<Circle cx="150" cy="150" r="62" fill="none" stroke="#DCE4DA" strokeWidth="22" />
<Circle
cx="150"
cy="150"
r="62"
fill="none"
stroke="#F2735A"
strokeWidth="22"
strokeDasharray={arc}
transform="rotate(-90 150 150)"
/>
<Circle
cx="150"
cy="150"
r="34"
fill="none"
stroke="#141414"
strokeWidth="8"
strokeDasharray="150 64"
transform="rotate(30 150 150)"
/>
<Line
x1="150"
y1="150"
x2="150"
y2="92"
stroke="#141414"
strokeWidth="6"
strokeLinecap="round"
transform={`rotate(${hDeg} 150 150)`}
/>
<Line
x1="150"
y1="150"
x2="150"
y2="58"
stroke="#141414"
strokeWidth="4"
strokeLinecap="round"
transform={`rotate(${mDeg} 150 150)`}
/>
<Line
x1="150"
y1="168"
x2="150"
y2="40"
stroke="#E0472E"
strokeWidth="2"
strokeLinecap="round"
transform={`rotate(${sDeg} 150 150)`}
/>
<Circle cx="150" cy="150" r="6" fill="#E0472E" />
</Svg>
</View>
<View
style={{ justifyContent: 'space-between', alignItems: 'center', flexDirection: 'row' }}>
<Text
style={{
backgroundColor: '#fff',
borderRadius: 999,
paddingVertical: 8,
paddingHorizontal: 14,
flexShrink: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 13,
color: '#141414',
}}>
UTC-5
</Text>
<Text
style={{
backgroundColor: '#141414',
borderRadius: 999,
paddingVertical: 8,
paddingHorizontal: 14,
flexShrink: 1,
fontFamily: 'Inter_600SemiBold',
fontSize: 13,
color: '#fff',
}}>
{time}
</Text>
</View>
</View>
</Screen>
);
}src/components/screen.tsx
import { StatusBar } from 'expo-status-bar';
import type { ReactNode } from 'react';
import { ScrollView, useWindowDimensions, View } from 'react-native';
// Every screen is drawn on a 390 wide artboard, then scaled to the device width.
const ARTBOARD_WIDTH = 390;
type Props = {
background: string;
statusBar: 'light' | 'dark';
height?: number;
children: ReactNode;
};
export function Screen({ background, statusBar, height: artboardHeight = 844, children }: Props) {
const { width, height } = useWindowDimensions();
const scale = width / ARTBOARD_WIDTH;
return (
<ScrollView
bounces={false}
showsVerticalScrollIndicator={false}
style={{ flex: 1, backgroundColor: background }}
contentContainerStyle={{ height: Math.max(artboardHeight * scale, height) }}>
<StatusBar style={statusBar} />
<View
style={{
width: ARTBOARD_WIDTH,
height: artboardHeight,
overflow: 'hidden',
transformOrigin: 'left top',
transform: [{ scale }],
}}>
{children}
</View>
</ScrollView>
);
}src/lib/css.ts
import type { TextStyle, ViewStyle } from 'react-native';
// A few styles change with state, so they are kept as short CSS strings from the design.
const FACES: Record<number, string> = {
400: 'Inter_400Regular',
500: 'Inter_500Medium',
600: 'Inter_600SemiBold',
700: 'Inter_700Bold',
800: 'Inter_800ExtraBold',
};
const px = (value: string) => (value.endsWith('%') ? (value as `${number}%`) : parseFloat(value));
function declarations(source: string) {
return source
.split(';')
.map((rule) => rule.split(':').map((part) => part.trim()))
.filter(([name, value]) => name && value);
}
export function css(source: string): ViewStyle {
const style: Record<string, unknown> = {};
for (const [name, ...rest] of declarations(source)) {
const value = rest.join(':');
if (name === 'background' || name === 'background-color') {
style.backgroundColor = value;
} else if (name === 'border') {
const [width, , ...color] = value.split(' ');
if (value === 'none' || value === '0') style.borderWidth = 0;
else {
style.borderWidth = parseFloat(width);
style.borderColor = color.join(' ');
}
} else if (name === 'display' && value === 'flex') {
style.flexDirection = style.flexDirection ?? 'row';
} else if (name === 'flex-direction') {
style.flexDirection = value;
} else if (name === 'align-items') {
style.alignItems = value;
} else if (name === 'justify-content') {
style.justifyContent = value;
} else if (name === 'box-shadow') {
style.boxShadow = value;
} else if (name === 'position') {
style.position = value === 'absolute' ? 'absolute' : 'relative';
} else if (name === 'opacity') {
style.opacity = parseFloat(value);
} else if (
name === 'gap' ||
name === 'width' ||
name === 'height' ||
name === 'left' ||
name === 'top'
) {
style[name] = px(value);
} else if (name === 'border-radius') {
style.borderRadius = px(value);
} else if (name === 'padding') {
const [vertical, horizontal = vertical] = value.split(' ');
style.paddingVertical = px(vertical);
style.paddingHorizontal = px(horizontal);
} else if (name === 'white-space' && value === 'nowrap') {
style.flexShrink = 0;
} else if (name === 'flex-shrink') {
style.flexShrink = parseFloat(value);
} else if (name === 'flex') {
const [grow, shrink, basis] = value.split(' ');
if (value === 'none') {
style.flexGrow = 0;
style.flexShrink = 0;
} else if (shrink === undefined) {
style.flex = parseFloat(grow);
} else {
style.flexGrow = parseFloat(grow);
style.flexShrink = parseFloat(shrink);
if (basis && basis !== 'auto') style.flexBasis = px(basis);
}
}
}
return style as ViewStyle;
}
export function cssText(source: string): TextStyle {
const style: Record<string, unknown> = {};
for (const [name, value] of declarations(source)) {
if (name === 'color') style.color = value;
if (name === 'font-size') style.fontSize = parseFloat(value);
if (name === 'font-weight' && FACES[Number(value)]) style.fontFamily = FACES[Number(value)];
if (name === 'text-decoration' && value.startsWith('line-through')) {
style.textDecorationLine = 'line-through';
}
}
return style as TextStyle;
}About this design
Six more screens cover an AI operations chat, searchable reports, revenue by day, accounting and payroll integrations, venue categories and a live shift clock. Most controls work, so it is a strong base for a restaurant or retail dashboard.
Charcoal pages with coral, periwinkle, butter and mint blocks, condensed Barlow headlines and retro chef illustrations.
- Weekly capacity pills with a trend chart
- AI operations chat with quick replies
- Revenue bars that reveal the day total
- Integration cards that connect and disconnect
Colour palette
Charcoal
#141414
Coral
#F2735A
Periwinkle
#8B85F4
Butter
#F6C94C
Mint
#B5E3C8
Aqua
#A6E8F2
How to use this design
- 01
Pick what to copy
Copy the Daily Grind Restaurant Ops artifact, skill or code from this page.
- 02
Run it or generate it
Paste the code into a new Expo app and start it, or give the skill to your AI coding agent.
- 03
Make it yours
Replace the demo images and sample content, then connect your own data.
Frequently asked questions
What is interactive in this design?
Day pills, revenue bars, integration toggles, the category tabs, report search and the chat quick replies all respond, and the timing clock ticks every second.
Is the AI chat connected to a model?
No. The replies are sample text. Connect the send action to your own AI or analytics API.
Can it work for retail or cafes?
Yes. The cards hold any metric, so cafes, shops and gyms can reuse the same screens.
Is the Daily Grind Restaurant Ops design free to use?
Yes. The design, skill and Expo code are free and MIT licensed, including for commercial apps. Replace the demo images and sample content with your own before you ship.
What is the difference between the artifact, skill and code?
The artifact is the full design: tokens, screens and source. The skill is a SKILL.md that teaches an AI coding agent to build the UI. The code is the finished Expo app you can paste in and run.
Which Expo version does the code use?
It targets Expo SDK 58 with Expo Router and TypeScript. It uses packages installed through npx expo install, with no custom native code.



