Building the Contact Page
Learn how we can reuse existing components in our codebase to quickly create new pages.
We'll cover the following...
Throughout this course, we’ve created several components that can be reused on different pages in different combinations. In this lesson, we’ll take a look at the power of reusability and learn how we can create a contact page from the existing components. We’ll also take a look at what we should include on a contact page that fits the EEAT criteria we talked about earlier.
Creating the contact page
In the interactive code widget below, we already have a contact page set up in pages/contact.astro
, however, it’s currently empty with only a heading. On a contact page, we not only want to display contact information but also establish authority to let users know why they should trust and contact us in the first place.
Reinforce your knowledge!
What is the use of the application/ld+json
type script
tags?
Adding JSON markup to a page
Adding schema markup to a page
Adding mobile-application-related data to a page