We are all passing through bad times recently. Covid-19 pandemic made life hard for everyone. For some, it may have made your relationship with your father closer, for others, the opposite or even impossible. However, it doesn't mean you cannot tell your father you love him, even if he's not here anymore.
This is my way of doing it, what is yours?
Desktop visualization
Mobile visualization
This is a website I made using Typescript and React for fooling my father making him to think it is a car announcement website, but it is actually a tribute to him.
You can check the project out here
Follow these steps:
-
For replicating this website, you should first fork this repository.
-
Make sure you have
nodeandnpminstalled. -
Clone your fork into your computer, open the terminal into the app root folder, run
npm installandnpm run. -
Go to
src/public/locales, duplicate theexamplefolder if your target language is not english or portuguese, otherwise duplicate it and rename it for the target language code. You can find your language code here. -
Explore the website sections to see what texts should be changed.
-
Make sure your browser is configured to be in the same language as the target language, otherwise it will turn back to english.
-
Open the file
translation.jsonlocated at the folder you just duplicated and replace the values with the proper translation or messages you want into your page.
NOTE: Every image field is related to an image into
public/images
-
Replace all images to the ones related to your father. (And write beautiful messages for him into the
translation.json) -
+OPTIONAL. Each of these keys into
translation.jsonare related to the references intosrc/pages/Home/index.tsxandsrc/templates/HomeTemplate/index.tsx. Analyse the file structure in order to customize the sections. Example of customization:
// I want to add another image
// src/pages/Home/index.tsx
<HomeTemplate
...
images={[
...
{
image: t('images.x.image'),
comment: t('images.x.comment')
}
]} />// public/locales/target_lang/translation.json
...
"images": {
...
"x": {
"image": "x.png",
"comment": "X comment"
}
}After that, deploy it to a GitHub Pages environment or build it and host it on a static website hosting service.
-
Change the
.env.productionIS_GITHUB_PAGES_DEPLOYvalue totrue -
Change
package.jsonhomepagevalue toYOUR_USERNAME.github.io/FathersDay2021/ -
Delete the
CNAMEfile located atpublicfolder. -
Run
npm run deployor push it to main branch
Made with lots of love by nickolasrm β€οΈ


