This guide shows you how to create a new page using the misc.html template as a starting point. This is a frontend-focused guide for working with templates and components.
misc.html as your starting templateCopy misc.html as your new page. Hereβs what it contains:
{% extends "website/base.html" %}
{% load static %}
{% block title %}Your Page Title | Aladdin Schools{% endblock %}
{% block pageStyles %}
{# Optional: Link to page-specific stylesheet #}
{% endblock %}
{% block content %}
{% include "website/components/shared/hero.html" with theme="pink-red" title="Misc Page Example" %}
{% include "website/components/misc/content.html" %}
{% endblock %}
Change the title block:
{% block title %}Your Page Title | Aladdin Schools{% endblock %}
You can either:
ui/website/components/[your-page]/{% block content %}
{% include "website/components/shared/hero.html" with
theme="rainbow-shimmer"
title="Your Page Title" %}
<section class="my-section u-background-white u-padding-xl" id="my-section">
<div class="u-container">
{% include "website/components/shared/headings/underlined.html" with
title="Section Title"
align="center"
description="Section description" %}
<!-- Your content here -->
</div>
</section>
{% endblock %}
Create components/[your-page]/hero.html:
{% include "website/components/shared/hero.html" with
theme="rainbow-shimmer"
title="Your Page Title" %}
Then use it in your page:
{% block content %}
{% include "website/components/[your-page]/hero.html" %}
{% include "website/components/[your-page]/content.html" %}
{% endblock %}
Add IDs to sections so they can be linked from navigation:
<section class="services u-padding-xl" id="services">
<div class="u-container">
<!-- Content -->
</div>
</section>
Then link from navigation:
<a href="/#services">Services</a>
Or from another page:
<a href="/services#services">Services</a>
Apply utility classes for consistent styling. See Utility Classes for the complete list.
<section class="my-section u-background-white u-padding-xl">
<div class="u-container">
<!-- Content -->
</div>
</section>
{% extends "website/base.html" %}
{% load static %}
{% block title %}Our Services | Aladdin Schools{% endblock %}
{% block content %}
<!-- Hero Section -->
{% include "website/components/shared/hero.html" with
theme="rainbow-shimmer"
title="Our Services" %}
<!-- Overview Section -->
<section class="services-overview u-background-white u-padding-xl" id="overview">
<div class="u-container">
{% include "website/components/shared/headings/underlined.html" with
title="What We Offer"
align="center"
description="Comprehensive solutions for Irish primary schools." %}
</div>
</section>
<!-- Services List Section -->
<section class="services-list u-padding-xl" id="services">
<div class="u-container">
{% include "website/components/shared/headings/underlined.html" with
title="Our Services"
align="center" %}
<div class="services__grid">
{% include "website/components/shared/card.html" with
title="Service 1"
description="Service description"
icon="chart-up"
cta_theme="epayments"
cta_link="#contact"
cta_text="Learn More" %}
{% include "website/components/shared/card.html" with
title="Service 2"
description="Service description"
icon="chats"
cta_theme="connect"
cta_link="#contact"
cta_text="Get Started" %}
</div>
</div>
</section>
{% endblock %}
Leverage existing components instead of creating new ones. See Component Library for full component documentation and all available parameters.
Use this pattern for consistent sections:
<section class="section-name u-background-white u-padding-xl" id="section-name">
{% include "website/components/shared/shapes/yellow-shapes.html" %}
<div class="u-container">
{% include "website/components/shared/headings/underlined.html" with
title="Section Title"
align="center" %}
<!-- Your content here -->
</div>
</section>
Always add IDs to major sections:
<section id="services" class="services u-padding-xl">
<!-- Content -->
</section>
<section id="pricing" class="pricing u-padding-xl">
<!-- Content -->
</section>
Then link from navigation:
<a href="/#services">Services</a>
<a href="/#pricing">Pricing</a>
See Utility Classes for all available utility classes and examples.
u-mobile-only - Show only on mobileu-desktop-only - Show only on desktopu-mobile-tablet-only - Show on mobile/tablet onlyFor complete component documentation, parameters, and examples, see the Component Library.
Quick reference: