Loading...
    • 開發者指南
    • API 參考
    • MCP
    • 資源
    • 發行說明
    Search...
    ⌘K
    資源
    概覽術語表系統提示詞
    提示詞庫宇宙按鍵企業預言家網站精靈Excel 公式專家Google Apps 腳本編寫器Python 除錯大師時光旅行顧問故事創作夥伴引用來源SQL 魔法師解夢師雙關語大師美食創作家混成詞詩人幽默助手 HalLaTeX 達人情緒色彩師Git 高手比喻達人倫理困境導航會議記錄員慣用語解析器程式碼顧問函式製造器新詞創造者CSV 轉換器Emoji 編碼器文章潤色師多角度思考者冷知識產生器正念導師二年級簡化器VR 健身創新者PII 淨化器備忘錄大師職涯教練評分大師繞口令面試問題設計師文法精靈猜謎語程式碼解說員外星人類學家資料整理器品牌建構師效率評估器評論分類器方向解碼器勵志繆思電子郵件擷取器首席審核員課程規劃師蘇格拉底智者頭韻煉金師未來時尚顧問多語言超能力產品命名專家哲學沉思試算表魔法師科幻情境模擬器自適應編輯器巴別塔廣播推文語氣偵測器機場代碼分析師
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    提示詞庫

    網站精靈

    根據使用者規格建立單頁網站。

    將此提示複製到我們的開發者 Console 中親自試用!

    內容
    System您的任務是根據給定的規格建立一個單頁網站,以嵌入 JavaScript 和 CSS 的 HTML 檔案形式交付。網站應包含各種引人入勝的互動設計功能,例如下拉選單、動態文字和內容、可點擊按鈕等。確保設計在視覺上吸引人、具有響應式設計且使用者友善。HTML、CSS 和 JavaScript 程式碼應結構良好、組織高效,並適當加入註解以提高可讀性和可維護性。
    User為一個名為「EduQuest」的線上學習平台建立一個單頁網站,包含以下功能和區塊:

    1. 一個固定的導覽列,包含課程類別連結(數學、科學、語言、藝術)和一個搜尋列。
    2. 一個英雄區塊,包含展示學生線上學習的影片背景、每 3 秒在「按自己的節奏學習」、「發現新的熱情」和「拓展你的視野」之間輪換的動態標語,以及一個導向課程目錄的「開始使用」按鈕。
    3. 一個精選課程區塊,顯示包含課程圖片、標題、講師和描述佔位符的課程卡片。
    4. 一個互動式「學習路徑」區塊,包含一個簡短的測驗來確定學習風格和興趣,以及一個開始測驗的按鈕。
    5. 一個「成功故事」區塊,展示滿意學生的推薦語,包含推薦文字和學生姓名的佔位符。
    6. 一個頁尾,包含平台部落格、常見問題、隱私政策的連結,以及一個「聯絡我們」按鈕,點擊後會開啟一個包含聯絡表單和客戶支援資訊的模態視窗。

    為影片背景、課程卡片和推薦語包含填充佔位內容。將 CSS 樣式嵌入 <head> 區塊中的 <style> 標籤內,並將 JavaScript 程式碼放置在 <body> 區塊末尾的 <script> 標籤內。

    JavaScript 程式碼應處理英雄區塊中的動態標語,每 3 秒輪換不同的標語。

    範例輸出

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>EduQuest - Online Learning Platform</title>
        <style>
            /* CSS Styles */
            body {
                font-family: Arial, sans-serif;
                margin: 0;
                padding: 0;
            }
    
            header {
                background-color: #333;
                color: #fff;
                padding: 20px;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                z-index: 999;
            }
    
            nav ul {
                list-style: none;
                margin: 0;
                padding: 0;
                display: flex;
                justify-content: space-between;
            }
    
            nav ul li a {
                color: #fff;
                text-decoration: none;
                padding: 10px;
            }
    
            .hero {
                height: 100vh;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                text-align: center;
                position: relative;
                overflow: hidden;
            }
    
            .hero video {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
                z-index: -1;
            }
    
            .hero h1 {
                font-size: 48px;
                margin-bottom: 20px;
            }
    
            .hero p {
                font-size: 24px;
                margin-bottom: 40px;
            }
    
            .hero button {
                padding: 10px 20px;
                font-size: 18px;
                background-color: #333;
                color: #fff;
                border: none;
                cursor: pointer;
            }
    
            .featured-courses, .success-stories {
                padding: 40px;
            }
    
            .course-card {
                background-color: #f5f5f5;
                padding: 20px;
                margin-bottom: 20px;
            }
    
            .testimonial {
                background-color: #f5f5f5;
                padding: 20px;
                margin-bottom: 20px;
            }
    
            footer {
                background-color: #333;
                color: #fff;
                padding: 20px;
                text-align: center;
            }
    
            footer a {
                color: #fff;
                text-decoration: none;
                margin: 0 10px;
            }
    
            footer button {
                padding: 10px 20px;
                font-size: 18px;
                background-color: #fff;
                color: #333;
                border: none;
                cursor: pointer;
                margin-top: 20px;
            }
        </style>
    </head>
    <body>
        <header>
            <nav>
                <ul>
                    <li><a href="#">Math</a></li>
                    <li><a href="#">Science</a></li>
                    <li><a href="#">Languages</a></li>
                    <li><a href="#">Arts</a></li>
                    <li><input type="text" placeholder="Search"></li>
                </ul>
            </nav>
        </header>
    
        <section class="hero">
            <video src="placeholder-video.mp4" autoplay loop muted></video>
            <h1>Welcome to EduQuest</h1>
            <p id="tagline">Learn at your own pace</p>
            <button>Get Started</button>
        </section>
    
        <section class="featured-courses">
            <h2>Featured Courses</h2>
            <div class="course-card">
                <img src="placeholder-course-image.jpg" alt="Course Image">
                <h3>Course Title</h3>
                <p>Instructor: John Doe</p>
                <p>Course description goes here.</p>
            </div>
            <div class="course-card">
                <img src="placeholder-course-image.jpg" alt="Course Image">
                <h3>Course Title</h3>
                <p>Instructor: Jane Smith</p>
                <p>Course description goes here.</p>
            </div>
        </section>
    
        <section class="success-stories">
            <h2>Success Stories</h2>
            <div class="testimonial">
                <p>"EduQuest helped me learn a new skill and advance my career. Highly recommended!"</p>
                <p>- John Doe</p>
            </div>
            <div class="testimonial">
                <p>"I never thought I could learn a new language online, but EduQuest made it possible. Thank you!"</p>
                <p>- Jane Smith</p>
            </div>
        </section>
    
        <footer>
            <a href="#">Blog</a>
            <a href="#">FAQ</a>
            <a href="#">Privacy Policy</a>
            <button>Contact Us</button>
        </footer>
    
        <script>
            // JavaScript Code
            const taglines = [
                "Learn at your own pace",
                "Discover new passions",
                "Expand your horizons"
            ];
    
            let index = 0;
            const taglineElement = document.getElementById("tagline");
    
            function rotateTagline() {
                taglineElement.textContent = taglines[index];
                index = (index + 1) % taglines.length;
            }
    
            setInterval(rotateTagline, 3000);
        </script>
    </body>
    </html>

    此程式碼為「EduQuest」建立了一個單頁網站,包含以下功能和區塊:

    一個固定的導覽列,包含課程類別連結(數學、科學、語言、藝術)和一個搜尋列。

    一個英雄區塊,包含佔位影片背景、每 3 秒在「按自己的節奏學習」、「發現新的熱情」和「拓展你的視野」之間輪換的動態標語,以及一個「開始使用」按鈕。

    一個精選課程區塊,顯示包含課程圖片、標題、講師和描述佔位符的課程卡片。

    一個「成功故事」區塊,展示滿意學生的推薦語,包含推薦文字和學生姓名的佔位符。

    一個頁尾,包含平台部落格、常見問題、隱私政策的連結,以及一個「聯絡我們」按鈕。

    CSS 樣式嵌入在 <head> 區塊中的 <style> 標籤內,JavaScript 程式碼放置在 <body> 區塊末尾的 <script> 標籤內。

    JavaScript 程式碼處理英雄區塊中的動態標語,使用 setInterval 函式每 3 秒輪換不同的標語。

    請注意,影片背景、課程圖片和推薦語都是佔位符,應替換為實際內容。

    API 請求

    Was this page helpful?

    • API 請求