Compare commits

...

5 Commits

Author SHA1 Message Date
Jose Selesan
554fdc25fe Merge branch 'main' of https://git.2pidev.com/jselesan/landing-2pi 2026-11-10 12:15:04 -03:00
Jose Selesan
ca3c7beb96 Updated gitignore 2026-11-10 12:14:34 -03:00
1f12454653 Merge pull request 'logo-web3forms' (#2) from logo-web3forms into main
Reviewed-on: #2
2026-11-06 01:43:45 +00:00
Jose Selesan
6df50f7d66 Move the contact form from FormSubmit to Web3Forms
The form now posts with fetch. On success it goes to the thanks page; if
the provider fails or is down, it shows an inline message with a mailto
link prefilled with what the visitor wrote, instead of leaving them on
the provider's error page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:39:20 -03:00
Jose Selesan
2b5523a039 Switch to the "2π dev" wordmark and new favicon set
Header and thanks page use the horizontal wordmark; the footer uses its
dark variant. Adds favicon.ico and an apple-touch-icon, and removes the
old logo files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:37:43 -03:00
16 changed files with 60 additions and 38 deletions

View File

@@ -2,6 +2,7 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("src/css"); eleventyConfig.addPassthroughCopy("src/css");
eleventyConfig.addPassthroughCopy("src/images"); eleventyConfig.addPassthroughCopy("src/images");
eleventyConfig.addPassthroughCopy("src/fonts"); eleventyConfig.addPassthroughCopy("src/fonts");
eleventyConfig.addPassthroughCopy("src/favicon.ico");
return { return {
dir: { dir: {
input: "src", input: "src",

1
.gitignore vendored
View File

@@ -7,6 +7,7 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
lerna-debug.log* lerna-debug.log*
.pnpm-debug.log* .pnpm-debug.log*
.impeccable
# Diagnostic reports (https://nodejs.org/api/report) # Diagnostic reports (https://nodejs.org/api/report)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

View File

@@ -33,21 +33,21 @@ The name carries this: **2π is a full turn, 360°**, meaning complete, end-to-e
## Operating Context ## Operating Context
- Buyers evaluate the studio from the landing page, often comparing several vendors, before reaching out. - Buyers evaluate the studio from the landing page, often comparing several vendors, before reaching out.
- The conversion path is a contact form (name, company, email, message) sent through FormSubmit, which redirects to `/gracias`. - The conversion path is a contact form (name, company, email, message) sent through Web3Forms (posted with fetch; on success the page goes to `/gracias`, on failure it offers a prefilled email link).
- Analytics: PostHog (key via `POSTHOG_API_KEY`) and an OpenReplay session-recording snippet are currently on the page. - Analytics: PostHog (key via `POSTHOG_API_KEY`) and an OpenReplay session-recording snippet are currently on the page.
## Capabilities and Constraints ## Capabilities and Constraints
- Services offered (from the current site): custom software, process automation, systems integration, web and mobile apps (iOS/Android), cloud architecture. - Services offered (from the current site): custom software, process automation, systems integration, web and mobile apps (iOS/Android), cloud architecture.
- Working stack: .NET, TypeScript, React, PostgreSQL, AWS. - Working stack: .NET, TypeScript, React, PostgreSQL, AWS.
- Site stack: static Eleventy + Tailwind CSS, built with Bun, served by Nginx through Docker on Dokploy. There is no backend; the form posts to FormSubmit. - Site stack: static Eleventy + Tailwind CSS, built with Bun, served by Nginx through Docker on Dokploy. There is no backend; the form posts to Web3Forms.
- Languages: Spanish (neutral Latin American, **tú**) is primary; English is built alongside it for English-speaking clients. - Languages: Spanish (neutral Latin American, **tú**) is primary; English is built alongside it for English-speaking clients.
- Response time: every inquiry gets a reply within **1 business day** (confirmed). A written proposal is delivered before the client commits (confirmed). - Response time: every inquiry gets a reply within **1 business day** (confirmed). A written proposal is delivered before the client commits (confirmed).
- **Undecided:** where the studio is based and whether to say so publicly; pricing or engagement model; whether to keep OpenReplay session recording. - **Undecided:** where the studio is based and whether to say so publicly; pricing or engagement model; whether to keep OpenReplay session recording.
## Brand Commitments ## Brand Commitments
- Name: **2piDev**, with the 2π mark (`src/images/logo.svg`, `logo-64x64.png`, `favicon.svg`). - Name: **2piDev**, with the "2π dev" wordmark (`src/images/logo-horizontal.svg`, dark variant `logo-horizontal-dark.svg`) and the 2π favicon (`favicon.svg`, `/favicon.ico`, `apple-touch-icon.png`).
- 2π = full circle / 360° = end-to-end delivery (confirmed meaning). - 2π = full circle / 360° = end-to-end delivery (confirmed meaning).
- Voice: direct and plain, business language before technical language; it should sound like senior people. - Voice: direct and plain, business language before technical language; it should sound like senior people.

View File

@@ -157,13 +157,15 @@ module.exports = {
submit: "Enviar mensaje", submit: "Enviar mensaje",
sending: "Enviando…", sending: "Enviando…",
privacy: privacy:
"El formulario se envía a través de FormSubmit solo para responderte. Usamos analítica (PostHog y OpenReplay) para mejorar el sitio; lo que escribes en el formulario no se registra en esas herramientas.", "El formulario se envía a través de Web3Forms solo para responderte. Usamos analítica (PostHog y OpenReplay) para mejorar el sitio; lo que escribes en el formulario no se registra en esas herramientas.",
subject: "Nueva consulta desde 2pidev.com", subject: "Nueva consulta desde 2pidev.com",
errors: { errors: {
name: "Escribe tu nombre para saber a quién responder.", name: "Escribe tu nombre para saber a quién responder.",
email: "Revisa el email: debe tener el formato nombre@empresa.com.", email: "Revisa el email: debe tener el formato nombre@empresa.com.",
message: "Cuéntanos en unas líneas qué necesitas resolver.", message: "Cuéntanos en unas líneas qué necesitas resolver.",
summary: "Revisa los campos marcados para poder enviar el mensaje.", summary: "Revisa los campos marcados para poder enviar el mensaje.",
send: "No pudimos enviar tu mensaje. Inténtalo de nuevo en un momento o escríbenos a",
sendMail: "el correo se abre con lo que ya escribiste.",
}, },
}, },
}, },
@@ -340,13 +342,15 @@ module.exports = {
submit: "Send message", submit: "Send message",
sending: "Sending…", sending: "Sending…",
privacy: privacy:
"The form is sent through FormSubmit only so we can reply to you. We use analytics (PostHog and OpenReplay) to improve the site; what you type in the form is not recorded in those tools.", "The form is sent through Web3Forms only so we can reply to you. We use analytics (PostHog and OpenReplay) to improve the site; what you type in the form is not recorded in those tools.",
subject: "New inquiry from 2pidev.com (EN)", subject: "New inquiry from 2pidev.com (EN)",
errors: { errors: {
name: "Add your name so we know who to reply to.", name: "Add your name so we know who to reply to.",
email: "Check the email: it should look like name@company.com.", email: "Check the email: it should look like name@company.com.",
message: "Tell us in a few lines what you need to solve.", message: "Tell us in a few lines what you need to solve.",
summary: "Check the highlighted fields to send your message.", summary: "Check the highlighted fields to send your message.",
send: "We couldn't send your message. Try again in a moment, or email us at",
sendMail: "the email opens with what you already wrote.",
}, },
}, },
}, },

