|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Sport Events Layout</title> |
| 7 | + <style> |
| 8 | + @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap'); |
| 9 | + |
| 10 | + :root { |
| 11 | + --primary-color: #121212; |
| 12 | + --secondary-color: #181818; |
| 13 | + --text-color: #f0f0f0; |
| 14 | + --highlight-color: springgreen; |
| 15 | + --border-color: #444; |
| 16 | + } |
| 17 | + |
| 18 | + body { |
| 19 | + background-color: var(--primary-color); |
| 20 | + font-family: "Poppins", sans-serif; |
| 21 | + color: var(--text-color); |
| 22 | + margin: 0; |
| 23 | + } |
| 24 | + |
| 25 | + header { |
| 26 | + background-color: var(--secondary-color); |
| 27 | + padding: 1rem; |
| 28 | + text-align: center; |
| 29 | + } |
| 30 | + |
| 31 | + nav ul { |
| 32 | + list-style: none; |
| 33 | + padding: 0; |
| 34 | + margin: 0; |
| 35 | + display: flex; |
| 36 | + justify-content: center; |
| 37 | + gap: 1rem; |
| 38 | + flex-wrap: wrap; |
| 39 | + } |
| 40 | + |
| 41 | + nav ul li { |
| 42 | + display: inline-block; |
| 43 | + } |
| 44 | + |
| 45 | + nav a { |
| 46 | + text-decoration: none; |
| 47 | + color: var(--highlight-color); |
| 48 | + padding: 0.5rem 1rem; |
| 49 | + transition: color 0.3s ease; |
| 50 | + font-weight: 500; |
| 51 | + } |
| 52 | + |
| 53 | + nav a:hover { |
| 54 | + color: crimson; |
| 55 | + } |
| 56 | + |
| 57 | + .container { |
| 58 | + display: flex; |
| 59 | + flex-wrap: wrap; |
| 60 | + justify-content: center; |
| 61 | + gap: 2rem; |
| 62 | + padding: 2rem; |
| 63 | + max-width: 1200px; |
| 64 | + margin: auto; |
| 65 | + } |
| 66 | + |
| 67 | + .box { |
| 68 | + border: 1px solid var(--border-color); |
| 69 | + border-radius: 8px; |
| 70 | + overflow: hidden; |
| 71 | + width: 280px; |
| 72 | + height: 200px; |
| 73 | + transition: transform 0.3s ease, box-shadow 0.3s ease; |
| 74 | + box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4); |
| 75 | + background-color: var(--secondary-color); |
| 76 | + } |
| 77 | + |
| 78 | + .box img { |
| 79 | + width: 100%; |
| 80 | + height: 100%; |
| 81 | + object-fit: cover; |
| 82 | + display: block; |
| 83 | + } |
| 84 | + |
| 85 | + .box:hover { |
| 86 | + transform: scale(1.05); |
| 87 | + box-shadow: 0px 8px 16px rgba(0, 255, 127, 0.6); |
| 88 | + } |
| 89 | + |
| 90 | + footer { |
| 91 | + background-color: var(--secondary-color); |
| 92 | + padding: 1rem; |
| 93 | + text-align: center; |
| 94 | + color: var(--text-color); |
| 95 | + font-size: 0.9rem; |
| 96 | + margin-top: 2rem; |
| 97 | + } |
| 98 | + </style> |
| 99 | +</head> |
| 100 | +<body> |
| 101 | + |
| 102 | +<header> |
| 103 | + <nav> |
| 104 | + <ul> |
| 105 | + <li><a href="https://www.icc-cricket.com/tournaments/t20cricketworldcup/index">T20 WC 2024</a></li> |
| 106 | + <li><a href="https://www.iplt20.com/">IPL</a></li> |
| 107 | + <li><a href="https://www.icc-cricket.com/tournaments/cricketworldcup">ODI WC</a></li> |
| 108 | + <li><a href="https://www.fifa.com/en/tournaments/mens/worldcup">FIFA WC</a></li> |
| 109 | + <li><a href="https://www.uefa.com/euro2024/">EURO 2024</a></li> |
| 110 | + <li><a href="https://www.uefa.com/uefachampionsleague/">CHAMPIONS LEAGUE</a></li> |
| 111 | + <li><a href="https://www.premierleague.com/">PREMIER LEAGUE</a></li> |
| 112 | + <li><a href="https://www.bundesliga.com/en/bundesliga">BUNDESLIGA</a></li> |
| 113 | + <li><a href="https://www.laliga.com/en-GB">LA LIGA</a></li> |
| 114 | + <li><a href="https://olympics.com/en/paris-2024">OLYMPICS</a></li> |
| 115 | + </ul> |
| 116 | + </nav> |
| 117 | +</header> |
| 118 | + |
| 119 | +<main> |
| 120 | + <div class="container"> |
| 121 | + <div class="box"><img src="T20WC.jpg" alt="T20 World Cup 2024"></div> |
| 122 | + <div class="box"><img src="ROHIT-KOHLI.jpeg" alt="Rohit and Kohli"></div> |
| 123 | + <div class="box"><img src="IPL 2024.webp" alt="IPL 2024"></div> |
| 124 | + <div class="box"><img src="ODI WC.webp" alt="ODI World Cup"></div> |
| 125 | + <div class="box"><img src="FIFA WC.jpg" alt="FIFA World Cup"></div> |
| 126 | + <div class="box"><img src="EURO 2020.jpeg" alt="Euro 2024"></div> |
| 127 | + <div class="box"><img src="CHAMPIONS LEAGUE.jpeg" alt="Champions League"></div> |
| 128 | + <div class="box"><img src="PREMIER LEAGUE.jpg" alt="Premier League"></div> |
| 129 | + <div class="box"><img src="BUNDESLIGA.jpeg" alt="Bundesliga"></div> |
| 130 | + </div> |
| 131 | +</main> |
| 132 | + |
| 133 | +<footer> |
| 134 | + © 2024 Sports Events | All Rights Reserved |
| 135 | +</footer> |
| 136 | + |
| 137 | +</body> |
| 138 | +</html> |
0 commit comments