This is a card component which will render your data as a business card
(front-view).
How to use
Add business-card
dependency into your FASTN.ftd
-- fastn.dependency: fastn-community.github.io/business-card
In index.ftd
(or whichever file you want to add)
-- import: fastn-community.github.io/business-card as b-card
-- b-card.card: John Doe
title: Software Developer
company-name: John Doe Pvt. Ltd.
logo: $assets.files.assets.ipsum-logo.svg
contact-1: +91 12345 99999
contact-2: +91 12345 88888
email: john@johndoe.com
website: www.johndoe.com
address: 123, Block No. A-123, Times Square, Bangalore - 123456
company-slogan: If you can type you can code
Preview
John Doe
Software Developer
+91 12345 99999
+91 12345 88888
John Doe Pvt. Ltd.
123, Block No. A-123, Times Square, Bangalore - 123456

Properties:
Below are details of all properties of card
component.
It's used to define the person's name for your card component.
It's used to define the person's business title for your card component.
It's used to define the company name for your card component.
logo
type:
ftd.image-src (optional
)
It's used to define the business logo for your card component.
It's used to define the person's primary contact number (phone number) for your
card component.
It's used to define the person's alternative contact number (phone number) for
your card component.
It's used to define the person's email address for your card component.
It's used to define any website for your card component.
It's used to define the person's address for your card component.
It's used to define the company slogan for your card component.
Some variants of card:
Let's see some variants of card if you omit providing some optional fields.
In index.ftd
(or whichever file you want to add)
-- import: fastn-community.github.io/business-card as b-card
-- b-card.card: John Doe
title: Software Developer
company-name: John Doe Pvt. Ltd.
logo: $assets.files.assets.ipsum-logo.svg
contact-1: +91 12345 99999
email: john@johndoe.com
website: www.johndoe.com
address: 123, Block No. A-123, Times Square, Bangalore - 123456
company-slogan: If you can type you can code
John Doe
Software Developer
John Doe Pvt. Ltd.
123, Block No. A-123, Times Square, Bangalore - 123456

In index.ftd
(or whichever file you want to add)
-- import: fastn-community.github.io/business-card as b-card
-- b-card.card: John Doe
title: Software Developer
company-name: John Doe Pvt. Ltd.
logo: $assets.files.assets.ipsum-logo.svg
contact-1: +91 12345 99999
email: john@johndoe.com
website: www.johndoe.com
address: 123, Block No. A-123, Times Square, Bangalore - 123456
company-slogan: If you can type you can code
John Doe
Software Developer
John Doe Pvt. Ltd.
123, Block No. A-123, Times Square, Bangalore - 123456

In index.ftd
(or whichever file you want to add)
-- import: fastn-community.github.io/business-card as b-card
-- b-card.card: John Doe
title: Software Developer
company-name: John Doe Pvt. Ltd.
logo: $assets.files.assets.ipsum-logo.svg
contact-1: +91 12345 99999
email: john@johndoe.com
website: www.johndoe.com
address: 123, Block No. A-123, Times Square, Bangalore - 123456
company-slogan: If you can type you can code
John Doe
Software Developer
+91 12345 99999
+91 12345 88888
John Doe Pvt. Ltd.
123, Block No. A-123, Times Square, Bangalore - 123456

In index.ftd
(or whichever file you want to add)
-- import: fastn-community.github.io/business-card as b-card
-- b-card.card: John Doe
title: Software Developer
company-name: John Doe Pvt. Ltd.
logo: $assets.files.assets.ipsum-logo.svg
contact-1: +91 12345 99999
contact-2: +91 12345 88888
email: john@johndoe.com
website: www.johndoe.com
company-slogan: If you can type you can code
John Doe
Software Developer
+91 12345 99999
+91 12345 88888

4- Removing company-slogan
In index.ftd
(or whichever file you want to add)
-- import: fastn-community.github.io/business-card as b-card
-- b-card.card: John Doe
title: Software Developer
company-name: John Doe Pvt. Ltd.
logo: $assets.files.assets.ipsum-logo.svg
contact-1: +91 12345 99999
contact-2: +91 12345 88888
email: john@johndoe.com
website: www.johndoe.com
address: 123, Block No. A-123, Times Square, Bangalore - 123456
John Doe
Software Developer
+91 12345 99999
+91 12345 88888
John Doe Pvt. Ltd.
123, Block No. A-123, Times Square, Bangalore - 123456
