https://github.com/zephinzer/farewell
yes
https://github.com/zephinzer/farewell
Last synced: 5 months ago
JSON representation
yes
- Host: GitHub
- URL: https://github.com/zephinzer/farewell
- Owner: zephinzer
- Created: 2020-06-24T10:11:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T22:09:29.000Z (over 3 years ago)
- Last Synced: 2025-04-06T12:50:21.854Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://pensive-albattani-7782c8.netlify.app/
- Size: 13.6 MB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# farewell
Live [here](https://pensive-albattani-7782c8.netlify.app/)
## Guidelines
- We don't write tests
- We push to master
## Start local server
```
yarn start
```
## Add new card
Add messages to `src/messages/messages.js`:
- For normal text card with a header and a message:
```javascript
{
type: "text",
header: "some header", // optional
message: "some message"
}
```
- For a photo with alt text, first place it in the images folder and import it as a variable (e.g. `someImg`). Then:
```javascript
{
type: "photo",
image: someImg,
alt: "alt text for the image",
},
```
- For photo card with message, first place it in the images folder and import it as a variable. Then:
```javascript
{
header: "some header", // optional
message: "some message",
image: someImg,
alt: "alt text for the image",
}
```