diff --git a/-/fastn-community.github.io/dark-mode-switcher/static/dark-mode-active-dark.png b/-/fastn-community.github.io/dark-mode-switcher/static/dark-mode-active-dark.png deleted file mode 100644 index ba1e665..0000000 Binary files a/-/fastn-community.github.io/dark-mode-switcher/static/dark-mode-active-dark.png and /dev/null differ diff --git a/-/fastn-community.github.io/dark-mode-switcher/static/light-mode-active-dark.png b/-/fastn-community.github.io/dark-mode-switcher/static/light-mode-active-dark.png deleted file mode 100644 index 9e45a2a..0000000 Binary files a/-/fastn-community.github.io/dark-mode-switcher/static/light-mode-active-dark.png and /dev/null differ diff --git a/-/fastn-community.github.io/dark-mode-switcher/static/light-mode-active.png b/-/fastn-community.github.io/dark-mode-switcher/static/light-mode-active.png deleted file mode 100644 index 9e45a2a..0000000 Binary files a/-/fastn-community.github.io/dark-mode-switcher/static/light-mode-active.png and /dev/null differ diff --git a/-/fastn-community.github.io/dark-mode-switcher/static/system-mode-active-dark.png b/-/fastn-community.github.io/dark-mode-switcher/static/system-mode-active-dark.png deleted file mode 100644 index cf1bd6c..0000000 Binary files a/-/fastn-community.github.io/dark-mode-switcher/static/system-mode-active-dark.png and /dev/null differ diff --git a/-/fastn-community.github.io/dark-mode-switcher/static/system-mode-active.png b/-/fastn-community.github.io/dark-mode-switcher/static/system-mode-active.png deleted file mode 100644 index cf1bd6c..0000000 Binary files a/-/fastn-community.github.io/dark-mode-switcher/static/system-mode-active.png and /dev/null differ diff --git a/-/fastn-community.github.io/design-system/assets/powered-by-dark.svg b/-/fastn-community.github.io/design-system/assets/powered-by-dark.svg deleted file mode 100644 index d4b5512..0000000 --- a/-/fastn-community.github.io/design-system/assets/powered-by-dark.svg +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/-/fastn-community.github.io/design-system/assets/powered-by.svg b/-/fastn-community.github.io/design-system/assets/powered-by.svg deleted file mode 100644 index d4b5512..0000000 --- a/-/fastn-community.github.io/design-system/assets/powered-by.svg +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/-/fifthtry.github.io/easy-contest/scripts/auto.sh b/-/fifthtry.github.io/easy-contest/scripts/auto.sh index 987f9be..b6ca32a 100644 --- a/-/fifthtry.github.io/easy-contest/scripts/auto.sh +++ b/-/fifthtry.github.io/easy-contest/scripts/auto.sh @@ -6,3 +6,14 @@ function build-wasm() { popd || return 1 } +function upload-frontend-debug() { + DEBUG_USE_TEJAR_FOLDER="/home/sidd/projects/work/ft/tejar-cache/" \ + FIFTHTRY_SITE_WRITE_TOKEN="fifthtry-write-token" \ + DEBUG_API_FIFTHTRY_COM="http://127.0.0.1" \ + clift upload localhost + + DEBUG_USE_TEJAR_FOLDER="/home/sidd/projects/work/ft/tejar-cache/" \ + FIFTHTRY_SITE_WRITE_TOKEN="fifthtry-write-token" \ + DEBUG_API_FIFTHTRY_COM="http://127.0.0.1" \ + clift upload localhost --file ec.wasm +} diff --git a/-/ui.fifthtry.com/assets/auto-mode-dark.svg b/-/ui.fifthtry.com/assets/auto-mode-dark.svg deleted file mode 100644 index ba03771..0000000 --- a/-/ui.fifthtry.com/assets/auto-mode-dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/-/ui.fifthtry.com/assets/auto-mode.svg b/-/ui.fifthtry.com/assets/auto-mode.svg deleted file mode 100644 index 8603de3..0000000 --- a/-/ui.fifthtry.com/assets/auto-mode.svg +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/-/ui.fifthtry.com/assets/dark-mode-dark.svg b/-/ui.fifthtry.com/assets/dark-mode-dark.svg deleted file mode 100644 index 3ee10b6..0000000 --- a/-/ui.fifthtry.com/assets/dark-mode-dark.svg +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/-/ui.fifthtry.com/assets/light-mode-dark.svg b/-/ui.fifthtry.com/assets/light-mode-dark.svg deleted file mode 100644 index 40f8edc..0000000 --- a/-/ui.fifthtry.com/assets/light-mode-dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/-/ui.fifthtry.com/assets/light-mode.svg b/-/ui.fifthtry.com/assets/light-mode.svg deleted file mode 100644 index 22606c2..0000000 --- a/-/ui.fifthtry.com/assets/light-mode.svg +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/-/ui.fifthtry.com/assets/logo-dark.svg b/-/ui.fifthtry.com/assets/logo-dark.svg deleted file mode 100644 index c9b276c..0000000 --- a/-/ui.fifthtry.com/assets/logo-dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/-/ui.fifthtry.com/assets/logo.svg b/-/ui.fifthtry.com/assets/logo.svg deleted file mode 100644 index 47ae8db..0000000 --- a/-/ui.fifthtry.com/assets/logo.svg +++ /dev/null @@ -1,4 +0,0 @@ - diff --git a/FASTN.ftd b/FASTN.ftd index 42b966b..0824532 100644 --- a/FASTN.ftd +++ b/FASTN.ftd @@ -13,3 +13,7 @@ provided-via: fifthtry.github.io/easy-contest/ds -- fastn.auto-import: fifthtry.github.io/easy-contest/assets -- fastn.auto-import: fifthtry.github.io/easy-contest/ds + +-- fastn.url-mappings: + +/b/* -> wasm+proxy://ec.wasm/* diff --git a/action/new-contest.ftd b/action/new-contest.ftd new file mode 100644 index 0000000..7223356 --- /dev/null +++ b/action/new-contest.ftd @@ -0,0 +1,18 @@ +-- optional string $title-error: +-- optional string $deploy-url-error: +-- optional string $source-url-error: +-- optional string $message-error: + +-- ftd.http-options opts: +redirect: follow +method: POST +fastn-module: www.fifthtry.com/action/new-contest + +-- void submit-values(title, deploy-url, source-url, message): +string title: +string deploy_url: +string source_url: +string message: +ftd.http-options opts: $opts + +console.log("data: " + title + " " + deploy_url + " " + source_url) diff --git a/pages/main/index.html b/action/new-contest/index.html similarity index 100% rename from pages/main/index.html rename to action/new-contest/index.html diff --git a/components/submission-box.ftd b/components/submission-box.ftd new file mode 100644 index 0000000..b516fe6 --- /dev/null +++ b/components/submission-box.ftd @@ -0,0 +1,38 @@ +-- import: fifthtry.github.io/easy-contest/records/submissions as s + +-- component submission-box: +s.submission sub: + +-- ds.container: +inset: $ds.spaces.inset-square.large +background.solid: $ds.colors.background.step-2 +width: fill-container +radius: $ds.radius.medium + +-- ds.column: + +-- ds.heading-small: $submission-box.sub.title +color: $ds.colors.text-strong +align: left + +-- ds.copy-large: $submission-box.sub.message +align: left + +-- ds.row: + +-- ds.copy-regular: $submission-box.sub.deploy_url +align: left + +-- ds.copy-regular: | + +-- ds.copy-regular: $submission-box.sub.source_url +align: left + +-- end: ds.row + + +-- end: ds.column + +-- end: ds.container + +-- end: submission-box diff --git a/pages/rules/index.html b/components/submission-box/index.html similarity index 100% rename from pages/rules/index.html rename to components/submission-box/index.html diff --git a/index.ftd b/index.ftd index 3c846d7..d3dd315 100644 --- a/index.ftd +++ b/index.ftd @@ -1,3 +1,16 @@ -- import: fifthtry.github.io/easy-contest/pages/main +-- import: fastn/processors as pr --- main.page: 100 domains contest +-- ftd.text: TODO: add landing page and other scenarios like ui.fifthtry.com + + +;;-- record page-data: +;;string msg: + +;;-- record msg: +;;page-data page: + + +;;-- msg data: +;;$processor$: pr.http +;;url: /b/wasm-test/ diff --git a/index.html b/index.html index 52d4c6b..9e2bc67 100644 --- a/index.html +++ b/index.html @@ -333,220 +333,9 @@ -
-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