BS-012 Implement accepted Services composition and brief About
This commit is contained in:
+2
-1
@@ -5,9 +5,9 @@ import Footer from "./components/Footer/Footer";
|
||||
import PageMeta from "./components/PageMeta/PageMeta";
|
||||
import Homepage from "./views/Home/Homepage";
|
||||
import RoutePlaceholder from "./views/RoutePlaceholder";
|
||||
import Services from "./views/Services/Services";
|
||||
|
||||
const pages = [
|
||||
["services", "Services", "Website development, custom software, APIs and managed hosting."],
|
||||
["projects", "Projects", "Project details will be added after publication permissions and genuine imagery are confirmed."],
|
||||
["projects/:slug", "Project details", "This case study is not available. Only verified, approved work will be published."],
|
||||
["about", "About BortStack", "Business background and working approach are being prepared."],
|
||||
@@ -24,6 +24,7 @@ export default function App() {
|
||||
<main id="main-content" className="pageContent" tabIndex="-1">
|
||||
<Routes>
|
||||
<Route index element={<><PageMeta /><Homepage /></>} />
|
||||
<Route path="services" element={<><PageMeta title="Services" description="Website development, custom software, API integration and managed hosting from BortStack." /><Services /></>} />
|
||||
{pages.map(([path, title, description]) => (
|
||||
<Route key={path} path={path} element={<>
|
||||
<PageMeta title={title} description={description} noIndex />
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
import { Container } from "react-bootstrap";
|
||||
import { Link } from "react-router-dom";
|
||||
import { FiCode, FiLayers, FiMail, FiMonitor, FiServer } from "react-icons/fi";
|
||||
import styles from "./Services.module.scss";
|
||||
|
||||
const services = [
|
||||
{ id: "website-development", title: "Website Development", icon: <FiMonitor aria-hidden="true" />, description: "Modern, responsive websites and web applications designed for performance, usability and longevity." },
|
||||
{ id: "custom-software", title: "Custom Software", icon: <FiLayers aria-hidden="true" />, description: "Bespoke applications that solve real problems, streamline work and fit your requirements." },
|
||||
{ id: "api-development", title: "APIs & Integration", icon: <FiCode aria-hidden="true" />, description: "API development and system integration to connect your data, services and existing tools." },
|
||||
{ id: "managed-hosting", title: "Managed Hosting", icon: <FiServer aria-hidden="true" />, description: "Hosting, updates and maintenance, with technical support agreed for your project." },
|
||||
];
|
||||
|
||||
function ServicesIllustration() {
|
||||
return <svg className={styles.illustration} viewBox="0 0 600 320" aria-hidden="true" focusable="false">
|
||||
<defs>
|
||||
<linearGradient id="services-panel-fill" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stopColor="var(--site-surface)" stopOpacity=".3" />
|
||||
<stop offset="1" stopColor="var(--site-surface)" stopOpacity=".95" />
|
||||
</linearGradient>
|
||||
<radialGradient id="services-floor-glow">
|
||||
<stop offset="0" stopColor="var(--bs-cyan)" stopOpacity=".18" />
|
||||
<stop offset="1" stopColor="var(--bs-cyan)" stopOpacity="0" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<ellipse cx="365" cy="210" rx="235" ry="62" fill="url(#services-floor-glow)" />
|
||||
<g className={styles.floor} transform="translate(0 30) scale(1 .75)">
|
||||
<path d="M10 208 290 128 595 218 320 307Z M70 225 350 145 M130 244 410 162 M192 262 470 180 M253 281 531 198 M70 191 382 288 M130 174 442 271 M190 157 502 254 M250 140 562 237" />
|
||||
</g>
|
||||
<g className={styles.backPanel}>
|
||||
<path d="M225 92 Q225 85 232 83 L390 38 Q397 36 397 43 L397 144 Q397 151 390 153 L232 198 Q225 200 225 193Z" />
|
||||
</g>
|
||||
<g className={styles.middlePanel}>
|
||||
<path d="M270 119 Q270 112 277 110 L473 55 Q480 53 480 60 L480 166 Q480 173 473 175 L277 230 Q270 232 270 225Z" />
|
||||
<g className={styles.codeLines}>
|
||||
<path d="m285 137 48-14 m-48 27 94-27 m-94 40 74-21 m-74 34 105-30 m-105 43 63-18" />
|
||||
</g>
|
||||
<g fill="var(--site-link)"><circle cx="285" cy="123" r="2.5" /><circle cx="296" cy="120" r="2.5" /><circle cx="307" cy="117" r="2.5" /></g>
|
||||
</g>
|
||||
<g className={styles.frontPanel}>
|
||||
<path d="M330 149 Q330 142 337 140 L558 78 Q565 76 565 83 L565 182 Q565 189 558 191 L337 253 Q330 255 330 248Z" />
|
||||
<path className={styles.panelRule} d="m331 174 233-65" />
|
||||
<g className={styles.codeLines}><path d="m345 187 76-21 m-76 34 57-16 m-57 29 35-10" /></g>
|
||||
<g fill="var(--site-link)"><circle cx="345" cy="157" r="2.8" /><circle cx="357" cy="154" r="2.8" /><circle cx="369" cy="150.5" r="2.8" /></g>
|
||||
<path className={styles.codeSymbol} transform="matrix(1 0 0 .7 0 25)" d="m434 192-19 25 19 13 m39-49-18 61 m39-66 19 14-19 25" />
|
||||
</g>
|
||||
</svg>;
|
||||
}
|
||||
|
||||
export default function Services() {
|
||||
return <div className={styles.servicesPage}>
|
||||
<Container>
|
||||
<section className={styles.hero} aria-labelledby="services-heading">
|
||||
<div className={styles.heroCopy}>
|
||||
<p className={styles.eyebrow}>Services <span aria-hidden="true" /></p>
|
||||
<h1 id="services-heading">Services</h1>
|
||||
<p className={styles.intro}>Practical software development and technical services to build, deploy and support your ideas.</p>
|
||||
</div>
|
||||
<ServicesIllustration />
|
||||
</section>
|
||||
<section className={styles.serviceGrid} aria-label="BortStack services">
|
||||
{services.map(({ id, title, icon, description }) => <article key={id} aria-labelledby={id} className={styles.service}>
|
||||
<div className={styles.icon}>{icon}</div>
|
||||
<div><h2 id={id}>{title}</h2><p>{description}</p></div>
|
||||
</article>)}
|
||||
</section>
|
||||
<section className={styles.contact} aria-labelledby="services-contact-heading">
|
||||
<h2 id="services-contact-heading">Have a project in mind?</h2>
|
||||
<p>Let’s discuss your ideas and find the right solution.</p>
|
||||
<Link to="/contact" className={`btn btn-primary ${styles.contactLink}`}><FiMail aria-hidden="true" /> Get in Touch</Link>
|
||||
</section>
|
||||
</Container>
|
||||
</div>;
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
.servicesPage {
|
||||
overflow: clip;
|
||||
background: radial-gradient(ellipse at 83% 22%, var(--site-glow), transparent 29%);
|
||||
:global(.container) { width: calc(100% - 14.7vw); max-width: 1440px; padding-inline: 0; }
|
||||
}
|
||||
.hero { position: relative; min-height: 283px; padding-top: 34px; }
|
||||
.heroCopy { position: relative; z-index: 1; width: 61%; }
|
||||
.eyebrow {
|
||||
display: flex; align-items: center; gap: 18px; margin: 0 0 9px;
|
||||
color: var(--site-link); font-size: 20px; line-height: 28px; letter-spacing: .15em; font-weight: 600; text-transform: uppercase;
|
||||
span { width: 125px; height: 1px; background: linear-gradient(90deg, var(--bs-steel-blue), transparent); }
|
||||
}
|
||||
.hero h1 { font-size: 70px; line-height: 80px; font-weight: 700; letter-spacing: -.045em; margin: 0 0 2px; }
|
||||
.intro { max-width: 780px; font-size: 23px; line-height: 35px; color: var(--site-text); margin: 0; }
|
||||
.illustration { position: absolute; right: 20px; top: -8px; width: 600px; height: 320px; overflow: visible; }
|
||||
.floor { fill: none; stroke: var(--bs-steel-blue); stroke-width: 1; opacity: .36; }
|
||||
.backPanel, .middlePanel, .frontPanel {
|
||||
fill: url(#services-panel-fill); stroke: var(--site-link); stroke-width: 1.3;
|
||||
}
|
||||
.backPanel { opacity: .75; }
|
||||
.middlePanel { opacity: .85; }
|
||||
.frontPanel { stroke-width: 1.6; filter: drop-shadow(0 12px 15px var(--site-glow)); }
|
||||
.codeLines { fill: none; stroke: var(--site-link); stroke-width: 4; opacity: .38; }
|
||||
.panelRule { stroke: var(--bs-steel-blue); stroke-width: 1; opacity: .7; }
|
||||
.codeSymbol { fill: none; stroke: var(--site-link); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.serviceGrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 58px; }
|
||||
.service {
|
||||
display: grid; grid-template-columns: 110px 1fr; column-gap: 54px;
|
||||
padding: 0 0 27px;
|
||||
border-bottom: 1px solid var(--site-line);
|
||||
&:nth-last-child(-n+2) { padding-top: 32px; padding-bottom: 0; border-bottom: 0; }
|
||||
h2 { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -.025em; margin: 3px 0 5px; }
|
||||
p { margin: 0; color: var(--site-text); font-size: 20px; line-height: 30px; }
|
||||
}
|
||||
.icon {
|
||||
display: grid; place-items: center; width: 110px; height: 110px;
|
||||
border-radius: 24px;
|
||||
background: radial-gradient(ellipse at top left, var(--site-glow), transparent 95%), var(--site-surface);
|
||||
color: var(--site-link);
|
||||
svg { width: 64px; height: 64px; stroke-width: 1.35; }
|
||||
}
|
||||
.contact {
|
||||
position: relative; isolation: isolate; overflow: hidden;
|
||||
border: 1px solid var(--site-line); border-radius: 24px;
|
||||
text-align: center; padding: 24px;
|
||||
margin: 45px -57px 20px -53px;
|
||||
background: radial-gradient(ellipse at top right, var(--site-glow), transparent 65%), var(--site-surface);
|
||||
&::before, &::after { content: ''; position: absolute; z-index: -1; pointer-events: none; border-top: 1px solid var(--site-line); background: var(--site-glow); }
|
||||
&::before { width: 75%; height: 170%; left: -20%; top: 85%; transform: rotate(15deg); }
|
||||
&::after { width: 90%; height: 190%; right: -31%; top: 80%; transform: rotate(-29deg); }
|
||||
h2 { font-size: 46px; line-height: 58px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 6px; }
|
||||
> p { font-size: 24px; line-height: 36px; margin: 0 0 18px; }
|
||||
}
|
||||
.contactLink { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 28px; min-height: 54px; font-size: 22px; line-height: 32px; font-weight: 600; border-radius: 8px; svg { width: 29px; height: 29px; } }
|
||||
// Only Services uses the wider/scaled desktop shell shown in its 1672px reference.
|
||||
@media (min-width: 1200px) {
|
||||
:global(.app):has(.servicesPage) {
|
||||
:global(nav[aria-label="Main navigation"]) {
|
||||
min-height: 80px;
|
||||
&::after { left: 4.78vw; right: 4.78vw; }
|
||||
:global(.container) { width: calc(100% - 14.7vw); max-width: 1440px; min-height: 80px; }
|
||||
:global(.navbar-nav) { column-gap: 45px; }
|
||||
:global(.nav-link) { font-size: 19px; line-height: 28px; }
|
||||
:global(.nav-link[aria-current="page"]) { position: relative; &::after { content: ''; position: absolute; bottom: 1px; left: 16px; right: 16px; height: 2px; background: var(--site-link); } }
|
||||
:global(.navbar-brand a) { gap: 17px; > span:first-child { width: 54px; height: 54px; font-size: 10px; line-height: 13px; } > span:last-child { font-size: 37px; } }
|
||||
}
|
||||
:global(.themeToggle) { width: 100px; height: 42px; &::before { height: 38px; top: 1px; left: -28px; } }
|
||||
:global(.themeChoice) { width: 48px; height: 38px; svg { width: 22px; height: 22px; } }
|
||||
:global(footer .container) { width: calc(100% - 14.7vw); max-width: 1440px; }
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) and (max-width: 1199.98px) {
|
||||
.servicesPage :global(.container) { width: calc(100% - 80px); }
|
||||
.hero { min-height: 255px; padding-top: 32px; }
|
||||
.hero h1 { font-size: 56px; line-height: 68px; }
|
||||
.eyebrow { font-size: 15px; line-height: 23px; }
|
||||
.intro { font-size: 17px; line-height: 27px; }
|
||||
.illustration { width: 420px; height: 224px; right: -25px; top: 5px; }
|
||||
.serviceGrid { column-gap: 35px; }
|
||||
.service { grid-template-columns: 75px 1fr; column-gap: 24px; h2 { font-size: 20px; line-height: 27px; } p { font-size: 15px; line-height: 24px; } }
|
||||
.icon { width: 75px; height: 75px; border-radius: 17px; svg { width: 43px; height: 43px; } }
|
||||
.contact { margin-inline: -15px; border-radius: 16px; h2 { font-size: 36px; line-height: 45px; } > p { font-size: 18px; line-height: 27px; } }
|
||||
.contactLink { font-size: 18px; line-height: 26px; min-height: 46px; svg { width: 23px; height: 23px; } }
|
||||
}
|
||||
@media (max-width: 767.98px) {
|
||||
.servicesPage :global(.container) { width: calc(100% - 40px); }
|
||||
.hero { min-height: auto; padding-top: 32px; padding-bottom: 20px; }
|
||||
.heroCopy { width: 100%; }
|
||||
.eyebrow { font-size: 13px; line-height: 21px; margin-bottom: 10px; }
|
||||
.hero h1 { font-size: 48px; line-height: 58px; margin-bottom: 10px; }
|
||||
.intro { font-size: 16px; line-height: 26px; }
|
||||
.illustration { position: relative; right: auto; top: auto; display: block; width: 100%; height: auto; max-width: 480px; margin: 10px auto 0; }
|
||||
.serviceGrid { grid-template-columns: 1fr; }
|
||||
.service { grid-template-columns: 64px 1fr; column-gap: 20px; padding: 18px 0; &:nth-last-child(-n+2) { padding: 18px 0; border-bottom: 1px solid var(--site-line); } &:last-child { border: 0; } h2 { font-size: 18px; line-height: 25px; margin-top: 0; } p { font-size: 14px; line-height: 23px; } }
|
||||
.icon { width: 64px; height: 64px; border-radius: 14px; svg { width: 37px; height: 37px; } }
|
||||
.contact { margin: 20px -5px; padding: 26px 18px; border-radius: 16px; h2 { font-size: 30px; line-height: 38px; } > p { font-size: 15px; line-height: 24px; margin-bottom: 20px; } }
|
||||
.contactLink { font-size: 16px; line-height: 24px; min-height: 46px; padding-inline: 21px; svg { width: 22px; height: 22px; } }
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { render, screen, within } from "@testing-library/react";
|
||||
import { MemoryRouter } from "react-router-dom";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import Services from "./Services";
|
||||
|
||||
describe("Services page", () => {
|
||||
it("explains all four approved services with agreed support rather than open-ended promises", () => {
|
||||
render(<MemoryRouter><Services /></MemoryRouter>);
|
||||
expect(screen.getByRole("heading", { level: 1, name: "Services" })).toBeInTheDocument();
|
||||
const services = screen.getByRole("region", { name: "BortStack services" });
|
||||
expect(within(services).getAllByRole("article")).toHaveLength(4);
|
||||
for (const title of ["Website Development", "Custom Software", "APIs & Integration", "Managed Hosting"]) {
|
||||
expect(within(services).getByRole("heading", { level: 2, name: title })).toBeInTheDocument();
|
||||
}
|
||||
expect(within(services).getByText(/support agreed for your project/i)).toBeInTheDocument();
|
||||
expect(screen.queryByText(/unlimited|guaranteed uptime|\d+% uptime/i)).not.toBeInTheDocument();
|
||||
});
|
||||
it("links the closing invitation to the existing contact route without inventing a working form", () => {
|
||||
render(<MemoryRouter><Services /></MemoryRouter>);
|
||||
expect(screen.getByRole("link", { name: "Get in Touch" })).toHaveAttribute("href", "/contact");
|
||||
expect(screen.queryByRole("textbox")).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user