mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
upload
This commit is contained in:
+104
@@ -0,0 +1,104 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Blog Grid</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 40px;
|
||||
background: #f9f9f9;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr;
|
||||
gap: 20px;
|
||||
max-width: 1200px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.big-post {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.big-post img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.big-post h2 {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
background: rgba(0,0,0,0.6);
|
||||
padding: 10px 15px;
|
||||
border-radius: 8px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.small-posts {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.small-post {
|
||||
position: relative;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.small-post img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.small-post h3 {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 10px;
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
background: rgba(0,0,0,0.6);
|
||||
padding: 6px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="grid">
|
||||
<!-- Big post -->
|
||||
<div class="big-post">
|
||||
<img src="https://picsum.photos/800/600?random=1" alt="Big Post">
|
||||
<h2>Big Blog Post Title</h2>
|
||||
</div>
|
||||
|
||||
<!-- Two small posts -->
|
||||
<div class="small-posts">
|
||||
<div class="small-post">
|
||||
<img src="https://picsum.photos/400/300?random=2" alt="Small Post 1">
|
||||
<h3>Small Post One</h3>
|
||||
</div>
|
||||
<div class="small-post">
|
||||
<img src="https://picsum.photos/400/300?random=3" alt="Small Post 2">
|
||||
<h3>Small Post Two</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user