Advertisement
ksieradzinski

Untitled

Apr 18th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pl">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Mój Blog</title>
  7. <style>
  8. :root { --primary-color: #2D3748; --accent-color: #3182CE; --bg-color: #F7FAFC; --text-color: #2A2A2A; --light-text: #4A5568; }
  9. * { box-sizing: border-box; margin: 0; padding: 0; }
  10. body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
  11. header { background-color: var(--primary-color); padding: 1rem 0; }
  12. nav { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
  13. .logo { font-size: 1.5rem; font-weight: bold; color: #fff; text-decoration: none; }
  14. .nav-links a { margin-left: 1.5rem; color: #fff; text-decoration: none; font-size: 1rem; transition: color 0.3s; }
  15. .nav-links a:hover { color: var(--accent-color); }
  16. main { max-width: 960px; margin: 2rem auto; padding: 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
  17. article { background-color: #fff; border-radius: 0.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; }
  18. .post-img { width: 100%; height: 200px; object-fit: cover; }
  19. .post-content { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
  20. .post-content h2 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--primary-color); }
  21. .post-content p { flex: 1; color: var(--light-text); margin-bottom: 1rem; }
  22. .post-content a { align-self: flex-start; text-decoration: none; color: var(--accent-color); font-weight: bold; transition: color 0.3s; }
  23. .post-content a:hover { color: var(--primary-color); }
  24. footer { text-align: center; padding: 2rem 0; color: var(--light-text); font-size: 0.9rem; }
  25. </style>
  26. </head>
  27. <body>
  28. <header>
  29. <nav>
  30. <a href="#" class="logo">Mój Blog</a>
  31. <div class="nav-links">
  32. <a href="#">Home</a>
  33. <a href="#">About</a>
  34. <a href="#">Contact</a>
  35. </div>
  36. </nav>
  37. </header>
  38. <main>
  39. <article>
  40. <img src="https://via.placeholder.com/600x200" alt="Post 1" class="post-img">
  41. <div class="post-content">
  42. <h2>Jak zacząć przygodę z programowaniem?</h2>
  43. <p>Pierwszy krok w nauce programowania może wydawać się trudny, ale z odpowiednim podejściem szybko poczujesz postępy...</p>
  44. <a href="post1.html">Czytaj więcej</a>
  45. </div>
  46. </article>
  47. <article>
  48. <img src="https://via.placeholder.com/600x200" alt="Post 2" class="post-img">
  49. <div class="post-content">
  50. <h2>Najlepsze narzędzia dla front-end developerów</h2>
  51. <p>Wybór odpowiednich narzędzi jest kluczowy dla efektywnej pracy. Oto lista must-have dla każdego developera...</p>
  52. <a href="post2.html">Czytaj więcej</a>
  53. </div>
  54. </article>
  55. </main>
  56. <footer>
  57. &copy; 2025 Mój Blog. Wszelkie prawa zastrzeżone.
  58. </footer>
  59. </body>
  60. </html>
  61.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement