claude-3-7-sonnet-20250219· Anthropic LMArena Human Preference 140K
Napisz mi kod prostej strony internetowej w pastelowych barwach, responsywną, będąca…
- User
Napisz mi kod prostej strony internetowej w pastelowych barwach, responsywną, będąca moim portfolio do przyszłej branży
- Assistant
Oto prosty kod responsywnej strony portfolio w pastelowych kolorach:
<!DOCTYPE html> <html lang="pl"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Moje Portfolio</title> <style> :root { --pastel-pink: #ffd1dc; --pastel-blue: #d1e8ff; --pastel-green: #d1ffdd; --pastel-yellow: #ffffd1; --dark-text: #333333; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: var(--pastel-blue); color: var(--dark-text); line-height: 1.6; } header { background-color: var(--pastel-pink); padding: 2rem 1rem; text-align: center; } .container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; } h1, h2, h3 { margin-bottom: 1rem; } .profile { display: flex; flex-direction: column; align-items: center; margin-bottom: 2rem; } .profile-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid white; margin-bottom: 1rem; } .about { background-color: var(--pastel-yellow); padding: 2rem; border-radius: 10px; margin-bottom: 2rem; } .projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; } .project-card { background-color: var(--pastel-green); border-radius: 10px; overflow: hidden; transition: transform 0.3s ease; } .project-card:hover { transform: translateY(-5px); } .project-img { width: 100%; height: 200px; object-fit: cover; } .project-info { padding: 1.5rem; } .skills { background-color: var(--pastel-pink); padding: 2rem; border-radius: 10px; margin-bottom: 2rem; } .skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; } .skill-tag { background-color: white; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; } .contact { background-color: var(--pastel-blue); padding: 2rem; border-radius: 10px; text-align: center; } .contact-form { max-width: 600px; margin: 0 auto; } .form-group { margin-bottom: 1rem; } input, textarea { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; } button { background-color: var(--pastel-pink); color: var(--dark-text); border: none; padding: 0.8rem 2rem; border-radius: 5px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; } button:hover { background-color: #ffb6c1; } footer { background-color: var(--pastel-pink); text-align: center; padding: 1.5rem; margin-top: 2rem; } @media (max-width: 768px) { .projects { grid-template-columns: 1fr; } .profile-img { width: 150px; height: 150px; } } </style> </head> <body> <header> <h1>Imię Nazwisko</h1> <p>Specjalista w dziedzinie...</p> </header> <div class="container"> <section class="profile"> <img src="https://via.placeholder.com/200" alt="Zdjęcie profilowe" class="profile-img"> <h2>Witaj na moim portfolio!</h2> </section> <section class="about"> <h2>O mnie</h2> <p>Tutaj umieść krótki opis o sobie, swoim doświadczeniu i zainteresowaniach zawodowych. Napisz o swojej pasji do wybranej branży i co Cię w niej najbardziej fascynuje.</p> </section> <h2>Moje projekty</h2> <section class="projects"> <div class="project-card"> <img src="https://via.placeholder.com/300x200" alt="Projekt 1" class="project-img"> <div class="project-info"> <h3>Nazwa projektu 1</h3> <p>Krótki opis projektu, użyte technologie, Twoja rola w projekcie.</p> </div> </div> <div class="project-card"> <img src="https://via.placeholder.com/300x200" alt="Projekt 2" class="project-img"> <div class="project-info"> <h3>Nazwa projektu 2</h3> <p>Krótki opis projektu, użyte technologie, Twoja rola w projekcie.</p> </div> </div> <div class="project-card"> <img src="https://via.placeholder.com/300x200" alt="Projekt 3" class="project-img"> <div class="project-info"> <h3>Nazwa projektu 3</h3> <p>Krótki opis projektu, użyte technologie, Twoja rola w projekcie.</p> </div> </div> </section> <section class="skills"> <h2>Umiejętności</h2> <div class="skill-tags"> <span class="skill-tag">HTML</span> <span class="skill-tag">CSS</span> <span class="skill-tag">JavaScript</span> <span class="skill-tag">Responsive Design</span> <span class="skill-tag">UI/UX</span> <!-- Dodaj więcej umiejętności odpowiednich dla Twojej branży --> </div> </section> <section class="contact"> <h2>Kontakt</h2> <p>Jeśli jesteś zainteresowany/a współpracą, wypełnij poniższy formularz:</p> <form class="contact-form"> <div class="form-group"> <input type="text" placeholder="Imię i nazwisko" required> </div> <div class="form-group"> <input type="email" placeholder="Email" required> </div> <div class="form-group"> <textarea rows="5" placeholder="Wiadomość" required></textarea> </div> <button type="submit">Wyślij</button> </form> </section> </div> <footer> <p>© 2025 Imię Nazwisko. Wszelkie prawa zastrzeżone.</p> </footer> </body> </html>Czy chciałbyś, żebym wyjaśnił lub omówił ten kod?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.