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.

Installation

Requirements: Node.js 20.9 or newer (LTS recommended) and npm (included with Node.js).

  1. Unzip the package and open the shieldra-nextjs folder in your editor (e.g. VS Code).
  2. Open a terminal in that folder and install the dependencies:
    npm install
  3. Start the development server and open http://localhost:3000:
    npm run dev
All commands
CommandWhat it does
npm run devDevelopment server with instant reload
npm run buildProduction build (pre-renders all pages)
npm startRuns the production build (after npm run build)
npm run lintChecks the code with ESLint
npm run typecheckChecks TypeScript types
npm run update:bootstrapCopies 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

PageURLFile
Home - Cyber Security/app/(site)/page.tsx
Home - IT Solutions/home-2app/(site)/home-2/page.tsx
About/aboutapp/(site)/about/page.tsx
Services/servicesapp/(site)/services/page.tsx
Service Details (12 pages)/services/[slug]app/(site)/services/[slug]/page.tsx
Pricing/pricingapp/(site)/pricing/page.tsx
Case Studies/case-studiesapp/(site)/case-studies/page.tsx
Case Study Details (6 pages)/case-studies/[slug]app/(site)/case-studies/[slug]/page.tsx
Team/teamapp/(site)/team/page.tsx
Testimonials/testimonialsapp/(site)/testimonials/page.tsx
FAQ/faqapp/(site)/faq/page.tsx
Careers/careersapp/(site)/careers/page.tsx
Blog (search, filters, pagination)/blogapp/(site)/blog/page.tsx
Blog Details (6 pages)/blog/[slug]app/(site)/blog/[slug]/page.tsx
Contact/contactapp/(site)/contact/page.tsx
Login / Register/login, /registerapp/(auth)/…/page.tsx
Forgot / Reset Password/forgot-password, /reset-passwordapp/(auth)/…/page.tsx
Two-Factor Authentication/two-factorapp/(auth)/two-factor/page.tsx
Coming Soon/coming-soonapp/coming-soon/page.tsx
404any unknown URLapp/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:

FileContains
src/config/site.tsBrand name, tagline, description, email, phone, address, social links, site URL
src/data/navigation.tsMain menu (dropdowns and columns) and footer links
src/data/services.tsServices (security + IT) including all detail page content
src/data/projects.tsCase studies, filters and detail page content
src/data/posts.tsBlog posts, authors, demo comments, posts per page
src/data/content.tsTeam, 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
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

ComponentUsage
Icon<Icon name="lock" />: browse every name in the Icon Gallery
Reveal / RevealLinkScroll 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
CollapseBootstrap-style height animation: <Collapse open={isOpen}>…</Collapse>
Countdown<Countdown date="2026-12-31T00:00:00" />
PasswordInputShow/hide, strength meter and matchId (confirm password)
OtpInput / ResendButton6-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.

Forms & Contact Email

Contact form

The contact form (src/components/forms/ContactForm.tsx) validates in the browser and posts to /api/contact (src/app/api/contact/route.ts). That route validates again on the server, blocks spam bots with a hidden honeypot field, and emails you using SMTP. Any provider works (your host, Google Workspace, Microsoft 365, Amazon SES, Mailgun, SendGrid, Brevo…).

Add your settings to .env.local:

SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_SECURE=false          # true for port 465
SMTP_USER=your-smtp-username
SMTP_PASS=your-smtp-password
CONTACT_TO_EMAIL=your-email@example.com
CONTACT_FROM_EMAIL="Shieldra Website <no-reply@yourdomain.com>"

Until SMTP is configured, the form shows a friendly "not configured yet" message. On Vercel or other hosts, add the same variables in the project's environment settings.

Other forms

Login, register, newsletter, comments and the auth forms use <DemoForm>: Bootstrap validation plus a demo success message. Connect them to your backend with the onValidSubmit prop (inside a client component), or replace them with your auth provider (e.g. Auth.js, Clerk, Supabase).

<DemoForm successMessage="Subscribed!" onValidSubmit={async (data) => {
  await fetch("/api/subscribe", { method: "POST", body: data });
}}>...</DemoForm>

SEO

Deployment

Vercel (easiest)
  1. Push the shieldra-nextjs folder to a GitHub, GitLab or Bitbucket repository.
  2. Import it at vercel.com/new. The settings are detected automatically.
  3. 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

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: