Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions src/apps/Office/OfficeHub.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,69 @@
min-width: min(200px, 100%);
overflow-wrap: anywhere;
}

.office-hub.app-design {
padding: 24px;
}
.office-hub__create article {
padding: 20px;
border-radius: 18px;
background: linear-gradient(
145deg,
color-mix(in srgb, var(--card-color) 15%, var(--color-surface)),
var(--color-surface)
);
border: 1px solid
color-mix(in srgb, var(--card-color) 35%, var(--color-border));
box-shadow: 0 8px 24px #0001;
}
.office-hub__create article:nth-child(1) {
--card-color: #4788ed;
}
.office-hub__create article:nth-child(2) {
--card-color: #eb8751;
}
.office-hub__create article:nth-child(3) {
--card-color: #2cab82;
}
.office-hub__create h2 {
margin: 0 0 20px;
font-size: 23px;
letter-spacing: -0.04em;
border-left: 4px solid var(--card-color);
padding-left: 12px;
}
.office-hub__create button {
width: 100%;
text-align: left;
font-size: 12px;
}
.office-hub__create button:first-of-type {
font-weight: 650;
background: color-mix(in srgb, var(--card-color) 15%, var(--color-surface));
}
.office-hub__tools {
margin: 24px 0 16px;
}
.office-hub__files {
border: 1px solid var(--color-border);
border-radius: 16px;
background: var(--color-surface);
overflow: hidden;
}
.office-hub__files li {
padding: 12px;
}
.office-hub__open {
border-color: transparent !important;
gap: 5px;
}
.office-hub__open span {
font-size: 12px;
color: var(--color-text-dim);
}
@media (max-width: 600px) {
.office-hub.app-design {
padding: 14px;
}
}
11 changes: 9 additions & 2 deletions src/apps/Office/OfficeHub.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { AppHeading } from "../shared/AppHeading";
import { PanelsTopLeft } from "lucide-react";
import { useRef, useState } from "react";
import type { AppProps } from "../../types";
import { useFileSystemStore } from "../../stores/useFileSystemStore";
Expand Down Expand Up @@ -25,8 +27,13 @@ export function OfficeHub(_props: AppProps) {
const names = { writer: "Writer", slides: "Slides", sheets: "Sheets" };

return (
<section className="office-hub" aria-label="Office">
<h1>Office</h1>
<section className="office-hub app-design" aria-label="Office">
<AppHeading
icon={PanelsTopLeft}
title="Office"
subtitle="A PLACE FOR YOUR IDEAS"
/>

<div className="office-hub__create">
{(["writer", "slides", "sheets"] as const).map((kind) => (
<article key={kind}>
Expand Down
Loading