Shieldra Cyber Security & IT Solutions Next.js Template
Thank you for purchasing Shieldra. This is the Next.js 16 (App Router) + React 19 + TypeScript edition of the Shieldra template. It has the same design as the HTML version, rebuilt as reusable React components with typed data files.
- 22 page designs (2 homepages, 5 authentication pages), plus automatically generated detail pages for every service, case study and blog post (53 pre-rendered pages out of the box)
- Next.js 16 App Router, React 19, TypeScript (strict), ESLint (Next.js core-web-vitals rules)
- Bootstrap 5.3 (CSS only, no jQuery and no Bootstrap JavaScript): menus, accordions, tabs and slider are React components
- Dark / Light mode and full RTL on every page, remembered per visitor, with no flash on load
- 165 SVG icons through one
<Icon /> component (no icon font)
- All content in typed data files: edit text in one place, the pages update automatically
- Working blog search, category and tag filters and pagination; case study filter; pricing toggle
- Contact form with a built-in API route that sends email over SMTP (replaces
contact.php)
- SEO ready: per-page metadata, canonical URLs, Open Graph, sitemap.xml, robots.txt, JSON-LD, real 404 status codes
- Self-hosted fonts (no requests to Google), optimised images with
next/image
- Accessible markup: semantic headings, ARIA attributes, keyboard support, reduced-motion support
Installation
Requirements: Node.js 20.9 or newer (LTS recommended) and npm (included with Node.js).
- Unzip the package and open the
shieldra-nextjs folder in your editor (e.g. VS Code).
- Open a terminal in that folder and install the dependencies:
npm install
- Start the development server and open http://localhost:3000:
npm run dev
All commands
| Command | What it does |
npm run dev | Development server with instant reload |
npm run build | Production build (pre-renders all pages) |
npm start | Runs the production build (after npm run build) |
npm run lint | Checks the code with ESLint |
npm run typecheck | Checks TypeScript types |
npm run update:bootstrap | Copies Bootstrap CSS into public/vendor after you update the bootstrap package |
Copy .env.example to .env.local and fill in your site URL and SMTP details (see Forms and SEO).
Note: npm audit may report an advisory in ESLint's tooling (braces). It only affects the developer lint command, not your website (npm audit --omit=dev reports 0 vulnerabilities).
Folder Structure
shieldra-nextjs/
├── public/
│ ├── images/ ← logo, blog, project and about images
│ └── vendor/bootstrap/ ← Bootstrap CSS (LTR + RTL builds)
├── src/
│ ├── app/ ← Pages (App Router)
│ │ ├── layout.tsx ← Root layout: fonts, CSS, SEO defaults, theme script
│ │ ├── (site)/ ← Website pages (top bar, header, footer)
│ │ ├── (auth)/ ← Login, Register, Forgot/Reset Password, Two-Factor
│ │ ├── coming-soon/ ← Coming Soon page
│ │ ├── not-found.tsx ← 404 page
│ │ ├── api/contact/ ← Contact form email API
│ │ ├── sitemap.ts, robots.ts, manifest.ts, icon.svg, apple-icon.png
│ ├── components/
│ │ ├── layout/ ← Header, Footer, TopBar, StyleSwitcher, ThemeToggle, Preloader...
│ │ ├── sections/ ← Page sections (Hero, Services, About, Pricing, CTA...)
│ │ ├── cards/ ← Service, Project, Blog, Team, Testimonial cards
│ │ ├── forms/ ← DemoForm, ContactForm, NewsletterForm, PasswordInput, OtpInput
│ │ ├── auth/ ← Shared layout of the authentication pages
│ │ └── ui/ ← Icon, Reveal, Accordion, Collapse, Counter, PageBanner...
│ ├── config/site.ts ← Brand name, contact details, social links
│ ├── data/ ← All demo content (services, projects, posts, team...)
│ ├── lib/ ← Helpers (theme, SEO metadata, class names)
│ ├── proxy.ts ← Real 404 status for unknown detail pages
│ └── styles/ ← style.css (template), icons.css (SVG icons), nextjs.css
├── scripts/update-bootstrap.mjs
├── .env.example
└── package.json
Pages & Routes
| Page | URL | File |
| Home - Cyber Security | / | app/(site)/page.tsx |
| Home - IT Solutions | /home-2 | app/(site)/home-2/page.tsx |
| About | /about | app/(site)/about/page.tsx |
| Services | /services | app/(site)/services/page.tsx |
| Service Details (12 pages) | /services/[slug] | app/(site)/services/[slug]/page.tsx |
| Pricing | /pricing | app/(site)/pricing/page.tsx |
| Case Studies | /case-studies | app/(site)/case-studies/page.tsx |
| Case Study Details (6 pages) | /case-studies/[slug] | app/(site)/case-studies/[slug]/page.tsx |
| Team | /team | app/(site)/team/page.tsx |
| Testimonials | /testimonials | app/(site)/testimonials/page.tsx |
| FAQ | /faq | app/(site)/faq/page.tsx |
| Careers | /careers | app/(site)/careers/page.tsx |
| Blog (search, filters, pagination) | /blog | app/(site)/blog/page.tsx |
| Blog Details (6 pages) | /blog/[slug] | app/(site)/blog/[slug]/page.tsx |
| Contact | /contact | app/(site)/contact/page.tsx |
| Login / Register | /login, /register | app/(auth)/…/page.tsx |
| Forgot / Reset Password | /forgot-password, /reset-password | app/(auth)/…/page.tsx |
| Two-Factor Authentication | /two-factor | app/(auth)/two-factor/page.tsx |
| Coming Soon | /coming-soon | app/coming-soon/page.tsx |
| 404 | any unknown URL | app/not-found.tsx |
Folders in brackets like (site) and (auth) are route groups: they share a layout but don't appear in the URL.
Editing Content
You rarely need to touch the page code. Text, cards and lists come from typed data files:
| File | Contains |
src/config/site.ts | Brand name, tagline, description, email, phone, address, social links, site URL |
src/data/navigation.ts | Main menu (dropdowns and columns) and footer links |
src/data/services.ts | Services (security + IT) including all detail page content |
src/data/projects.ts | Case studies, filters and detail page content |
src/data/posts.ts | Blog posts, authors, demo comments, posts per page |
src/data/content.ts | Team, testimonials, pricing plans, FAQs, jobs, brands, features, process steps, counters, skills |
Your editor shows the available fields as you type (TypeScript), and npm run typecheck catches mistakes such as a missing field.
Adding Pages, Posts, Services & Case Studies
New blog post
Add an object to posts in src/data/posts.ts. It appears on /blog (newest first), gets its own page at /blog/your-slug, is added to the sitemap, and appears in the sidebar categories and tags automatically.
{
slug: "my-new-post",
title: "My New Post",
date: "2026-11-01",
category: "Security",
tags: ["Zero Trust"],
image: "/images/blog/blog-1.jpg",
excerpt: "One or two sentences shown on the card.",
author: "sara-reyes",
content: [
{ type: "p", text: "First paragraph..." },
{ type: "h3", text: "A subheading" },
{ type: "list", items: ["Point one", "Point two"] },
{ type: "quote", text: "A quote.", cite: "- Name" },
{ type: "code", code: "npm run build" },
],
}
New service or case study
Add an entry to src/data/services.ts or src/data/projects.ts. The card, the detail page, the footer (services) and the sitemap update automatically.
New page
Create a folder with a page.tsx inside src/app/(site)/, e.g. src/app/(site)/partners/page.tsx becomes /partners. Build it from the existing sections:
import type { Metadata } from "next";
import { PageBanner } from "@/components/ui/PageBanner";
import { ServicesSection } from "@/components/sections/ServicesSection";
import { CtaSection } from "@/components/sections/CtaSection";
import { securityServices } from "@/data/services";
import { pageMetadata } from "@/lib/metadata";
export const metadata: Metadata = pageMetadata({ title: "Partners", description: "...", path: "/partners" });
export default function PartnersPage() {
return (
<>
<PageBanner title="Partners" crumb="Partners" />
<ServicesSection badge="What We Do" title="Our Services" services={securityServices} />
<CtaSection light />
</>
);
}
Most sections accept a light prop for the light-grey background, so you can alternate white and grey sections.
Colors, Fonts & Logo
Colors
All theme colors are CSS variables at the top of src/styles/style.css:
:root {
--sd-primary: #00d4ff;
--sd-primary-rgb: 0, 212, 255;
--sd-secondary: #7b5cff;
--sd-accent: #22e39a;
--sd-dark: #070d1f;
--sd-gradient: linear-gradient(135deg, #00d4ff 0%, #7b5cff 100%);
}
Dark mode colors are under [data-bs-theme="dark"] in the same file.
Fonts
Fonts are self-hosted with Fontsource (no requests to Google, GDPR friendly). They're imported at the top of src/app/layout.tsx and used through --sd-font-body and --sd-font-heading. To change a font, install it (npm install @fontsource/poppins), replace the imports in layout.tsx and update the two variables.
Logo
The logo is the SVG mark public/images/logo/logo-mark.svg plus live text, defined once in src/components/ui/Logo.tsx (used in the header, footer and auth pages). Full logo files with dark and white text are included in public/images/logo/. Replace src/app/icon.svg and src/app/apple-icon.png for the favicon.
Images
Blog and case study images are 1200 × 800 px (3:2) in public/images/blog/ and public/images/projects/. Replace a file with the same name, or point the image field in the data file to a new one. Any size works: images are cropped to fit, and Next.js serves optimised, responsive versions automatically.
Dark Mode & RTL
Visitors switch with the moon/sun button in the header or the floating gear panel. The choice is saved in the browser and applied before the page paints, so there's no flash.
Set the default
In src/app/layout.tsx:
<html lang="en" dir="ltr" data-bs-theme="light" ...>
// Arabic / Hebrew / Urdu / Persian site, dark by default:
<html lang="ar" dir="rtl" data-bs-theme="dark" ...>
Also change bootstrapImport("ltr") to bootstrapImport("rtl") in the same file when RTL is your default.
Preview links
/?theme=dark /?dir=rtl /?dir=rtl&theme=dark
How it works
- Bootstrap is loaded inside a CSS layer (
@layer bootstrap), so the template's styles always take priority. For RTL, the Bootstrap RTL build is swapped in automatically.
- The template CSS uses logical properties (
margin-inline-start, inset-inline-end…), so layouts mirror in RTL and arrows flip.
- The script that applies the saved choice is in
src/lib/theme-script.ts; the switch functions and React hooks are in src/lib/theme.ts.
Remove the style switcher
Delete <StyleSwitcher /> from app/(site)/layout.tsx, app/(auth)/layout.tsx, app/coming-soon/page.tsx and app/not-found.tsx. The header toggle (<ThemeToggle />) keeps working.
Components
| Component | Usage |
Icon | <Icon name="lock" />: browse every name in the Icon Gallery |
Reveal / RevealLink | Scroll animation: <Reveal className="service-card delay-1">…</Reveal>. Variants: reveal-left, reveal-right, reveal-zoom, delays delay-1…delay-4. Any tag: <Reveal as="h1"> |
SectionTitle | <SectionTitle badge="About Us" title="..." text="..." center={false} /> |
PageBanner | <PageBanner title="Team" crumb="Team" parent={{ label: "About", href: "/about" }} /> |
Counter | <Counter value="99.9" />: counts up when visible |
ProgressBar | <ProgressBar name="Cloud" value={92} /> |
TypedText | <TypedText words={["Ransomware", "Phishing"]} /> |
Accordion / FaqTabs | <Accordion items={faqs} defaultOpen={0} /> |
TestimonialSlider | <TestimonialSlider items={testimonials} interval={6000} />: pauses on hover |
Collapse | Bootstrap-style height animation: <Collapse open={isOpen}>…</Collapse> |
Countdown | <Countdown date="2026-12-31T00:00:00" /> |
PasswordInput | Show/hide, strength meter and matchId (confirm password) |
OtpInput / ResendButton | 6-digit code with auto-advance and paste; resend countdown |
Components that need the browser (state, effects) start with "use client"; everything else is a Server Component, which keeps the JavaScript sent to visitors small.
SEO
- Site URL: set
NEXT_PUBLIC_SITE_URL=https://yourdomain.com in .env.local (used for canonical URLs, Open Graph, sitemap and structured data).
- Page titles and descriptions: each page exports
metadata built with pageMetadata() from src/lib/metadata.ts. Titles follow the template "Page | Shieldra - Cyber Security & IT Solutions". Detail pages use their own title, excerpt and image.
- Sitemap and robots:
/sitemap.xml and /robots.txt are generated from your data (src/app/sitemap.ts, src/app/robots.ts). Authentication pages are noindex.
- Structured data: Organization (all pages) and BlogPosting (articles) JSON-LD.
- Real 404s:
src/proxy.ts returns HTTP 404 for unknown detail URLs (e.g. /blog/old-post) before the page renders.
- Performance: pages are pre-rendered static HTML, images are optimised and lazy-loaded, fonts are self-hosted, and there's no jQuery or Bootstrap JavaScript.
Deployment
Vercel (easiest)
- Push the
shieldra-nextjs folder to a GitHub, GitLab or Bitbucket repository.
- Import it at vercel.com/new. The settings are detected automatically.
- Add your environment variables (site URL, SMTP) and deploy.
Any Node.js host (VPS, cPanel with Node.js, Netlify, Render, Railway, Docker…)
npm install
npm run build
npm start # serves on port 3000 (use PORT=8080 npm start to change it)
Use a process manager such as PM2 to keep it running, behind Nginx or your host's proxy.
Static hosting only (no Node.js)?
The contact email API and the 404 proxy need a Node.js server. For plain static hosting, use the HTML version of Shieldra, or see the Next.js static export guide (you would need to remove the API route and proxy, and use a form service for the contact form).
Credits & Licenses
- Next.js: MIT License, nextjs.org
- React: MIT License, react.dev
- Bootstrap 5.3: MIT License, getbootstrap.com
- Nodemailer: MIT-0 License, nodemailer.com
- Fontsource (MIT) serving Inter, Space Grotesk & Cairo: SIL Open Font License 1.1
- Lucide icons: ISC License, lucide.dev
- Simple Icons (brand logos): CC0 1.0, simpleicons.org
- Font Awesome Free (LinkedIn & Microsoft logos only): CC BY 4.0, fontawesome.com
All images, illustrations and the logo are original artwork included with the template. Names, companies, phone numbers and statistics in the demo content are fictional placeholders. See LICENSES.md for details.
Support
Need help with Shieldra? Our team is happy to assist: