Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
293 changes: 292 additions & 1 deletion src/pages/community/community.css
Original file line number Diff line number Diff line change
Expand Up @@ -1236,4 +1236,295 @@

.item-arrow.rotate {
transform: rotate(90deg);
}
}

/* Community Feed Section */
.community-feed-section {
padding: 3rem 0;
}

.community-feed-layout {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 2rem;
align-items: start;
}

@media (max-width: 900px) {
.community-feed-layout {
grid-template-columns: 1fr;
}
}

.community-feed-main {
display: flex;
flex-direction: column;
gap: 1rem;
}

.feed-tabs {
display: flex;
gap: 0.5rem;
border-bottom: 1px solid var(--ifm-color-emphasis-300);
margin-bottom: 0.5rem;
}

.feed-tab {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.6rem 1rem;
background: none;
border: none;
border-bottom: 2px solid transparent;
font-weight: 600;
font-size: 0.9rem;
color: var(--ifm-color-emphasis-600);
cursor: pointer;
transition: color 0.2s ease, border-color 0.2s ease;
}

.feed-tab:hover {
color: var(--ifm-color-primary);
}

.feed-tab.active {
color: var(--ifm-color-primary);
border-bottom-color: var(--ifm-color-primary);
}

.feed-posts {
display: flex;
flex-direction: column;
gap: 1rem;
}

.feed-post-card {
padding: 1.25rem;
border-radius: 12px;
border: 1px solid var(--ifm-color-emphasis-200);
background: var(--ifm-background-surface-color);
transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feed-post-card:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
}

.feed-post-header {
display: flex;
align-items: center;
gap: 0.6rem;
margin-bottom: 0.6rem;
}

.feed-post-avatar {
font-size: 1.5rem;
}

.feed-post-meta {
display: flex;
flex-direction: column;
}

.feed-post-author {
font-weight: 600;
font-size: 0.9rem;
}

.feed-post-time {
font-size: 0.75rem;
color: var(--ifm-color-emphasis-600);
}

.feed-post-title {
font-size: 1rem;
font-weight: 700;
margin-bottom: 0.4rem;
}

.feed-post-excerpt {
font-size: 0.875rem;
color: var(--ifm-color-emphasis-700);
line-height: 1.5;
margin-bottom: 0.6rem;
}

.feed-post-footer {
display: flex;
gap: 1rem;
font-size: 0.8rem;
color: var(--ifm-color-emphasis-600);
}

.feed-social-links {
display: flex;
gap: 0.75rem;
margin-top: 0.5rem;
flex-wrap: wrap;
}

.feed-social-link {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 1rem;
border-radius: 8px;
background: var(--ifm-color-emphasis-100);
color: var(--ifm-font-color-base);
font-weight: 600;
font-size: 0.85rem;
text-decoration: none;
transition: background 0.2s ease;
}

.feed-social-link:hover {
background: var(--ifm-color-emphasis-200);
text-decoration: none;
color: var(--ifm-color-primary);
}

/* Sidebar */
.community-feed-sidebar {
display: flex;
flex-direction: column;
gap: 1.25rem;
}

.feed-sidebar-card {
border-radius: 12px;
border: 1px solid var(--ifm-color-emphasis-200);
background: var(--ifm-background-surface-color);
padding: 1.25rem;
}

.feed-sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.9rem;
}

.feed-sidebar-header h4 {
margin: 0;
font-size: 0.95rem;
}

.feed-sidebar-see-all {
display: flex;
align-items: center;
gap: 0.3rem;
font-size: 0.75rem;
color: var(--ifm-color-primary);
text-decoration: none;
}

.feed-news-item {
display: flex;
gap: 0.75rem;
align-items: flex-start;
padding: 0.6rem 0;
border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

.feed-news-item:last-child {
border-bottom: none;
padding-bottom: 0;
}

.feed-news-thumb {
font-size: 1.5rem;
line-height: 1;
}

.feed-news-title {
font-size: 0.85rem;
font-weight: 600;
margin: 0 0 0.2rem;
line-height: 1.3;
}

.feed-news-meta {
font-size: 0.72rem;
color: var(--ifm-color-emphasis-600);
}

.feed-event-item {
display: flex;
gap: 0.75rem;
align-items: center;
padding: 0.6rem 0;
border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

.feed-event-item:last-child {
border-bottom: none;
padding-bottom: 0;
}

.feed-event-date {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 8px;
color: #fff;
font-weight: 700;
flex-shrink: 0;
}

.feed-event-date span {
font-size: 1rem;
line-height: 1;
}

.feed-event-date small {
font-size: 0.6rem;
letter-spacing: 0.05em;
}

.feed-event-title {
font-size: 0.85rem;
font-weight: 600;
margin: 0 0 0.2rem;
}

.feed-event-time {
font-size: 0.72rem;
color: var(--ifm-color-emphasis-600);
}

.feed-guidelines-card {
display: flex;
align-items: center;
gap: 0.9rem;
text-decoration: none;
color: var(--ifm-font-color-base);
transition: border-color 0.2s ease;
}

.feed-guidelines-card:hover {
border-color: var(--ifm-color-primary);
text-decoration: none;
color: var(--ifm-font-color-base);
}

.feed-guidelines-icon {
font-size: 1.4rem;
color: var(--ifm-color-primary);
flex-shrink: 0;
}

.feed-guidelines-title {
font-size: 0.9rem;
font-weight: 700;
margin: 0 0 0.2rem;
}

.feed-guidelines-sub {
font-size: 0.78rem;
color: var(--ifm-color-emphasis-600);
}
Loading
Loading