企业官网与品牌落地页,能直接交付的前端题目

前面写了不少偏工具类的组件,这次回到最经典的场景------企业官网。别小看官网,从布局、字体、间距到移动端适配,一堆细节能抠半天。下面这5个题目都是真实接单时遇到的需求,没有花哨的动效,就是实打实的结构和样式。英文提示词放在前面,拿去给客户看或者自己练都行。

  1. 科技公司产品展示页(三列卡片 + 响应式)

Design a product showcase page for a tech company. The page should have: a hero section with a headline ("Innovative Solutions for Modern Business"), a subheadline, and a "Contact Sales" button. Below the hero, three product cards in a row (desktop) / stacked on mobile. Each card has an icon (FontAwesome or SVG placeholder), product name (Cloud Platform, AI Analytics, Security Suite), a short description (2 sentences), and a "Learn More" link. At the bottom, a simple footer with copyright and links to Privacy and Terms. On hover over cards, only the border color changes to brand blue (#0066cc) and the background shifts to very light gray (#f9f9f9). No scaling, no translation. The hero button should have a hover color change only. Use CSS Grid for layout. Responsive breakpoints: desktop 1200px (3 columns), tablet 768px (2 columns), mobile (1 column). All content hardcoded in HTML/CSS. No JavaScript required except for basic interactivity (hover is CSS). Provide a clean sans-serif font (system default, or Google Fonts Open Sans). No animations.

说人话:就是那种科技公司官网的标准首页。三列卡片、大标题、联系按钮。移动端适配好了才算完事。

  1. 餐饮品牌菜单展示页(图库 + 分类标签)

Build a restaurant menu showcase page with category filters. Hardcode 12 menu items, each with: name, description, price, category (Appetizer, Main Course, Dessert, Drink), and an image placeholder (solid color or emoji). Display items in a responsive grid (3 columns desktop). Above the grid, show category buttons: "All", "Appetizer", "Main Course", "Dessert", "Drink". Clicking a button filters the grid to show only items from that category (no animation, just re-render). Highlight the active category button with a different background color. Also provide a simple search input that filters items by name (case-insensitive substring match). The search and category filter should work together (AND logic). No backend, all data in a JavaScript array. Use vanilla JS to re-render the grid on filter changes. The page should also include a hero section with the restaurant name, tagline, and a full-width background color or subtle pattern. Footer with hours and location. No animations, no hover effects except button color change. Responsive layout required.

适合场景:餐厅或咖啡店官网的核心模块。分类筛选加搜索,做完了可以直接套到作品集里。

  1. 咨询服务公司落地页(表单 + 信任标识)

Create a lead generation landing page for a consulting firm. Sections:

  • Hero: headline "Grow Your Business with Expert Guidance", subheadline, and a bright call-to-action button "Get Free Consultation".

  • A simple contact form: name, email, phone, message. Validate that all fields are non-empty and email format is valid. On submit, prevent default, show a success message ("Thank you! We'll contact you within 24 hours") and clear the form. Do not send data anywhere -- just front-end demo.

  • "Why Choose Us" section: three columns with icons (Experience, Tailored Solutions, Proven Results) and short text.

  • Trust bar: logos of 4 fake clients (or placeholder images) displayed in a row.

  • Footer with address and social media icons (FontAwesome).

The form should not use any backend; all validation happens in JavaScript. On validation error, show inline red messages under each field. No animations, no popup modals. Use CSS Flexbox/Grid. Mobile responsive: form stacks below hero on mobile. Provide a "Reset" button to clear form. The page must look professional, with ample whitespace, consistent color scheme (navy blue + white + gold accent). No external libraries except FontAwesome for icons.

核心价值:企业官网的询盘表单是刚需。前端校验、成功提示、清空表单,逻辑简单但容易漏掉边界条件。

  1. 个人作品集模板(项目案例 + 技能标签)

Design a personal portfolio page for a freelance developer or designer. Sections:

  • Navigation (sticky on scroll? not required -- just static header with links: Work, About, Contact).

  • Hero: name, title, short bio, and a "View Work" button that scrolls to projects section (smooth scroll allowed? To avoid animation, use instant jump with anchor links -- no smooth scroll).

  • Projects section: 4 project cards (2x2 grid on desktop). Each card has project title, a brief description, and a list of tech tags (e.g., React, Node, MongoDB) styled as small rounded pills. No hover effect besides link color change.

  • About section: profile picture placeholder, a few sentences about experience, and a list of skills (HTML, CSS, JS, etc.) displayed as tags.

  • Contact section: email address (mailto link) and links to GitHub/LinkedIn (using FontAwesome icons).

  • Footer.

All content hardcoded. No form, no JavaScript required (except possibly for mobile menu toggle? No -- keep navigation simple as inline links that wrap on mobile). Responsive: on mobile, navigation links stack or wrap, project cards become 1 column. Use CSS Grid for projects. No animations. The page must be self-contained in one HTML/CSS file.

说人话:就是你自己用的那种作品集页面。不用花里胡哨的动效,结构和内容干净就行。技能标签做成小圆块,看着专业。

  1. 非营利组织活动推广页(倒计时 + 捐款按钮)

Build a charity event landing page. Features:

  • Hero image placeholder (solid color with overlay text) featuring event name "Walk for Water 2025" and date "October 18, 2025".

  • Countdown timer showing days, hours, minutes, seconds until the event date (hardcode target date as October 18, 2025, 09:00:00). The timer updates every second using JavaScript (no animation besides text update). When timer reaches zero, display "Event Started" instead.

  • About section describing the cause.

  • Registration section: a simple button "Register Now" that, when clicked, shows an alert "Registration opens soon!" (no actual form to keep simple).

  • Donation section: a "Donate" button that opens a fake modal (no animation, just display: block on click, with a close button). The modal contains a paragraph with a mock payment message.

  • Gallery: 3 placeholder images in a row (captions optional).

  • Footer with social links.

Use vanilla HTML/CSS/JS. The countdown timer must be accurate using setInterval (update every second). Ensure that the modal works (open/close) with no animation. No external libraries. Responsive layout: gallery images stack on mobile. The donation modal should be centered, semi-transparent overlay, white box. Provide a "Close" button.

为什么选这个:活动推广页的倒计时和捐款弹窗是典型需求。倒计时涉及到时区问题(用本地时间即可,假设用户和活动同时间区)。弹窗的显示隐藏逻辑要简单可靠。

这5个题目覆盖了科技公司、餐饮品牌、咨询公司、个人作品集、非营利组织五个方向。每个都是真实的官网场景,不涉及复杂交互,重点在布局、响应式、表单校验和纯数据展示。英文提示词可以直接复制给设计师或后端同事看,中文说明方便你自己理解。选一个跟你当前接单方向最匹配的开干,做完记得把图片占位符换成真实素材,看着就更有说服力了。

相关推荐
mCell8 小时前
AI 时代 SVG 画图的潜力
前端·agent·svg
我命由我1234513 小时前
CesiumJS 笔记 - 获取容器中心点、Cartesian3 clone 方法、修改 Cartesian3 对象的高度
前端·javascript·css·前端框架·html·html5·js
Hopebearer_14 小时前
页面突然只剩 DOM?一次静态资源版本错配排查
前端·部署
东风破_14 小时前
ESLint 是什么?为什么你的项目需要它?
前端·后端·代码规范
圣殿骑士-Khtangc16 小时前
Go字符串高效拼接性能对比与底层原理分析
服务器·前端·golang
BigTopOne17 小时前
【ijkplayer】 硬解码流程
前端
kyriewen17 小时前
DeepSeek Harness开源第一天我就上手了——和Claude Code的差距比想象中大
前端·ai编程·deepseek
捡田螺的小男孩18 小时前
什么是 Skill?手把手带你写一个简单有用的 Skill!
前端·后端·程序员
IT_陈寒18 小时前
Redis集群这个坑,差点让我通宵
前端·人工智能·后端
90后的晨仔18 小时前
uni-app 路由跳转与页面导航 —— 终极详解(对标 iOS / Android / 鸿蒙三端原生)
前端