Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions .github/workflows/landing-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Deploy Landing Preview

on:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- "landing/**"
- ".github/actions/setup-node-pnpm/action.yml"
- ".github/workflows/landing-preview.yml"

concurrency:
group: landing-preview-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
deploy-preview:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup Node and pnpm
uses: ./.github/actions/setup-node-pnpm
with:
install-deps: "false"

- name: Verify Vercel token
run: |
if [ -z "$VERCEL_TOKEN" ]; then
echo "VERCEL_TOKEN secret is required for landing previews."
exit 1
fi

- name: Install landing dependencies
working-directory: landing
run: pnpm install --frozen-lockfile

- name: Pull Vercel preview environment
working-directory: landing
run: pnpm dlx vercel@latest pull --yes --environment=preview --token="$VERCEL_TOKEN"

- name: Build landing preview
working-directory: landing
run: pnpm dlx vercel@latest build --token="$VERCEL_TOKEN"

- name: Deploy landing preview
id: deploy
working-directory: landing
run: |
url="$(pnpm dlx vercel@latest deploy --prebuilt --token="$VERCEL_TOKEN")"
echo "url=$url" >> "$GITHUB_OUTPUT"

- name: Comment preview URL
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
PREVIEW_URL: ${{ steps.deploy.outputs.url }}
with:
script: |
const marker = "<!-- agent-device-landing-vercel-preview -->";
const body = `${marker}
### Landing preview

Vercel preview: ${process.env.PREVIEW_URL}`;
const { owner, repo } = context.repo;
const issue_number = context.issue.number;
const comments = await github.paginate(github.rest.issues.listComments, {
owner,
repo,
issue_number,
per_page: 100,
});
const existing = comments.find((comment) => comment.body?.includes(marker));

if (existing) {
await github.rest.issues.updateComment({
owner,
repo,
comment_id: existing.id,
body,
});
} else {
await github.rest.issues.createComment({
owner,
repo,
issue_number,
body,
});
}
41 changes: 41 additions & 0 deletions landing/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
85 changes: 85 additions & 0 deletions landing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Agent Device Landing

Next.js App Router implementation for the new `agent-device.dev` marketing site.

## Development

```bash
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000).

## Validation

```bash
pnpm lint
pnpm build
```

## Notes

The Figma source file is treated as read-only. Local visual assets under `public/figma/` were exported from Figma screenshots so the site does not depend on short-lived Figma asset URLs.

## Figma Source Map

Source file: `Agent Device`, page `Website`, file key `Z6g76cuusJlN9s5agbZRpY`.

Use section-level screenshots and metadata instead of full-page exports. Full-page images are too large and make visual review harder. A current local audit lives in `/private/tmp/agent-device-figma-audit/`.

### Home

| Section | Figma node |
| --- | --- |
| Hero | `39:2482` |
| Nav | `40:6100` |
| Solutions | `39:2501` |
| Lanes | `40:3750` |
| Setup | `40:5567` |
| Cloud/Open | `40:5761` |
| Why | `40:5833` |
| Up-sell | `364:2753` |
| CTA | `40:6008` |
| Insights | `234:2608` |
| Footer | `40:6484` |

### Agentic QA

| Section | Figma node |
| --- | --- |
| Hero | `488:2260` |
| Nav | `488:2353` |
| Solutions | `488:2367` |
| Why | `489:6121` |
| Setup | `488:3121` |
| Solutions | `498:8028` |
| Solutions | `498:8303` |
| CTA | `488:4642` |
| Up-sell | `488:4584` |
| FAQ | `489:7808` |
| Insights | `488:4648` |
| Footer | `488:4695` |

### Agentic Development

| Section | Figma node |
| --- | --- |
| Hero | `498:8567` |
| Nav | `498:8583` |
| Solutions | `498:8597` |
| Why | `498:8627` |
| Setup | `498:8645` |
| Solutions | `498:8652` |
| Setup | `510:2992` |
| Cloud/Open | `510:4422` |
| CTA | `498:8698` |
| Up-sell | `498:8704` |
| FAQ | `498:8762` |
| Insights | `498:8778` |
| Footer | `498:8825` |

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
18 changes: 18 additions & 0 deletions landing/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";

const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
]);

export default eslintConfig;
47 changes: 47 additions & 0 deletions landing/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: "Cross-Origin-Opener-Policy",
value: "same-origin",
},
{
key: "Permissions-Policy",
value:
"camera=(), microphone=(), geolocation=(), payment=(), usb=(), fullscreen=(self)",
},
{
key: "Referrer-Policy",
value: "origin-when-cross-origin",
},
{
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
{
key: "X-Frame-Options",
value: "DENY",
},
],
},
];
},
images: {
deviceSizes: [640, 750, 828, 832, 1056, 1080, 1200, 1920, 2048, 2176, 3840],
},
poweredByHeader: false,
turbopack: {
root: __dirname,
},
};

export default nextConfig;
39 changes: 39 additions & 0 deletions landing/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "landing",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint",
"audit:assets": "node scripts/audit-assets.mjs",
"smoke:browser": "node scripts/browser-smoke.mjs"
},
"dependencies": {
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lottie-react": "^2.4.1",
"next": "16.2.6",
"pixelarticons": "^2.1.1",
"react": "19.2.6",
"react-dom": "19.2.6",
"tailwind-merge": "^3.6.0"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.2.6",
"tailwindcss": "^4",
"typescript": "^5"
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp",
"unrs-resolver"
]
}
}
Loading
Loading