Skip to content

nickolasrm/FathersDay2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Coverage Status

Happy Fathers Day 2021! πŸŽ‰πŸŽ‰

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?

GIFs

Desktop visualization

Mobile visualization

What is this?

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

I liked the idea, how do I do the same?

Follow these steps:

  1. For replicating this website, you should first fork this repository.

  2. Make sure you have node and npm installed.

  3. Clone your fork into your computer, open the terminal into the app root folder, run npm install and npm run.

  4. Go to src/public/locales, duplicate the example folder 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.

  5. Explore the website sections to see what texts should be changed.

  6. Make sure your browser is configured to be in the same language as the target language, otherwise it will turn back to english.

  7. Open the file translation.json located 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

  1. Replace all images to the ones related to your father. (And write beautiful messages for him into the translation.json)

  2. +OPTIONAL. Each of these keys into translation.json are related to the references into src/pages/Home/index.tsx and src/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.

GitHub Pages deploy

  1. Change the .env.production IS_GITHUB_PAGES_DEPLOY value to true

  2. Change package.json homepage value to YOUR_USERNAME.github.io/FathersDay2021/

  3. Delete the CNAME file located at public folder.

  4. Run npm run deploy or push it to main branch

Credits

Made with lots of love by nickolasrm ❀️

References

About

A tribute to my father πŸ‘¨πŸš—

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors