Skip to content

Commit

Permalink
pages setup: main (/) and rules (/rules/)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantk232 committed Mar 27, 2024
1 parent 72edd04 commit 8ac8a28
Show file tree
Hide file tree
Showing 8 changed files with 3,124 additions and 75 deletions.
3,111 changes: 3,040 additions & 71 deletions .fastn/config.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions FASTN.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
-- fastn.package: fifthtry.github.io/easy-contest
favicon: /favicon.ico

-- fastn.dependency: ui.fifthtry.com
-- fastn.dependency: fastn-community.github.io/dark-flame-cs
-- fastn.dependency: fastn-community.github.io/midnight-storm-typography
-- fastn.dependency: fastn-community.github.io/doc-site

-- fastn.dependency: fastn-community.github.io/design-system
provided-via: fifthtry.github.io/easy-contest/ds
Expand Down
40 changes: 40 additions & 0 deletions components/header.ftd
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
-- import: ui.fifthtry.com/components/dark-mode-toggle
-- import: ui.fifthtry.com/site-data

-- component header:
module site-data: site-data
ds.gap margin: $ds.spaces.vertical-gap.zero
boolean theme-toggle: true

-- ds.section-column:
margin: $ds.spaces.vertical-gap.zero
inset: $ds.spaces.inset-wide.medium

-- ds.row:
inset: $ds.spaces.inset-tall.zero-small
spacing: $ds.spaces.horizontal-gap.space-between
border: $ds.borders.bottom.small
radius: $ds.radius.zero

-- ftd.image:
src: $header.site-data.logo
link: $header.site-data.homepage

-- ds.row:
width: hug-content
spacing: $ds.spaces.horizontal-gap.medium

-- ds.copy-regular: Rules
link: /rules/

-- dark-mode-toggle.dark-mode-toggle:
if: { header.theme-toggle }

-- end: ds.row

-- end: ds.row

-- end: ds.section-column

-- end: header

3 changes: 3 additions & 0 deletions ds.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
export: borders, button, icon-button, primary-button, secondary-button, circle-text-button, phosphor-icon-button, inline-row, footer-link, copyright-text, page-widths, header-link, page, heading-hero, heading-large, heading-medium, heading-small, heading-tiny, copy-large, copy-regular, copy-small, fine-print, source-code, link, section-row, section-column, column, element-radius, radius, row, flush, gap, hv, spaces, border-data, border-bottom, alert, container, text-input, danger-button, checkbox, link-button, floater, copy-to-clipboard-text, copy-to-clipboard-icon, label-text, package-info
exposing: page-widths

-- import: fastn-community.github.io/doc-site
export: markdown


-- page-widths widths:
regular.px: 1140
Expand Down
6 changes: 2 additions & 4 deletions index.ftd
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-- ds.page: smth
-- import: fifthtry.github.io/easy-contest/pages/main

-- ds.heading-large: wo

-- end: ds.page
-- main.page: 100 domains contest
12 changes: 12 additions & 0 deletions pages/main.ftd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- import: fifthtry.github.io/easy-contest/components/header as h

-- component page:
caption page-title: Easy Contest

-- ds.page: $page.page-title

-- h.header:

-- end: ds.page

-- end: page
22 changes: 22 additions & 0 deletions pages/rules.ftd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-- import: fifthtry.github.io/easy-contest/components/header as h

-- component page:
caption page-title: Rules | Easy Contest

-- ds.page: $page.page-title

-- h.header:

-- ds.section-column:

-- ds.markdown:

Could be a section in the main page itself? depends on the final content we end up with

A place for Nandhini to write content related to the 100 domains contest

-- end: ds.section-column

-- end: ds.page

-- end: page
3 changes: 3 additions & 0 deletions rules.ftd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- import: fifthtry.github.io/easy-contest/pages/rules

-- rules.page: Rules | 100 domains contest

0 comments on commit 8ac8a28

Please sign in to comment.