Skip to content

Commit

Permalink
team dashboard scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 30, 2023
1 parent 38051de commit 23c7669
Show file tree
Hide file tree
Showing 7 changed files with 330 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ These are list of products/websites hosted by FifthTry.

- [Login page](/slides/scenarios/login-page/)
- [Logged in templates](/slides/scenarios/logged-in-templates/)
- [team dashboard](/slides/scenarios/team-dashboard/)

-- end: ds.page
1 change: 1 addition & 0 deletions slides/assets/github-mark-white-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions slides/assets/plus-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions slides/assets/plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added slides/components/team-page.ftd
Empty file.
255 changes: 255 additions & 0 deletions slides/pages/dashboard.ftd
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
-- import: ui.fifthtry.com/slides/components/full-page as team-page
-- import: ui.fifthtry.com/slides/site-data
-- import: ui.fifthtry.com/slides/user-data




-- component page:
module site-data: site-data
module user-data: user-data
presentation list presentations:
template list templates:

-- team-page.page:
site-data: $page.site-data
user-data: $page.user-data

-- all-presentations:
all-presentations-lists: $page.presentations
all-template-lists: $page.templates

-- end: team-page.page

-- end: page




-- record presentation:
caption title:
ftd.image-src image:
string time:


-- record template:
caption title:
ftd.image-src image:



























-- component all-presentations:
presentation list all-presentations-lists:
template list all-template-lists:
boolean $pop-up: false

-- ftd.column:
width: fill-container
padding-bottom.px: 24
padding-top.px: 12

-- ftd.row:
width: fill-container
spacing: space-between
padding-bottom.px: 24

-- ftd.text: All presentations
role: $inherited.types.heading-medium
color: $inherited.colors.text-strong

-- ftd.row:
width.fixed.px: 134
padding-horizontal.px: 12
padding-vertical.px: 8
background.solid: $inherited.colors.background.step-2
border-radius.px: 8
spacing.fixed.px: 6
align-content: center
$on-click$: $ftd.set-bool($a = $all-presentations.pop-up, v = true)

-- ftd.image:
src: $assets.files.slides.assets.plus.svg
width.fixed.px: 14

-- ftd.text: New presentation
role: $inherited.types.copy-small
color: $inherited.colors.text-strong

-- end: ftd.row

-- ftd.column:
if: { all-presentations.pop-up }
width.fixed.px: 720
height.fixed.px: 602
background.solid: $inherited.colors.background.base
padding.px: 24
spacing.fixed.px: 24
border-width.px: 1
border-color: $inherited.colors.border-strong
z-index: 5
anchor: parent
top.px: -204
left.px: 150
border-radius.px: 8
shadow: $s
overflow-y: scroll

-- ftd.row:
width: fill-container
spacing: space-between
align-content: center
border-bottom-width.px: 1
border-color: $inherited.colors.border
padding-bottom.px: 16

-- ftd.text: Select a template
role: $inherited.types.heading-small
color: $inherited.colors.text-strong

-- ftd.image:
src: $assets.files.assets.cross.svg
width.fixed.px: 28
height.fixed.px: 28
$on-click$: $ftd.set-bool($a = $all-presentations.pop-up, v = false)

-- end: ftd.row

-- ftd.row:
width: fill-container
spacing.fixed.px: 24
wrap: true

-- template-list: $obj.title
$loop$: $all-presentations.all-template-lists as $obj
image: $obj.image

-- end: ftd.row

-- end: ftd.column

-- end: ftd.row

-- ftd.row:
width.fixed.px: 940
padding-vertical.px: 24
spacing.fixed.px: 24
wrap: true

-- all-presentations-details: $obj.title
$loop$: $all-presentations.all-presentations-lists as $obj
image: $obj.image
time: $obj.time

-- end: ftd.row

-- end: ftd.column

-- end: all-presentations









-- component all-presentations-details:
caption title:
ftd.image-src image:
string time:

-- ftd.column:
width.fixed.px: 243
spacing.fixed.px: 8
padding-bottom.px: 8
cursor: pointer

-- ftd.image:
src: $all-presentations-details.image
width: fill-container

-- ftd.text: $all-presentations-details.title
role: $inherited.types.heading-tiny
color: $inherited.colors.text-strong

-- ftd.text: $all-presentations-details.time
role: $inherited.types.copy-small
color: $inherited.colors.text
style: light

-- end: ftd.column

-- end: all-presentations-details










-- component template-list:
caption title:
ftd.image-src image:

-- ftd.column:
width.fixed.px: 200
spacing.fixed.px: 8
padding-bottom.px: 8
cursor: pointer
align-content: center

-- ftd.image:
src: $template-list.image
width: fill-container

-- ftd.text: $template-list.title
role: $inherited.types.copy-small
color: $inherited.colors.text-strong

-- end: ftd.column

-- end: template-list








-- ftd.shadow s:
color: #000000
x-offset.px: 4
y-offset.px: 4
blur.px: 20
spread.px: 8


67 changes: 67 additions & 0 deletions slides/scenarios/team-dashboard.ftd
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
-- import: ui.fifthtry.com/slides/pages/dashboard
-- import: ui.fifthtry.com/slides/scenarios/john-doe-ud


-- dashboard.page:
templates: $templates
presentations: $presentations
user-data: john-doe-ud



-- dashboard.presentation list presentations:

-- dashboard.presentation: Documentation site
image: $assets.files.slides.assets.template-2.png
time: Edited 18 min ago

-- dashboard.presentation: Documentation site
image: $assets.files.slides.assets.template-2.png
time: Edited 18 min ago

-- dashboard.presentation: Documentation site
image: $assets.files.slides.assets.template-2.png
time: Edited 18 min ago

-- dashboard.presentation: Documentation site
image: $assets.files.slides.assets.template-2.png
time: Edited 18 min ago

-- dashboard.presentation: Documentation site
image: $assets.files.slides.assets.template-2.png
time: Edited 18 min ago

-- dashboard.presentation: Documentation site
image: $assets.files.slides.assets.template-2.png
time: Edited 18 min ago

-- end: presentations


-- dashboard.template list templates:

-- dashboard.template: Templates 1
image: $assets.files.slides.assets.template-1.png

-- dashboard.template: Templates 2
image: $assets.files.slides.assets.template-1.png

-- dashboard.template: Templates 3
image: $assets.files.slides.assets.template-1.png

-- dashboard.template: Templates 4
image: $assets.files.slides.assets.template-1.png

-- dashboard.template: Templates 5
image: $assets.files.slides.assets.template-1.png

-- dashboard.template: Templates 6
image: $assets.files.slides.assets.template-1.png

-- dashboard.template: Templates 7
image: $assets.files.slides.assets.template-1.png

-- dashboard.template: Templates 8
image: $assets.files.slides.assets.template-1.png

-- end: templates

0 comments on commit 23c7669

Please sign in to comment.