GPT4のテストでHTML/CSSコード出力を試してみました!
指示内容
ブロークングリッドデザイン、レスポンシブ対応、角丸デザイン、巨大なタイポグラフィ、清潔感、明るい の要素を取り入れたサンプルページ(HTML/CSS)を出力してください
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample Design Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<nav>
<!-- Navigation Menu -->
</nav>
</header>
<main>
<section class="hero">
<h1 class="large-typography">Sample Design Page</h1>
</section>
<section class="content-grid">
<!-- Content Blocks -->
</section>
</main>
<footer>
<!-- Footer Content -->
</footer>
</body>
</html>
css
/* styles.css */
/* Global Styles */
body {
font-family: sans-serif;
color: #333;
background-color: #f5f5f5;
line-height: 1.6;
margin: 0;
padding: 0;
}
/* Responsive Breakpoints */
@media (max-width: 768px) {
/* Mobile styles */
}
/* Navigation */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #fff;
}
.nav-links {
list-style: none;
display: flex;
}
.nav-links li {
margin-left: 1rem;
}
.nav-links a {
text-decoration: none;
color: #333;
}
.contact-button {
background-color: #007BFF;
color: #fff;
padding: 0.5rem 1rem;
border-radius: 5px;
border: none;
cursor: pointer;
}
/* Hero Section */
.hero {
padding: 2rem;
background-color: #fff;
}
.large-typography {
font-size: 48px;
}
.catchphrase {
font-size: 24px;
font-weight: bold;
}
.content-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
padding: 2rem;
background-color: #fff;
border-radius: 8px; /* Rounded corners */
margin-bottom: 1rem;
}
.content-grid h2 {
font-size: 32px;
margin-bottom: 1rem;
}
.content-grid p {
font-size: 16px;
}
/* Footer */
footer {
/* Footer styles */
}
結果(サンプルURL)
サンプル:https://web-k-creation.com/sample/ai.html
内部リンク、レスポンシブは問題なさそうでした。
「清潔感、明るい」などの概念?美意識的な間隔はまだなさそうなので、より詳しく指示をする必要があるかもしれません。