LogoLogo
HomeGitHubComponents
v1
v1
  • 🏃‍♂️Getting started!
  • 📝Customising pages
  • 🛤️Adding more pages
  • 🔡Custom fonts
  • 🎨Theme customization
  • 🎇Restyling components
  • 📣Favicon and Meta Tags
  • 🌐Custom domain name
Powered by GitBook
On this page

Customising pages

Create your landing page with Gitlanding

PreviousGetting started!NextAdding more pages

Last updated 2 years ago

Now, if the previous steps went smoothly, you can start modifying and of adding to the template code as befits your needs ! 🚀

If you wish to import files sush as webm or mp4 files in your project you must declare them as modules. Copy and paste the following example in the src/react-app-env.d.ts file.

//Replace <webm> with the extension name of your choice
declare module "*.webm" {
	const _default: string;
	export default _default;
}

Host your assets by placing them . An then .

In this I create a new article in the Home page that has an mp4 video along side it. I also added a section devider to seperate it from the article above. You will notice that I do not hard code the text directly inside the component, but I use a translation function that enables me to switch between English and French. See documentation to learn about the translation engine setup.

The components I used are:

You can preview all the components in

📝
in a dedicated directory in your src folder
importing them as URLs directly in your code
example
i18nifty
GlArticle
GlSectionDevider
Storybook