Files
vf_react/src/views/Community/components/HotEvents.css
2025-10-11 12:02:01 +08:00

99 lines
1.5 KiB
CSS

/* Hot Events Section */
.hot-events-section {
padding: 24px 0;
}
.section-title {
display: flex;
align-items: center;
font-size: 20px;
font-weight: 600;
margin-bottom: 4px;
}
.section-subtitle {
font-size: 14px;
color: #8c8c8c;
margin-bottom: 24px;
}
/* Card */
.hot-event-card {
border-radius: 8px;
overflow: hidden;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hot-event-card:hover {
transform: translateY(-4px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
/* Cover image */
.event-cover {
position: relative;
width: 100%;
height: 160px;
overflow: hidden;
}
.event-cover img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.importance-badge {
position: absolute;
top: 8px;
left: 8px;
font-size: 12px;
padding: 2px 6px;
border-radius: 4px;
}
/* Card content */
.event-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.event-header .ant-tag {
margin-right: 6px;
}
.event-title {
font-size: 16px;
font-weight: 600;
color: #000;
flex: 1;
}
.event-description {
margin: 8px 0;
font-size: 14px;
color: #595959;
line-height: 1.5;
}
.event-footer {
display: flex;
justify-content: space-between;
font-size: 12px;
color: #8c8c8c;
}
.creator {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 60%;
}
.time {
white-space: nowrap;
}