Skip to content

Commit

Permalink
tweak the metadata and ui
Browse files Browse the repository at this point in the history
  • Loading branch information
nmsimons committed Sep 24, 2024
1 parent 70f60b7 commit b8968a1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 58 deletions.
70 changes: 20 additions & 50 deletions src/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,6 @@ video {
}
}

.invisible {
visibility: hidden;
}

.absolute {
position: absolute;
}
Expand Down Expand Up @@ -649,6 +645,18 @@ video {
top: 0px;
}

.bottom-16 {
bottom: 4rem;
}

.top-16 {
top: 4rem;
}

.top-4 {
top: 1rem;
}

.z-0 {
z-index: 0;
}
Expand Down Expand Up @@ -681,20 +689,11 @@ video {
margin: auto;
}

.m-8 {
margin: 2rem;
}

.mx-auto {
margin-left: auto;
margin-right: auto;
}

.my-2 {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}

.mb-2 {
margin-bottom: 0.5rem;
}
Expand Down Expand Up @@ -764,6 +763,10 @@ video {
width: 0px;
}

.w-20 {
width: 5rem;
}

.w-6 {
width: 1.5rem;
}
Expand Down Expand Up @@ -793,10 +796,6 @@ video {
width: 100%;
}

.w-20 {
width: 5rem;
}

.min-w-72 {
min-width: 18rem;
}
Expand Down Expand Up @@ -898,14 +897,14 @@ video {
justify-content: space-between;
}

.gap-4 {
gap: 1rem;
}

.gap-2 {
gap: 0.5rem;
}

.gap-4 {
gap: 1rem;
}

.overflow-auto {
overflow: auto;
}
Expand Down Expand Up @@ -952,10 +951,6 @@ video {
border-width: 4px;
}

.border-8 {
border-width: 8px;
}

.border-l-4 {
border-left-width: 4px;
}
Expand Down Expand Up @@ -1006,11 +1001,6 @@ video {
background-color: rgb(191 219 254 / var(--tw-bg-opacity));
}

.bg-blue-300 {
--tw-bg-opacity: 1;
background-color: rgb(147 197 253 / var(--tw-bg-opacity));
}

.bg-blue-500 {
--tw-bg-opacity: 1;
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
Expand Down Expand Up @@ -1082,10 +1072,6 @@ video {
padding: 1rem;
}

.p-8 {
padding: 2rem;
}

.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
Expand Down Expand Up @@ -1219,22 +1205,6 @@ video {
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline-dashed {
outline-style: dashed;
}

.outline-8 {
outline-width: 8px;
}

.outline-offset-0 {
outline-offset: 0px;
}

.outline-black {
outline-color: #000;
}

.drop-shadow-xl {
--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08));
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
Expand Down
2 changes: 1 addition & 1 deletion src/react/canvas_ux.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function ConferenceView(props: {
<div className="flex h-full w-fit p-4">
<SessionsView
sessions={props.conference.unscheduled.sessions}
title=""
title={props.conference.name}
{...props}
/>
</div>
Expand Down
26 changes: 19 additions & 7 deletions src/schema/app_schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export class Session extends sf.object(
{
metadata: {
description:
"A session object that represents a session, workshop, panel, or keynote. 'sessionType' must be one of four possible types: 'session', 'workshop', 'panel', or 'keynote'.",
"A session object that represents a session, workshop, panel, or keynote." +
"'sessionType' must be one of four possible types: 'session', 'workshop', 'panel', or 'keynote'." +
"The session should be related to the conference name.",
},
},
) {
Expand Down Expand Up @@ -148,12 +150,22 @@ export class Days extends sf.array("Days", Day) {
}
}

export class Conference extends sf.object("Conference", {
name: sf.string,
unscheduled: Unscheduled,
days: Days,
sessionsPerDay: sf.number,
}) {
export class Conference extends sf.object(
"Conference",
{
name: sf.string,
unscheduled: Unscheduled,
days: Days,
sessionsPerDay: sf.number,
},
{
metadata: {
description:
"A conference object that contains all the sessions. Sessions should be based on the Conference name." +
"Each day should have a maximum of 'sessionsPerDay' sessions.",
},
},
) {
// Clear all the sessions from the conference
public clear() {
Tree.runTransaction<Conference>(this, () => {
Expand Down

0 comments on commit b8968a1

Please sign in to comment.