Checking Permissions...

Section 4 • Tutorial Page Template

Tutorial Page Template

In this tutorial, you’ll learn Astro’s key features by building a fully-functioning blog, from zero to full launch! 🚀

Get ready to…

  • Create sub-pages by making a folder and index file. This will be the first level page.
  • Make additional pages within the folder as normal.
  • You can nest additional sub-pages by repeating this pattern.

Along the way, you’ll:

  • Set up your development environment
  • Create pages and blog posts for your website
  • Build with Astro components
  • Query and work with local files
  • Add interactivity to your site
  • Deploy your site to the web

Want a preview of what you’re going to build? You can view the final project on GitHub or StackBlitz.

Try it yourself - Build a new Header component

Section titled Try it yourself - Build a new Header component
  1. Create a new Header component. Import and use your existing Navigation.astro component inside a <nav> element which is inside a <header> element.
Show me the code!

Create a file named Header.astro in src/components/

src/components/Header.astro
---
import Navigation from './Navigation.astro';
---
<header>
<nav>
  <Navigation />
</nav>
</header>
  1. Multiple choice questions can be created using the MultipleChoice component
  1. Answers use the Option component, and correct answers are set using the ‘isCorrect’ prop
  1. Astro components will automatically create a new page on your site when you…

You are currently logged out.

To view this content, please log in or request an account from your manager.
Redirecting you to the home page in 5 seconds.

✕

Share this page via QR Code

https://grovery-core-toolkit-staging.netlify.app/en/page-templates/tutorial-page-template/2-step-2/
✕

CORE Options

Currently logged in as: Loading...

Log In
Install
Clear Data
✕

What’s on your mind?

Have an issue or an idea? Share it with us, and we'll check it out!

Choose feedback category
✕
✕

ANNOUNCEMENTS

Check here for the latest site-wide announcements

This is the Announcements entry for the whole site. Use this to display announcment text in the modal linked to the Announcements button in the header. The actual content of the announcment is set with the AnnouncementsContent component, and is fetched from '/src/data/announcements.json', and is set up to accept raw HTML code so you can include links and text formatting.

Click here to go to the main Announcements page.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
✕

Search

    No recent searches to display. Start typing to search instantly.
    OFFLINE

    Looks like you're not currently connected to the internet.

    You should still be able to browse this site, but you won't be able to access outside resources until you have internet access again.