Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Grainpress cafe site

Turn a brief into a single-file site with a distinctive visual style.

示例

English site
在新标签页中打开

English site

该示例在沙盒化的框架中运行,无法访问此页面。

在线运行

免费

在 SandBase sandbox 中运行 Grainpress cafe site 的示例,并在这里查看结果。

你将获得什么

Bring your content, branding details, and site requirements. The Skill returns one HTML file with bundled fonts, responsive layout, and a validator report.

工作原理

  1. 01

    Pick a café identity

    Grainpress Café Site starts from a brief for a café, bakery, bistro, roastery or food counter, and the Agent picks a fictional identity that fits it. It copies assets/template.html to work/src.html and the fonts to work/fonts/. The shipped Grainpress Café sample, a bakehouse and espresso counter with counter, board, classes and visit views plus a 404, is only a placeholder.

  2. 02

    Rewrite the menu data and art

    The page is data-driven. The Agent rewrites BRAND, NAV, STRIP for the chalkboard ticker, ITEMS or BENCH for cards, WEEK for schedule rows, ROUTES and TITLES, then the hero, pull-quote and FAQ markup marked REPLACE. Card art comes from artBlock(), which draws seven kitchen kinds such as wheat, cup, drip and bowl on ember, olive, terracotta, gold or cocoa grounds.

  3. 03

    Build, validate and check both themes

    Everything runs locally on Node. node scripts/inline-assets.mjs work/src.html work/index.html builds the single file, then node scripts/validate.mjs work/index.html --mode site --site-lang en --browser --screenshot work/shots checks it, and exit 0 means ship. Open the shots at 1440 and 390 pixels in day and night themes and confirm there is no sideways scroll or clipped text.

常见问题

What kind of site does Grainpress Café Site make?

Grainpress Café Site makes a one-file website for a café, bakery, bistro or food counter. Panels read as raised ceramic or wood tiles with a light top edge and a soft shadow, buttons are jelly caps with a darker bottom edge, and form fields sit inset in the surface. The hero carries a loyalty stamp card with floating chips.

Does Grainpress Café Site use photos?

No. Grainpress Café Site draws its card art in code with artBlock(), using wheat stalks, tile grids, fan arcs, cups, pour-over drippers, pantry jars and steaming bowls in flat fills with 3 to 4 pixel strokes. You can add your own files under work/images/ and reference them relatively, and the build inlines them. Images from other sites are never linked.

Is Grainpress Café Site free to run?

Yes. Grainpress Café Site is an HTML template plus two Node scripts that inline assets and validate the page, and none of them call a model or an API, so nothing is billed. The art is drawn in code, so there are no images to generate either.

What fonts and colours does Grainpress Café Site use?

Grainpress Café Site bundles Archivo, set at weights 800 to 900 for display and buttons, and Space Mono for small tracked caps such as kickers, tags, ticker items and stamps. Ember #E8631A is the primary action colour, olive, terracotta, gold and cocoa are card grounds, and text on an accent ground is always cream.

Why does the Grainpress Café Site validator need a config copy?

Grainpress Café Site checks required ids for every routed view, so dropping a view such as classes makes validation fail. Copy assets/validate.config.json to work/validate.config.json, shrink requiredIds to the views you kept and pass --config. The ticker strip overhang is the one clip the review allows, so any other cut-off text is a real problem to fix.