Skip to content

Commit

Permalink
added preview-img
Browse files Browse the repository at this point in the history
  • Loading branch information
MeenuKumari28 authored and siddhantk232 committed Nov 13, 2024
1 parent 92e9d73 commit 320a0ae
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 1 deletion.
Binary file added assets/templates/blog-temp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/templates/simple-blog-temp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/templates/simple-ws-temp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/templates/ws-temp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion pages/featured/template.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ align-content: top-left
for: $obj in $grid-view.category
title: $obj.title
preview-url: $obj.preview-url
preview-img: $obj.preview-img
id: $obj.id

-- end: ds.row
Expand All @@ -37,6 +38,7 @@ align-content: top-left
for: $obj in $grid-view.category
title: $obj.title
preview-url: $obj.preview-url
preview-img: $obj.preview-img
id: $obj.id

-- end: ds.column
Expand All @@ -59,6 +61,7 @@ align-content: top-left
-- component grid-of-items:
string title:
string preview-url:
ftd.image-src preview-img:
integer id:
boolean $mouse-in: false

Expand All @@ -69,13 +72,20 @@ $on-mouse-leave$: $ftd.set-bool($a = $grid-of-items.mouse-in, v = false)
border: $ds.borders.uniform.small
spacing: $ds.spaces.vertical-gap.zero

-- ftd.iframe:
/-- ftd.iframe:
width.fixed.px: 354
height.fixed.px: 224
border-top-left-radius.px: 8
border-top-right-radius.px: 8
src: $grid-of-items.preview-url

-- ftd.image:
src: $grid-of-items.preview-img
width.fixed.px: 354
height.fixed.px: 224
border-top-left-radius.px: 8
border-top-right-radius.px: 8

-- ftd.column:
if: { grid-of-items.mouse-in }
padding.px: 15
Expand Down
1 change: 1 addition & 0 deletions records/sites.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,4 @@ optional string next:
integer id:
string title:
string preview-url:
ftd.image-src preview-img:
4 changes: 4 additions & 0 deletions scenarios/featured/index.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,25 @@ user-data: $john-doe.jd
-- template-record.template:
title: Blog Template
preview-url: https://blog.fifthtry.site/
preview-img: $assets.files.assets.templates.blog-temp.png
id: 1

-- template-record.template:
title: Simple Website Template
preview-url: https://simple-website-template.fifthtry.site/
preview-img: $assets.files.assets.templates.simple-ws-temp.png
id: 2

-- template-record.template:
title: Website Template
preview-url: https://website-template.fifthtry.site/
preview-img: $assets.files.assets.templates.ws-temp.png
id: 3

-- template-record.template:
title: Simple Blog Template
preview-url: https://simple-blog-template.fifthtry.site/
preview-img: $assets.files.assets.templates.simple-blog-temp.png
id: 4

-- end: template-category-list

0 comments on commit 320a0ae

Please sign in to comment.