BS-011 Reconcile accepted homepage composition to approved reference

This commit is contained in:
rob
2026-11-10 16:41:09 +00:00
parent 4f3b75b2b4
commit 33e3413657
27 changed files with 773 additions and 132 deletions
+17 -27
View File
@@ -4,15 +4,15 @@ import { FiArrowRight, FiCode, FiLayers, FiMail, FiMonitor, FiServer, FiTarget,
import styles from "./Homepage.module.scss";
const services = [
{ title: "Website Development", description: "Clear, responsive websites for businesses, research projects and online services.", icon: <FiMonitor aria-hidden="true" /> },
{ title: "Custom Software", description: "Web applications and specialised tools shaped around the way you work.", icon: <FiLayers aria-hidden="true" /> },
{ title: "APIs & Integration", description: "Backend services and integrations that connect your data, systems and workflows.", icon: <FiCode aria-hidden="true" /> },
{ title: "Managed Hosting", description: "Hosting, maintenance and updates, with a level of support agreed for your project.", icon: <FiServer aria-hidden="true" /> },
{ title: "Website Development", description: "Modern, responsive websites and web applications tailored to your needs.", icon: <FiMonitor aria-hidden="true" /> },
{ title: "Custom Software", description: "Bespoke applications that solve real problems and fit your workflow.", icon: <FiLayers aria-hidden="true" /> },
{ title: "APIs & Integration", description: "APIs and system integration to connect your data and services.", icon: <FiCode aria-hidden="true" /> },
{ title: "Managed Hosting", description: "Hosting, maintenance and technical support agreed for your project.", icon: <FiServer aria-hidden="true" /> },
];
const qualities = [
{ title: "End-to-end delivery", description: "A considered path from the first conversation to development and deployment.", icon: <FiZap aria-hidden="true" /> },
{ title: "Practical engineering", description: "Clear choices and maintainable software, focused on what your project needs.", icon: <FiTarget aria-hidden="true" /> },
{ title: "Ongoing support", description: "Hosting, maintenance and further development as your needs evolve.", icon: <FiUsers aria-hidden="true" /> },
{ title: "End-to-end delivery", description: "From initial idea to a fully deployed solution.", icon: <FiZap aria-hidden="true" /> },
{ title: "Practical engineering", description: "Focused, practical and maintainable software.", icon: <FiTarget aria-hidden="true" /> },
{ title: "Ongoing support", description: "Hosting, updates and technical assistance when you need it.", icon: <FiUsers aria-hidden="true" /> },
];
export default function Homepage() {
@@ -25,20 +25,12 @@ export default function Homepage() {
<p className={styles.intro}>Custom development, APIs, hosting and ongoing maintenance for businesses, research projects and online services.</p>
<Link to="/contact" className={`btn btn-primary btn-lg ${styles.primaryCta}`}>Discuss a Project <FiArrowRight aria-hidden="true" /></Link>
</div>
<div className={styles.illustration} aria-hidden="true">
<div className={styles.orbit} />
<div className={styles.diagram}>
<div className={styles.diagramTop}><i /><i /><i /><span /></div>
<div className={styles.diagramBody}>
<div className={styles.diagramSidebar}><span /><span /><span /><span /><span /></div>
<div className={styles.codeLines}>
{[72, 48, 85, 60, 36, 77, 54, 88, 46].map((width, i) => <span key={i} style={{ width: `${width}%` }} />)}
</div>
</div>
<div className={styles.heroArtwork} role="img" aria-label="Approved laptop and workspace hero artwork is missing">
<div className={styles.assetNotice}>
<FiImage aria-hidden="true" />
<span>Approved hero artwork pending</span>
<small>Laptop / workspace visual from the approved reference</small>
</div>
<div className={styles.diagramBase} />
<div className={styles.integration}><FiLayers /><span>Build. Connect. Maintain.</span></div>
<span className={styles.artCaption}>Decorative engineering illustration</span>
</div>
</section>
@@ -48,7 +40,7 @@ export default function Homepage() {
{services.map(({ title, description, icon }) => <Link className={styles.service} to="/services" key={title}>
<div className={styles.serviceIcon}>{icon}</div>
<div><h3>{title}</h3><p>{description}</p></div>
<FiArrowRight className={styles.serviceArrow} aria-hidden="true" />
</Link>)}
</div>
</section>
@@ -59,12 +51,11 @@ export default function Homepage() {
<div className={styles.projectPlaceholder} role="img" aria-label="Placeholder: genuine featured-project screenshot awaiting approval">
<FiImage aria-hidden="true" />
<span>Genuine project screenshot</span>
<small>Awaiting approved imagery</small>
<small>Featured project pending</small>
</div>
<div className={styles.workCopy}>
<p className={styles.pending}>Featured project pending</p>
<h3>A closer look<br />at the work.</h3>
<p>A selected project will be featured here once its details and genuine imagery are approved for publication.</p>
<h3>Featured work</h3>
<p>A selected project will appear here once its details and genuine imagery are approved for publication.</p>
<Link to="/projects" className={styles.textLink}>Visit Projects <FiArrowRight aria-hidden="true" /></Link>
</div>
</div>
@@ -80,9 +71,8 @@ export default function Homepage() {
</section>
<section className={styles.contact} aria-labelledby="contact-title">
<p className="eyebrow">Let’s build something useful</p>
<h2 id="contact-title">Have a project in mind?</h2>
<p>Start with the idea. We’ll work through the possibilities.</p>
<p>Let’s discuss your ideas and find the right solution.</p>
<Link to="/contact" className={`btn btn-primary btn-lg ${styles.primaryCta}`}><FiMail aria-hidden="true" /> Get in Touch</Link>
</section>
</Container>
+195 -51
View File
@@ -1,62 +1,206 @@
.homepage { overflow: clip; }
.homepage {
overflow: clip;
background: radial-gradient(ellipse at 80% 12%, var(--site-glow), transparent 29%);
:global(.container) { width: calc(100% - 112px); max-width: 1280px; padding-inline: 0; }
}
.hero {
display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 2rem;
padding-block: clamp(4rem, 7vw, 7rem) 5.5rem;
position: relative;
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 414px;
padding-block: 44px 60px;
}
.heroCopy {
position: relative; z-index: 1;
:global(.eyebrow) { margin-bottom: 1.5rem; span { margin-left: .7rem; color: var(--site-line); } }
h1 { font-size: clamp(2.7rem, 4.6vw, 4.15rem); letter-spacing: -.05em; line-height: 1.08; margin-bottom: 1.65rem; span { color: var(--site-link); } }
position: relative;
z-index: 1;
width: 485px;
max-width: 110%;
:global(.eyebrow) {
margin: 0 0 19px;
font-size: 14px;
line-height: 22px;
letter-spacing: .15em;
span { margin-left: 7px; color: var(--bs-steel-blue); }
}
h1 {
font-size: clamp(48px, 4.88vw, 66px);
line-height: 1.08;
letter-spacing: -.035em;
font-weight: 700;
margin: 0 0 15px;
span { color: var(--site-link); white-space: nowrap; }
}
}
.intro { font-size: 1.13rem; line-height: 1.65; color: var(--site-muted); max-width: 44ch; margin-bottom: 2rem; }
.primaryCta { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; border-radius: .4rem; padding: .85rem 1.3rem; font-size: 1rem; svg { font-size: 1.15rem; } }
.illustration { position: relative; min-height: 350px; perspective: 1000px; display: grid; align-items: center; isolation: isolate; }
.orbit { position: absolute; inset: -8% -12%; z-index: -1; background: radial-gradient(ellipse at 55% 55%, var(--site-glow), transparent 67%); }
.diagram { width: 94%; height: 254px; background: var(--site-surface); border: 1px solid var(--bs-steel-blue); border-radius: 13px; transform: rotateY(-16deg) rotateX(9deg) rotateZ(-6deg); box-shadow: 12px 28px 60px #00000030, inset 0 0 40px var(--site-glow); overflow: hidden; }
.diagramTop { display: flex; align-items: center; gap: 7px; height: 35px; border-bottom: 1px solid var(--site-line); padding-inline: 14px; i { width: 5px; height: 5px; border-radius: 50%; background: var(--bs-steel-blue); } span { width: 22%; height: 4px; border-radius: 2px; background: var(--site-line); margin-left: auto; } }
.diagramBody { display: grid; grid-template-columns: 22% 1fr; height: calc(100% - 35px); }
.diagramSidebar { padding: 20px 12px; border-right: 1px solid var(--site-line); display: flex; flex-direction: column; gap: 13px; span { height: 3px; border-radius: 2px; background: var(--site-line); } span:nth-child(2) { background: var(--site-link); width: 70%; } }
.codeLines { padding: 24px; display: flex; flex-direction: column; gap: 13px; span { height: 4px; border-radius: 3px; background: var(--site-line); } span:nth-child(3n) { background: var(--bs-steel-blue); margin-left: 13px; } span:nth-child(4n) { background: var(--site-link); } }
.diagramBase { width: 95%; height: 10px; background: var(--site-line); border: 1px solid var(--bs-steel-blue); transform: rotateZ(-6deg) skewX(-35deg); position: absolute; top: 85%; left: -1%; border-radius: 0 0 8px 8px; }
.integration { display: flex; align-items: center; gap: .75rem; position: absolute; right: -1%; bottom: 0; border: 1px solid var(--site-line); background: var(--site-surface); padding: .9rem 1.1rem; border-radius: .45rem; color: var(--site-muted); font-size: .75rem; svg { font-size: 1.5rem; color: var(--site-link); } }
.artCaption { position: absolute; bottom: -1.8rem; right: 0; color: var(--site-muted); font-size: .6rem; letter-spacing: .025em; }
.sectionLabel { display: flex; align-items: center; gap: 1.5rem; font-size: .85rem; font-weight: 700; color: var(--site-link); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 2rem; span { flex: 1; height: 1px; background: linear-gradient(90deg, var(--bs-steel-blue), var(--site-line)); } }
.services, .work, .why { padding-block: 1.5rem 3.5rem; }
.serviceGrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.service { display: grid; grid-template-columns: 70px 1fr 16px; gap: 1.4rem; padding-block: 1.5rem; border-bottom: 1px solid var(--site-line); color: var(--site-text); text-decoration: none;
h3 { font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: .5rem; }
p { color: var(--site-muted); font-size: .95rem; line-height: 1.6; margin: 0; }
&:nth-last-child(-n+2) { border-bottom: 0; }
.intro {
font-size: 17px;
line-height: 25px;
color: var(--site-text);
max-width: 440px;
margin: 0 0 24px;
}
.primaryCta {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 10px 22px;
min-height: 43px;
font-size: 14px;
font-weight: 600;
line-height: 21px;
border-radius: 7px;
svg { width: 19px; height: 19px; }
}
.heroArtwork {
position: absolute;
top: 23px;
right: -56px;
width: 53%;
height: 365px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
}
.assetNotice {
display: flex;
flex-direction: column;
align-items: center;
gap: 9px;
max-width: 310px;
text-align: center;
padding: 25px;
border: 1px dashed var(--site-line);
border-radius: 8px;
color: var(--site-muted);
background: var(--site-surface);
svg { width: 30px; height: 30px; color: var(--site-link); }
span { font-size: 13px; }
small { font-size: 11px; line-height: 1.6; }
}
.sectionLabel {
display: flex;
align-items: center;
gap: 25px;
color: var(--site-link);
font-size: 17px;
line-height: 24px;
font-weight: 600;
letter-spacing: .14em;
text-transform: uppercase;
margin: 0 0 18px;
span { flex: 1; height: 1px; background: var(--bs-steel-blue); opacity: .8; }
}
.services { padding-block: 8px 36px; }
.serviceGrid { display: grid; grid-template-columns: 1.025fr .975fr; column-gap: 48px; }
.service {
display: grid;
grid-template-columns: 75px 1fr;
gap: 36px;
padding: 0 0 21px;
border-bottom: 1px solid var(--site-line);
text-decoration: none;
color: var(--site-text);
&:nth-child(odd) { padding-left: 24px; }
&:nth-last-child(-n+2) { padding-top: 20px; padding-bottom: 0; border-bottom: 0; }
h3 { font-size: 20px; line-height: 26px; letter-spacing: -.035em; font-weight: 600; margin: 0 0 3px; }
p { color: var(--site-text); font-size: 15px; line-height: 23px; margin: 0; }
&:hover h3 { color: var(--site-link); }
}
.serviceIcon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 15px; background: var(--site-surface); color: var(--site-link); svg { width: 32px; height: 32px; stroke-width: 1.4; } }
.serviceArrow { align-self: start; margin-top: .3rem; color: var(--site-muted); }
.workGrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.projectPlaceholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; aspect-ratio: 1.65; border: 1px dashed var(--bs-steel-blue); border-radius: .75rem; background: radial-gradient(ellipse at bottom left, var(--site-glow), transparent 70%), var(--site-surface); color: var(--site-muted); svg { font-size: 2rem; color: var(--site-link); margin-bottom: .5rem; } span { font-size: .9rem; } small { font-size: .75rem; } }
.workCopy { h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.2rem; } > p:not(.pending) { color: var(--site-muted); margin-bottom: 1.5rem; } }
.pending { display: inline-block; border: 1px solid var(--site-line); border-radius: 4px; padding: .25rem .55rem; color: var(--site-muted); font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 1rem; }
.textLink { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-size: .95rem; font-weight: 650; }
.qualityGrid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quality { display: flex; align-items: start; gap: 1rem; padding-inline: 1.75rem; border-left: 1px solid var(--site-line); &:first-child { padding-left: 0; border: 0; } &:last-child { padding-right: 0; } > svg { flex-shrink: 0; width: 28px; height: 28px; color: var(--site-link); margin-top: .15rem; stroke-width: 1.5; } h3 { font-size: 1rem; margin-bottom: .5rem; } p { font-size: .87rem; color: var(--site-muted); line-height: 1.6; margin: 0; } }
.contact { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 3.5rem 2rem; margin-block: 1rem 4.5rem; border: 1px solid var(--site-line); border-radius: 1rem; background: radial-gradient(ellipse at top right, var(--site-glow), transparent 65%), var(--site-surface);
&::after { content: ''; position: absolute; z-index: -1; inset: 60% -15% -80%; background: var(--site-glow); border-top: 1px solid var(--site-line); transform: rotate(-18deg); }
h2 { font-size: clamp(1.9rem, 3.7vw, 3rem); margin-bottom: .8rem; }
> p:not(:global(.eyebrow)) { color: var(--site-muted); margin-bottom: 1.8rem; }
.serviceIcon {
display: grid; place-items: center;
width: 75px; height: 75px;
border-radius: 17px;
background: var(--site-surface);
color: var(--site-link);
svg { width: 40px; height: 40px; stroke-width: 1.4; }
}
@media (max-width: 991.98px) {
.hero { gap: 1rem; } .illustration { min-height: 300px; } .diagram { height: 220px; }
.serviceGrid { column-gap: 2rem; } .service { grid-template-columns: 55px 1fr; gap: 1rem; } .serviceIcon { width: 55px; height: 55px; } .serviceArrow { display: none; }
.workGrid { gap: 2rem; } .quality { padding-inline: 1rem; gap: .7rem; }
.work { padding-block: 14px 32px; }
.workGrid { display: grid; grid-template-columns: 1.414fr 1fr; gap: 48px; align-items: start; }
.projectPlaceholder {
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 9px;
aspect-ratio: 1.9;
border: 1px solid var(--site-line);
border-radius: 12px;
color: var(--site-muted);
background: radial-gradient(ellipse at 45% 85%, var(--site-glow), transparent 65%), var(--site-surface);
svg { width: 36px; height: 36px; color: var(--site-link); margin-bottom: 6px; }
span { font-size: 15px; }
small { font-size: 12px; }
}
.workCopy {
padding-top: 23px;
h3 { font-size: 27px; line-height: 35px; font-weight: 600; margin: 0 0 10px; }
p { font-size: 15px; line-height: 24px; color: var(--site-text); margin: 0 0 18px; }
}
.textLink { display: inline-flex; align-items: center; gap: 16px; font-size: 15px; line-height: 24px; font-weight: 600; text-decoration: none; }
.why { padding-block: 8px 46px; }
.qualityGrid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quality {
display: flex; align-items: start; gap: 15px;
padding-inline: 32px;
border-left: 1px solid var(--site-line);
&:first-child { padding-left: 20px; border: 0; }
&:last-child { padding-right: 0; }
> svg { flex-shrink: 0; width: 34px; height: 34px; color: var(--site-link); margin-top: 4px; stroke-width: 1.5; }
h3 { font-size: 18px; line-height: 24px; letter-spacing: -.04em; font-weight: 600; margin: 0 0 4px; }
p { font-size: 14px; line-height: 22px; color: var(--site-text); margin: 0; }
}
.contact {
position: relative;
isolation: isolate;
overflow: hidden;
text-align: center;
padding: 25px 24px;
margin: 7px -21px 16px;
border: 1px solid var(--site-line);
border-radius: 16px;
background: radial-gradient(ellipse at 100% 0, var(--site-glow), transparent 62%), 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: 74%; height: 130%; left: -20%; top: 78%; transform: rotate(17deg); }
&::after { width: 90%; height: 190%; right: -31%; top: 70%; transform: rotate(-29deg); }
h2 { font-size: 40px; line-height: 48px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.035em; }
> p { font-size: 18px; line-height: 27px; color: var(--site-text); margin: 0 0 24px; }
.primaryCta { min-height: 46px; font-size: 18px; padding-inline: 25px; gap: 10px; svg { width: 23px; height: 23px; } }
}
@media (min-width: 1200px) {
.hero { min-height: 465px; padding-top: 65px; }
.heroCopy { width: 620px; }
.intro { font-size: 19px; line-height: 29px; max-width: 510px; }
.heroArtwork { height: 410px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
.homepage :global(.container) { width: calc(100% - 64px); }
.heroCopy { width: 440px; max-width: 120%; h1 { font-size: 43px; } }
.heroArtwork { right: -32px; width: 45%; }
.assetNotice { padding: 20px; max-width: 235px; }
.intro { max-width: 365px; font-size: 16px; line-height: 25px; }
.serviceGrid { column-gap: 30px; row-gap: 0; }
.service { grid-template-columns: 62px 1fr; gap: 18px; &:nth-child(odd) { padding-left: 0; } h3 { font-size: 17px; } p { font-size: 14px; } }
.serviceIcon { width: 62px; height: 62px; svg { width: 35px; height: 35px; } }
.workGrid { gap: 30px; }
.workCopy { padding-top: 6px; h3 { font-size: 24px; } }
.quality { padding-inline: 14px; gap: 10px; &:first-child { padding-left: 0; } h3 { font-size: 15px; } p { font-size: 13px; } > svg { width: 27px; height: 27px; } }
}
@media (max-width: 767.98px) {
.hero { grid-template-columns: 1fr; padding-block: 3.5rem 3rem; gap: 3rem; }
.heroCopy h1 { font-size: clamp(2.5rem, 8vw, 3.7rem); } .intro { max-width: 48ch; font-size: 1rem; }
.illustration { min-height: 280px; width: min(440px, 92%); margin: 0 auto 1rem; } .diagram { height: 220px; } .integration { bottom: 0; }
.homepage :global(.container) { width: calc(100% - 40px); }
.hero { grid-template-columns: 1fr; min-height: auto; padding-block: 38px 28px; }
.heroCopy { width: auto; max-width: 100%; h1 { font-size: clamp(32px, 7.4vw, 48px); } :global(.eyebrow) { font-size: 11px; margin-bottom: 14px; } }
.intro { font-size: 15px; line-height: 24px; margin-top: 18px; max-width: 42ch; }
.heroArtwork { position: relative; inset: auto; width: 100%; height: 220px; margin-top: 24px; }
.assetNotice { max-width: 290px; padding: 18px; }
.sectionLabel { font-size: 13px; line-height: 22px; gap: 15px; margin-bottom: 20px; }
.services, .work, .why { padding-block: 15px 28px; }
.serviceGrid, .workGrid, .qualityGrid { grid-template-columns: 1fr; }
.service { padding-block: 1.25rem; h3 { font-size: 1.1rem; } &:nth-last-child(2) { border-bottom: 1px solid var(--site-line); } }
.services, .work, .why { padding-block: 1.5rem 2rem; }
.sectionLabel { font-size: .75rem; gap: 1rem; margin-bottom: 1rem; }
.workGrid { gap: 1.5rem; } .workCopy h3 br { display: none; }
.quality { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--site-line); &:first-child { border-bottom: 1px solid var(--site-line); } &:last-child { border-bottom: 0; } h3 { font-size: 1.05rem; } p { font-size: .95rem; } }
.contact { padding: 2.5rem 1.25rem; margin-block: .5rem 3rem; }
.service { grid-template-columns: 62px 1fr; gap: 20px; padding: 0 0 20px; &:nth-child(odd) { padding-left: 0; } &:nth-child(n+2) { padding-top: 20px; } &:nth-last-child(2) { border-bottom: 1px solid var(--site-line); padding-bottom: 20px; } h3 { font-size: 18px; line-height: 24px; } p { font-size: 14px; line-height: 22px; } }
.serviceIcon { width: 62px; height: 62px; border-radius: 14px; svg { width: 35px; height: 35px; } }
.workGrid { gap: 0; }
.workCopy { padding-top: 20px; h3 { font-size: 24px; } }
.projectPlaceholder { span { font-size: 13px; } }
.quality { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--site-line); gap: 15px; &:first-child { padding-left: 0; border-bottom: 1px solid var(--site-line); padding-top: 0; } &:last-child { border-bottom: 0; padding-bottom: 0; } h3 { font-size: 18px; } p { font-size: 14px; } }
.contact { margin: 5px -5px 16px; padding: 25px 17px; h2 { font-size: 28px; line-height: 35px; } > p { font-size: 15px; line-height: 24px; margin-bottom: 20px; } .primaryCta { font-size: 16px; } }
}
@media (max-width: 359.98px) {
.heroCopy h1 { font-size: 30px; }
}