diff --git a/.eleventy.js b/.eleventy.js index 3f7d78f..3a6bc97 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,6 +2,7 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPassthroughCopy("src/css"); eleventyConfig.addPassthroughCopy("src/images"); eleventyConfig.addPassthroughCopy("src/fonts"); + eleventyConfig.addPassthroughCopy("src/favicon.ico"); return { dir: { input: "src", diff --git a/PRODUCT.md b/PRODUCT.md index 13032e9..2b86b9e 100644 --- a/PRODUCT.md +++ b/PRODUCT.md @@ -33,21 +33,21 @@ The name carries this: **2π is a full turn, 360°**, meaning complete, end-to-e ## Operating Context - 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. ## Capabilities and Constraints - 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. -- 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. - 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. ## 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). - Voice: direct and plain, business language before technical language; it should sound like senior people. diff --git a/src/_data/i18n.js b/src/_data/i18n.js index 99e3945..f297b85 100644 --- a/src/_data/i18n.js +++ b/src/_data/i18n.js @@ -157,13 +157,15 @@ module.exports = { submit: "Enviar mensaje", sending: "Enviando…", 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", errors: { name: "Escribe tu nombre para saber a quién responder.", email: "Revisa el email: debe tener el formato nombre@empresa.com.", message: "Cuéntanos en unas líneas qué necesitas resolver.", 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", sending: "Sending…", 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)", errors: { name: "Add your name so we know who to reply to.", email: "Check the email: it should look like name@company.com.", message: "Tell us in a few lines what you need to solve.", 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.", }, }, }, diff --git a/src/_data/site.js b/src/_data/site.js index d3c7a2e..89a0067 100644 --- a/src/_data/site.js +++ b/src/_data/site.js @@ -1,6 +1,8 @@ module.exports = { url: 'https://www.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(), posthogKey: process.env.POSTHOG_API_KEY || null, posthogHost: process.env.POSTHOG_API_HOST || 'https://us.i.posthog.com', diff --git a/src/_includes/head.njk b/src/_includes/head.njk index 14157fb..f4c3a0e 100644 --- a/src/_includes/head.njk +++ b/src/_includes/head.njk @@ -14,7 +14,9 @@ {% endif %} + + {% if site.posthogKey %} diff --git a/src/_includes/landing.njk b/src/_includes/landing.njk index 8b1a140..db9d8a5 100644 --- a/src/_includes/landing.njk +++ b/src/_includes/landing.njk @@ -15,8 +15,7 @@