-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.css
More file actions
74 lines (62 loc) · 1.23 KB
/
Copy pathposts.css
File metadata and controls
74 lines (62 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.posts {
display: flex;
flex-direction: column;
gap: 20px;
}
.post {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out;
}
.post:hover {
transform: translateY(-10px);
}
.post-left {
flex: 0 0 40%;
max-width: 40%;
overflow: hidden;
position: relative;
}
.post-left img {
width: 100%;
height: auto;
object-fit: cover;
transition: transform 0.3s ease-in-out;
}
.post-left:hover img {
transform: scale(1.05);
}
.post-right {
flex: 1;
padding-left: 20px;
}
.post-right h3 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #333;
}
.post-right p {
font-size: 1rem;
margin-bottom: 10px;
color: #666;
}
.post-right .btn {
display: inline-block;
padding: 10px 20px;
background-color: #e74c3c;
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.post-right .btn:hover {
background-color: #c0392b;
}
body{
background: linear-gradient(0deg,rgba(58, 232, 252, 0.81) 10%,rgba(174, 241, 223, 0.81) 40%);
}