View File

@@ -1,6 +1,8 @@
module.exports = { module.exports = {
url: 'https://www.2pidev.com', url: 'https://www.2pidev.com',
email: 'hola@2pidev.com', email: 'hola@2pidev.com',
// Web3Forms public access key (meant to live in the page; it only lets the form deliver to our inbox)
web3formsKey: 'd6d650a2-aca0-45fd-abf2-2c9729444640',
year: new Date().getFullYear(), year: new Date().getFullYear(),
posthogKey: process.env.POSTHOG_API_KEY || null, posthogKey: process.env.POSTHOG_API_KEY || null,
posthogHost: process.env.POSTHOG_API_HOST || 'https://us.i.posthog.com', posthogHost: process.env.POSTHOG_API_HOST || 'https://us.i.posthog.com',

View File

@@ -14,7 +14,9 @@
<meta property="og:description" content="{{ t.meta.description }}"> <meta property="og:description" content="{{ t.meta.description }}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}"> <meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:locale" content="{{ 'es_419' if t.htmlLang == 'es' else 'en_US' }}">{% endif %} <meta property="og:locale" content="{{ 'es_419' if t.htmlLang == 'es' else 'en_US' }}">{% endif %}
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/images/favicon.svg" type="image/svg+xml"> <link rel="icon" href="/images/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/images/apple-touch-icon.png">
<link rel="preload" href="/fonts/schibsted-latin.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="/fonts/schibsted-latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="/css/styles.css"> <link rel="stylesheet" href="/css/styles.css">
{% if site.posthogKey %} {% if site.posthogKey %}

View File

@@ -15,8 +15,7 @@
<header class="site-header" data-header> <header class="site-header" data-header>
<div class="shell flex h-full items-center justify-between gap-4"> <div class="shell flex h-full items-center justify-between gap-4">
<a href="{{ t.home }}" class="flex items-center gap-2.5 rounded-md" aria-label="{{ t.nav.home }}"> <a href="{{ t.home }}" class="flex items-center gap-2.5 rounded-md" aria-label="{{ t.nav.home }}">
<img src="/images/logo-64x64.png" width="32" height="32" alt="" class="h-8 w-8"> <img src="/images/logo-horizontal.svg" width="80" height="36" alt="" class="h-9 w-auto">
<span class="text-lg font-semibold tracking-[-0.02em]">2piDev</span>
</a> </a>
<nav class="hidden items-center lg:flex" aria-label="{{ t.nav.main }}"> <nav class="hidden items-center lg:flex" aria-label="{{ t.nav.main }}">
<a class="nav-link" href="#process">{{ t.nav.process }}</a> <a class="nav-link" href="#process">{{ t.nav.process }}</a>
@@ -222,16 +221,18 @@
<p class="mt-8 text-night-muted">{{ t.contact.orEmail }} <a class="night-link" href="mailto:{{ site.email }}">{{ site.email }}</a></p> <p class="mt-8 text-night-muted">{{ t.contact.orEmail }} <a class="night-link" href="mailto:{{ site.email }}">{{ site.email }}</a></p>
</div> </div>
<form class="lg:col-span-7" action="https://formsubmit.co/{{ site.email }}" method="POST" data-contact-form <form class="lg:col-span-7" action="https://api.web3forms.com/submit" method="POST" data-contact-form
data-sending="{{ fm.sending }}" data-sending="{{ fm.sending }}" data-thanks="{{ t.thanksUrl }}" data-email="{{ site.email }}"
data-err-send="{{ fm.errors.send }}" data-err-send-mail="{{ fm.errors.sendMail }}"
data-err-name="{{ fm.errors.name }}" data-err-email="{{ fm.errors.email }}" data-err-name="{{ fm.errors.name }}" data-err-email="{{ fm.errors.email }}"
data-err-message="{{ fm.errors.message }}" data-err-summary="{{ fm.errors.summary }}"> data-err-message="{{ fm.errors.message }}" data-err-summary="{{ fm.errors.summary }}">
<input type="hidden" name="_next" value="{{ t.thanksUrl }}"> <input type="hidden" name="access_key" value="{{ site.web3formsKey }}">
<input type="hidden" name="_subject" value="{{ fm.subject }}"> <input type="hidden" name="subject" value="{{ fm.subject }}">
<input type="hidden" name="_template" value="table"> <input type="hidden" name="from_name" value="2pidev.com">
<input type="hidden" name="redirect" value="{{ t.thanksUrl }}">
<input type="hidden" name="idioma" value="{{ t.htmlLang }}"> <input type="hidden" name="idioma" value="{{ t.htmlLang }}">
<div class="absolute -left-[9999px] h-px w-px overflow-hidden" aria-hidden="true"> <div class="absolute -left-[9999px] h-px w-px overflow-hidden" aria-hidden="true">
<label>Leave empty <input type="text" name="_honey" tabindex="-1" autocomplete="off"></label> <label>Leave empty <input type="checkbox" name="botcheck" tabindex="-1" autocomplete="off"></label>
</div> </div>
<div class="form-summary mb-6" role="alert" tabindex="-1" data-form-summary hidden></div> <div class="form-summary mb-6" role="alert" tabindex="-1" data-form-summary hidden></div>
@@ -270,8 +271,8 @@
<footer class="night border-t border-white/10"> <footer class="night border-t border-white/10">
<div class="shell flex flex-col gap-6 py-10 sm:flex-row sm:items-center sm:justify-between"> <div class="shell flex flex-col gap-6 py-10 sm:flex-row sm:items-center sm:justify-between">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<img src="/images/logo-64x64.png" width="28" height="28" alt="" class="h-7 w-7"> <img src="/images/logo-horizontal-dark.svg" width="71" height="32" alt="2piDev" class="h-8 w-auto">
<p class="text-sm text-night-muted"><span class="font-semibold text-white">2piDev</span> · {{ t.footer.rights }}</p> <p class="text-sm text-night-muted">{{ t.footer.rights }}</p>
</div> </div>
<div class="flex items-center gap-6 text-sm text-night-muted"> <div class="flex items-center gap-6 text-sm text-night-muted">
<a class="hover:text-white" href="mailto:{{ site.email }}">{{ site.email }}</a> <a class="hover:text-white" href="mailto:{{ site.email }}">{{ site.email }}</a>
@@ -423,11 +424,39 @@
firstBad.el.focus(); firstBad.el.focus();
return; return;
} }
// Send in the background so a provider outage never leaves the visitor on an error page
e.preventDefault();
summary.hidden = true; summary.hidden = true;
submit.setAttribute('aria-busy', 'true'); submit.setAttribute('aria-busy', 'true');
submitLabel.textContent = form.dataset.sending; submitLabel.textContent = form.dataset.sending;
if (window.posthog) window.posthog.capture('contact_form_submitted', { lang: document.documentElement.lang }); var lang = document.documentElement.lang;
fetch(form.action, { method: 'POST', body: new FormData(form), headers: { Accept: 'application/json' } })
.then(function (r) { return r.json().then(function (d) { if (!r.ok || !d.success) throw new Error(d.message || r.status); }); })
.then(function () {
if (window.posthog) window.posthog.capture('contact_form_submitted', { lang: lang });
window.location.href = new URL(form.dataset.thanks).pathname;
})
.catch(function () {
if (window.posthog) window.posthog.capture('contact_form_failed', { lang: lang });
sendFailed();
}); });
});
// Fallback when sending fails: an email link that carries what the visitor already wrote
function sendFailed() {
submit.removeAttribute('aria-busy');
submitLabel.textContent = idleLabel;
var v = function (sel) { return form.querySelector(sel).value.trim(); };
var body = v('#f-message') + '\n\n— ' + v('#f-name') + (v('#f-company') ? ', ' + v('#f-company') : '') + '\n' + v('#f-email');
var link = document.createElement('a');
link.className = 'night-link';
link.href = 'mailto:' + form.dataset.email + '?subject=' + encodeURIComponent(form.querySelector('[name=subject]').value) + '&body=' + encodeURIComponent(body);
link.textContent = form.dataset.email;
summary.textContent = '';
summary.append(form.dataset.errSend + ' ', link, ': ' + form.dataset.errSendMail);
summary.hidden = false;
summary.focus();
}
// Restore the button if the visitor comes back with the browser's back button // Restore the button if the visitor comes back with the browser's back button
var idleLabel = submitLabel.textContent; var idleLabel = submitLabel.textContent;

