This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
generated from fastn-stack/fastn-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ftd
108 lines (74 loc) · 2.66 KB
/
index.ftd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
-- import: fastn-community.github.io/business-card/docs
-- import: fastn-community.github.io/site-doc
-- import: <user_name>.github.io/<repo_name>
-- $site-doc.copyright-info: Copyright © 2023 - [<user_name> ](https://<user_name>.github.io/<repo_name>)
;; home-card component arguments (with default values) ----------------------
;; caption name:
;; string package-name: business-card
;; string package-full-name: fastn-community.github.io/business-card
;; string license-url: https://github.com/fastn-community/business-card/blob/main/LICENSE
;; module c: business-card
;; optional string company-name:
;; optional string company-slogan:
;; optional ftd.image-src qr-code:
;; optional string title:
;; optional string phone-no:
;; optional string email:
;; optional string address:
;; optional ftd.image-src logo: $business-card.default-card-logo
;; optional ftd.image-src avatar:
;; optional string github:
;; optional string website:
;; --------------------------------------------------------------------------
-- docs.home-card: John Doe
package-name: <repo_name>
package-full-name: <user_name>.github.io/<repo_name>
license-url: https://github.com/<user_name>/<repo_name>/blob/main/LICENSE
title: Software Developer
phone-no: +123-4567890
email: <user_name>@xyz.com
address: 123 Anywhere, Any City
github: https://github.com/<user_name>/<repo_name>
;; ---------------- DEFINE YOUR CARD COMPONENTS -----------------------
;; Implement your card and card-back components below
/-- component front:
caption name:
optional string company-name:
optional string title:
optional string phone-no:
optional string email:
optional string address:
optional ftd.image-src logo:
optional ftd.image-src avatar:
optional string company-slogan:
optional ftd.image-src qr-code:
optional string website:
;; <YOUR IMPLEMENTATION HERE>
/-- end: front
/-- component back:
optional caption name:
optional string company-name:
optional string title:
optional string phone-no:
optional string email:
optional string address:
optional ftd.image-src logo:
optional ftd.image-src avatar:
optional string company-slogan:
optional ftd.image-src qr-code:
optional string website:
;; <YOUR IMPLEMENTATION HERE>
/-- end: back
;; ------------------------- VARIABLES --------------------------
-- string front-sample-code:
\-- import: <user_name>.github.io/<repo_name>
\-- <repo_name>.front: <user_name>
title: Software Developer
email: <user_name>@xyz.com
address: 123 Anywhere, Any City
logo: $assets.files.assets.ipsum-logo.svg
-- string back-sample-code:
\-- import: <user_name>.github.io/<repo_name>
\-- <repo_name>.back:
logo: $assets.files.assets.ipsum-logo.svg
company-slogan: If you can type you can code