Header & Footer Variants
Techbyte has two header components and two footer components, and pages opt into them through Base.astro.
This is easy to miss because the page files just pass short values like headerLayout="header-2" or footerLayout="footer-1".
Variant Switching InBase.astro
The base layout accepts these props (among others):
interface Props { headerLayout?: "header-1" | "header-2"; // default: "header-1" footerLayout?: "footer-1" | "footer-2"; // default: "footer-2" headerPosition?: "fixed" | "static" | "sticky"; // default: "sticky" footerDecorativeColor?: string; // footer-2 only hasBodyDarkBackground?: boolean; hideOffcanvas?: boolean;}It then renders the matching components:
header-1→src/layouts/components/global/header/Header.astro(withTopBar.astro)header-2→src/layouts/components/global/header/HeaderTwo.astro(withTopBarTwo.astro)footer-1→ContactSection.astro+src/layouts/components/global/Footer.astrofooter-2→src/layouts/components/global/FooterTwo.astro
What Changes Between Header Variants
Header 1
- Dark top bar with the phone number, social links, and the language switch
- White header bar with the side menu button in a colored block beside the logo
- Text-style button (
Start a Projectwith an up-right arrow) - Used by Home 01 and all inner pages (it is the default)
Header 2
- Top bar with the phone number, the language switch, and announcement bar support (
settings.announcementBar, orheader.announcementin the language files when itslabelis empty) - Dark header with the navigation in a white rounded bar, which turns solid white once the page has scrolled
- Filled, rounded button, with the side menu button at the end of the header
- Used by Home 02
Header Position
Independent of the layout, Base.astro takes a headerPosition prop: "sticky" (the default), "fixed", or "static". No page in the theme sets it, so try it in a browser before you rely on it. settings.stickyHeader in config.toml is what keeps the header at the top while you scroll.
What Changes Between Footer Variants
Footer 1
- A full contact section (badge, title, contact info list, and the contact form) renders directly above it
- Optional decorative background image via
settings.footerBackgroundImage - Light logo (
site.logoAlternate), description, social links,footerPrimarylinks, your contact details, and images of your latest projects - Used by Home 01
Footer 2
- Decorative shape above the footer, controlled by the
footerDecorativeColorprop ("accent"default;"light","transparent","none") - Light logo,
footer.descriptionSecondarycopy, thefooterSecondarylink row, and social icons - The default for all pages
Both variants share FooterCopyright.astro, which renders the Ask AI row, the copyright line (with its automatic {{ year }} replacement), the footerPrivacy links, and the theme credit.
How To Change A Page’s Shell
You can switch a page to another shell directly in the page file:
<Base {...page.data} headerLayout="header-2" footerLayout="footer-1"> <slot /></Base>This is the correct approach if you want a whole page to use a different shell. Do not edit the header/footer components unless you want that change to affect every page using that variant.
In the Tina edition, every page’s form has Header layout and Footer layout. Choosing Choose an option gives that page Header 1 and Footer 2. In the Sanity edition, this stays in the page file.