View File

@@ -10,8 +10,7 @@
<header class="site-header border-line" data-scrolled> <header class="site-header border-line" data-scrolled>
<div class="shell flex h-full items-center justify-between gap-4"> <div class="shell flex h-full items-center justify-between gap-4">
<a href="{{ t.home }}" class="flex items-center gap-2.5 rounded-md" aria-label="{{ t.nav.home }}"> <a href="{{ t.home }}" class="flex items-center gap-2.5 rounded-md" aria-label="{{ t.nav.home }}">
<img src="/images/logo-64x64.png" width="32" height="32" alt="" class="h-8 w-8"> <img src="/images/logo-horizontal.svg" width="80" height="36" alt="" class="h-9 w-auto">
<span class="text-lg font-semibold tracking-[-0.02em]">2piDev</span>
</a> </a>
</div> </div>
</header> </header>

File diff suppressed because one or more lines are too long

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 562 B

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 33 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg version="1.0" width="364.77386pt" height="371.71338pt" viewBox="0 0 364.77386 371.71338" preserveAspectRatio="xMidYMid" id="svg5" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(0.1,0,0,-0.1,-101.29014,527.91162)" fill="#ff7f2a" stroke="none">
<path d="m 2640,5268 c -315,-51 -458,-99 -682,-231 -304,-180 -543,-439 -699,-760 -62,-127 -61,-154 1,-34 194,380 603,699 1045,816 42,11 61,14 190,37 124,21 431,13 565,-15 495,-104 901,-396 1150,-826 28,-48 50,-90 50,-93 0,-4 9,-24 20,-44 41,-78 100,-263 125,-398 33,-177 31,-476 -5,-640 -47,-218 -119,-391 -238,-571 -160,-244 -337,-414 -572,-552 -277,-162 -548,-233 -885,-231 -191,1 -123,-15 97,-23 111,-4 194,-2 245,6 43,7 92,15 108,17 122,19 317,77 437,129 375,165 702,475 876,830 62,125 69,144 102,243 144,446 116,917 -81,1332 -72,151 -187,324 -293,439 -163,175 -327,297 -541,401 -264,127 -514,182 -810,179 -82,-1 -175,-6 -205,-11 z" />
</g>
<g transform="matrix(-0.0995434,0.00954526,0.00954526,0.0995434,431.37848,-182.09797)" fill="#0079ff" stroke="none">
<path d="m 2640,5268 c -315,-51 -458,-99 -682,-231 -304,-180 -543,-439 -699,-760 -62,-127 -61,-154 1,-34 194,380 603,699 1045,816 42,11 61,14 190,37 124,21 431,13 565,-15 495,-104 901,-396 1150,-826 28,-48 50,-90 50,-93 0,-4 9,-24 20,-44 41,-78 100,-263 125,-398 33,-177 31,-476 -5,-640 -47,-218 -119,-391 -238,-571 -160,-244 -337,-414 -572,-552 -277,-162 -548,-233 -885,-231 -191,1 -123,-15 97,-23 111,-4 194,-2 245,6 43,7 92,15 108,17 122,19 317,77 437,129 375,165 702,475 876,830 62,125 69,144 102,243 144,446 116,917 -81,1332 -72,151 -187,324 -293,439 -163,175 -327,297 -541,401 -264,127 -514,182 -810,179 -82,-1 -175,-6 -205,-11 z" />
</g>
<text xml:space="preserve" style="font-weight:600;font-size:241.212px;font-family:Rajdhani;fill:#ff7f2a;fill-rule:evenodd;stroke-width:20.1011" x="44.012177" y="278.01367" transform="scale(1.0552555,0.9476378)">2</text>
<g style="fill:#0079ff;fill-rule:evenodd" transform="matrix(0.28537283,0,0,0.29925605,165.05807,115.98893)">
<path fill-rule="nonzero" d="m 0,150.27 18.66,1.39 C 38,129.78 45.6,65.06 159.61,77.72 155.47,355.03 33.86,384.28 41.46,441.17 c 2.76,32.24 28.33,52.05 55.96,53.2 87.3,-2.99 83.38,-120.68 110.56,-417.34 H 320.6 c -5.98,104.57 -22.34,209.13 -24.18,311.63 1.38,68.17 42.84,104.56 97.43,105.02 89.82,3 118.15,-101.8 118.15,-146.48 h -19.35 c -1.84,36.85 -19.57,63.34 -57.35,64.95 C 332.35,413.53 389.01,231.12 389.7,78.41 L 512,79.11 511.31,1.03 C 2.98,-1.44 67.5,-11.4 0,150.27 Z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB