AI UI developer by ChatGPT plugin:Tailwind CSS Builder

Ray1997發表於2024-05-30

AI網頁UI開發工程師

在ChatGPT外掛市場中搜尋Tailwind CSS Builder,對話可以直接生成基於tailwind css 的HTML網頁:

生成的網頁結果:

生成的網頁原始碼:

點選檢視程式碼

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ChatGPT UI</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="flex flex-col h-screen bg-gray-100">
    <!-- Navigation Bar -->
    <nav class="bg-gray-800 text-white p-4 flex items-center justify-between">
        <div class="text-lg font-semibold">ChatGPT</div>
    </nav>

    <!-- Chat Window -->
    <div class="flex-1 overflow-y-auto p-4" id="chat-window">
        <!-- Bot Message -->
        <div class="flex mb-4">
            <div class="bg-white p-4 rounded-lg shadow-md max-w-xl">
                <p class="text-gray-800">Hello! How can I assist you today?</p>
            </div>
        </div>
        <!-- User Message -->
        <div class="flex justify-end mb-4">
            <div class="bg-blue-500 text-white p-4 rounded-lg shadow-md max-w-xl">
                <p>Hi! I need some help with my project.</p>
            </div>
        </div>
        <!-- More messages... -->
    </div>

    <!-- Message Input Area -->
    <div class="bg-white p-4 flex items-center border-t border-gray-300">
        <input type="text" placeholder="Type your message..." class="flex-1 px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
        <button class="ml-4 bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600">
            <img src="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/icons/send.svg" alt="Send" class="w-5 h-5">
        </button>
    </div>
</body>
</html>

網頁執行效果

相關文章