A fintech website built with Astro is a static marketing site that explains the product, shows rates and fees from a single dated data source, offers calculators as small scripts, carries the required disclosures on every relevant page, and links out to the app on its own subdomain. Static output and a strict Content Security Policy mean there is very little attack surface on the marketing site, which is what a financial brand wants.
Key Takeaways
- Keep the marketing site (Astro, static) separate from the product app, usually on
app.or a different subdomain.- Store rates, fees and limits in one content collection with an “as of” date, and render every page from it.
- Build calculators with a plain
<script>or a single island; never send user inputs anywhere.- Turn on
security.cspand keep third-party scripts off pages that talk about accounts or money.- Treat disclosures and legal copy as content that your compliance team owns and reviews.
What a fintech website has to do
Visitors to a bank, payments or investing site are deciding whether to trust you with money. The site has to explain a mechanism clearly, show the numbers that matter, and look careful about the details.
| Page | Purpose | Fintech-specific content |
|---|---|---|
| Home | What the product does, for whom | Regulatory status line, key rate or fee |
| Product pages | One per account, card or feature | Rates, fees, limits, eligibility |
| Pricing or fees | All costs in one table | “As of” date, footnotes |
| Security | How funds and data are protected | Plain-language explanation, licence or registration details |
| Calculators | Let visitors try the numbers | Assumptions shown next to results |
| Help and FAQ | Answer common questions | Links to legal documents |
| Legal | Terms, privacy, disclosures | Versioned, dated documents |
| Status | Is the service working | Usually a hosted status page on a subdomain |
The marketing site and the app have different jobs. The app needs authentication, sessions and a backend; the marketing site needs speed, clarity and a small attack surface. Astro is a good fit for the second, and keeping them apart means a marketing deploy never touches the product.
Set up the project
npm create astro@latest -- --template minimal fintech-site
cd fintech-site
npx astro add sitemap
Then turn on Astro’s built-in CSP and set your domain. The config docs explain the other options in this file:
// astro.config.mjs
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://www.example-bank.com',
integrations: [sitemap()],
security: {
csp: true,
},
});
With security.csp enabled, Astro hashes the scripts and styles it bundles and writes a matching policy into each page, so you don’t need 'unsafe-inline'. The Astro CSP guide covers extra directives and allowing specific third-party hosts.
Keep rates and fees in one place
Nothing damages trust faster than a homepage that says one rate and a product page that says another. Put every number in one collection with the date it was last confirmed:
[
{
"id": "savings-instant",
"product": "Instant Access Savings",
"rate": 3.1,
"rateType": "APY",
"fees": "No monthly fee",
"minimumDeposit": 1,
"asOf": "2026-11-01",
"footnote": "Variable rate. May change at any time."
},
{
"id": "savings-fixed-12",
"product": "12-Month Fixed Savings",
"rate": 3.8,
"rateType": "APY",
"fees": "No monthly fee",
"minimumDeposit": 500,
"asOf": "2026-11-01",
"footnote": "Fixed for 12 months. Early withdrawal not permitted."
}
]
// src/content.config.ts
import { defineCollection } from 'astro:content';
import { file } from 'astro/loaders';
import { z } from 'astro/zod';
const rates = defineCollection({
loader: file('src/data/rates.json'),
schema: z.object({
product: z.string(),
rate: z.number().min(0).max(100),
rateType: z.enum(['APY', 'APR', 'AER']),
fees: z.string(),
minimumDeposit: z.number().nonnegative(),
asOf: z.coerce.date(),
footnote: z.string(),
}),
});
export const collections = { rates };
The rates in the example are placeholders. A rate component then renders the number, the type and the date together, so none of them can be dropped by accident:
---
// src/components/Rate.astro
import { getEntry } from 'astro:content';
const { id } = Astro.props;
const entry = await getEntry('rates', id);
if (!entry) throw new Error(`Unknown rate: ${id}`);
const { rate, rateType, asOf, footnote } = entry.data;
const date = asOf.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric', timeZone: 'UTC' });
---
<span class="rate">
<strong>{rate.toFixed(2)}% {rateType}</strong>
<small>As of {date}. {footnote}</small>
</span>
Use <Rate id="savings-instant" /> on the homepage, the product page and the fees table. Changing a rate is a one-line JSON edit and a rebuild. If rates change during the day, load them from your own API with a content loader at build time and trigger a rebuild from the system that sets them, or render just the rates widget on demand with a server island.
Build a calculator without a framework
Savings, loan and fee calculators are some of the most useful pages on a fintech site. Most of them are a formula and a form, which doesn’t need React. Here is a loan repayment calculator using the standard amortization formula:
---
// src/components/LoanCalculator.astro
---
<form class="calc" aria-describedby="calc-note">
<label>Loan amount <input name="amount" type="number" min="100" step="100" value="10000" /></label>
<label>Annual interest rate (%) <input name="rate" type="number" min="0" step="0.1" value="7.5" /></label>
<label>Term (months) <input name="months" type="number" min="1" step="1" value="36" /></label>
<output name="result" aria-live="polite"></output>
<p id="calc-note">Illustration only. Your rate depends on your circumstances.</p>
</form>
<script>
const form = document.querySelector<HTMLFormElement>('.calc');
const money = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' });
function update() {
if (!form) return;
const data = new FormData(form);
const p = Number(data.get('amount'));
const n = Number(data.get('months'));
const r = Number(data.get('rate')) / 100 / 12;
const payment = r === 0 ? p / n : (p * r) / (1 - Math.pow(1 + r, -n));
const total = payment * n;
const out = form.elements.namedItem('result') as HTMLOutputElement;
out.value = Number.isFinite(payment)
? `${money.format(payment)} per month, ${money.format(total - p)} total interest`
: 'Enter an amount, rate and term';
}
form?.addEventListener('input', update);
update();
</script>
All the maths happens in the visitor’s browser and nothing is sent anywhere. Show the assumptions next to the result, round consistently, and ask your compliance team which wording the illustration needs. The script tag guide covers when a script like this should become an island instead.
Disclosures and legal content
Fintech marketing copy usually has to carry disclosures: regulatory status, deposit protection, risk warnings for investing, representative examples for credit. The exact wording depends on your products and jurisdictions, so treat it as content your legal or compliance team writes and approves.
Two practical patterns help:
- A disclosures collection. Each disclosure is a Markdown file with an ID and an
approvedOndate. Pages include them by ID, so one approved text is reused everywhere. - A footer slot per page. The layout renders whatever disclosures the page lists in its frontmatter, so a page about investing can’t ship without its risk warning.
---
// src/components/Disclosures.astro
import { getEntries, render } from 'astro:content';
const { ids } = Astro.props; // e.g. [{ collection: 'disclosures', id: 'fdic' }]
const entries = await getEntries(ids);
const rendered = await Promise.all(entries.map((entry) => render(entry)));
---
<aside class="disclosures" aria-label="Important information">
{rendered.map(({ Content }) => <Content />)}
</aside>
Version legal documents with a visible “last updated” date. Because the site is in Git, every change to a disclosure has an author, a date and a review trail, which compliance teams tend to appreciate.
Security on the marketing site
A static fintech website has no login, database or server code to attack, but it can still be used against your customers. Keep these rules:
- Limit third-party scripts. Every analytics, chat or ad script can read the page. Keep them off pages that discuss accounts, and prefer privacy-focused analytics.
- Use a strict CSP (enabled above) and test it with
astro buildandastro preview, since CSP isn’t applied inastro dev. - Set security headers at the host:
Strict-Transport-Security,X-Content-Type-Options,Referrer-Policyandframe-ancestorsin your CSP to prevent clickjacking. - Send login links to the app’s own domain, and never collect credentials on the marketing site.
- Publish a
security.txtinpublic/.well-known/so researchers know how to report issues.
Our Astro security checklist goes through each of these with config examples.
Accessibility and clarity
Financial sites are used by everyone, including people using screen readers, magnifiers and older devices. Use real tables for rates and fees, label every calculator input, keep contrast high on small print, and write in plain language. Explaining a term like APY next to the number usually does more for conversions than another illustration. The web.dev accessibility guide is a solid reference for the basics.
Start from a fintech theme
A designed starting point saves the slowest part, which is getting the visual tone right for a financial brand. USD Halo is built for a product that has to explain a mechanism, with network, ecosystem and rewards pages, and the Technology category includes banking and fintech designs such as Banca. They’re static Astro projects, so the rates collection, calculator and CSP setup above apply directly.
FAQ
Is Astro secure enough for a fintech website?
For the marketing site, yes. Astro outputs static HTML with no server or database, and its built-in CSP removes the need for 'unsafe-inline'. Account access, payments and customer data belong in a separate application with its own security controls.
Should a fintech marketing site and app share a codebase?
Usually not. Keeping the marketing site separate lets the marketing team ship content without touching the product, and it keeps the attack surface of the public site small. Link to the app on its own subdomain.
How do I keep rates up to date on a static site?
Store rates in one data file or collection with an “as of” date and render every mention from it. Update the file and rebuild, or have the system that sets rates trigger a rebuild through a deploy hook.
Can I build financial calculators in Astro without React?
Yes. A loan or savings calculator is a form and a formula, which a short <script> tag handles. Astro bundles the script, and the calculation runs in the browser without sending inputs to a server.
What should a fintech website include for trust?
Clear product explanations, current rates and fees with dates, regulatory status and disclosures, a security page in plain language, real contact details and fast, accessible pages. Avoid claims you can’t support with a source.