@commonpub/layer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/app.vue +7 -0
- package/components/AnnouncementBand.vue +117 -0
- package/components/AppToast.vue +108 -0
- package/components/AuthorCard.vue +119 -0
- package/components/AuthorRow.vue +81 -0
- package/components/CommentSection.vue +330 -0
- package/components/ContentCard.vue +340 -0
- package/components/ContentPicker.vue +240 -0
- package/components/ContentStarterForm.vue +214 -0
- package/components/ContentTypeBadge.vue +46 -0
- package/components/CountdownTimer.vue +68 -0
- package/components/CpubEditor.vue +87 -0
- package/components/DiscussionItem.vue +191 -0
- package/components/EditorPropertiesPanel.vue +393 -0
- package/components/EngagementBar.vue +131 -0
- package/components/FederatedContentCard.vue +291 -0
- package/components/FeedItem.vue +283 -0
- package/components/FilterChip.vue +21 -0
- package/components/HeatmapGrid.vue +92 -0
- package/components/ImageUpload.vue +219 -0
- package/components/MemberCard.vue +163 -0
- package/components/MessageThread.vue +120 -0
- package/components/NotificationItem.vue +103 -0
- package/components/ProgressTracker.vue +41 -0
- package/components/PublishErrorsModal.vue +116 -0
- package/components/RemoteActorCard.vue +206 -0
- package/components/RemoteUserSearch.vue +117 -0
- package/components/SearchFilters.vue +188 -0
- package/components/SearchSidebar.vue +181 -0
- package/components/SectionHeader.vue +17 -0
- package/components/ShareToHubModal.vue +189 -0
- package/components/SiteLogo.vue +21 -0
- package/components/SkillBar.vue +57 -0
- package/components/SortSelect.vue +30 -0
- package/components/StatBar.vue +14 -0
- package/components/TOCNav.vue +69 -0
- package/components/TimelineItem.vue +82 -0
- package/components/VideoCard.vue +106 -0
- package/components/blocks/BlockBuildStepView.vue +92 -0
- package/components/blocks/BlockCalloutView.vue +82 -0
- package/components/blocks/BlockCheckpointView.vue +50 -0
- package/components/blocks/BlockCodeView.vue +212 -0
- package/components/blocks/BlockContentRenderer.vue +143 -0
- package/components/blocks/BlockDividerView.vue +11 -0
- package/components/blocks/BlockDownloadsView.vue +126 -0
- package/components/blocks/BlockEmbedView.vue +61 -0
- package/components/blocks/BlockGalleryView.vue +57 -0
- package/components/blocks/BlockHeadingView.vue +29 -0
- package/components/blocks/BlockImageView.vue +34 -0
- package/components/blocks/BlockMarkdownView.vue +118 -0
- package/components/blocks/BlockMathView.vue +45 -0
- package/components/blocks/BlockPartsListView.vue +104 -0
- package/components/blocks/BlockQuizView.vue +239 -0
- package/components/blocks/BlockQuoteView.vue +41 -0
- package/components/blocks/BlockSectionHeaderView.vue +58 -0
- package/components/blocks/BlockSliderView.vue +236 -0
- package/components/blocks/BlockTextView.vue +41 -0
- package/components/blocks/BlockToolListView.vue +87 -0
- package/components/blocks/BlockVideoView.vue +89 -0
- package/components/editors/ArticleEditor.vue +545 -0
- package/components/editors/BlockCanvas.vue +487 -0
- package/components/editors/BlockInsertZone.vue +84 -0
- package/components/editors/BlockPicker.vue +285 -0
- package/components/editors/BlockWrapper.vue +192 -0
- package/components/editors/BlogEditor.vue +567 -0
- package/components/editors/EditorBlocks.vue +248 -0
- package/components/editors/EditorSection.vue +81 -0
- package/components/editors/EditorShell.vue +168 -0
- package/components/editors/EditorTagInput.vue +114 -0
- package/components/editors/EditorVisibility.vue +110 -0
- package/components/editors/ExplainerEditor.vue +503 -0
- package/components/editors/MarkdownImportDialog.vue +249 -0
- package/components/editors/ProjectEditor.vue +446 -0
- package/components/editors/blocks/BuildStepBlock.vue +102 -0
- package/components/editors/blocks/CalloutBlock.vue +122 -0
- package/components/editors/blocks/CheckpointBlock.vue +27 -0
- package/components/editors/blocks/CodeBlock.vue +177 -0
- package/components/editors/blocks/DividerBlock.vue +22 -0
- package/components/editors/blocks/DownloadsBlock.vue +41 -0
- package/components/editors/blocks/EmbedBlock.vue +20 -0
- package/components/editors/blocks/GalleryBlock.vue +236 -0
- package/components/editors/blocks/HeadingBlock.vue +96 -0
- package/components/editors/blocks/ImageBlock.vue +271 -0
- package/components/editors/blocks/MarkdownBlock.vue +258 -0
- package/components/editors/blocks/MathBlock.vue +37 -0
- package/components/editors/blocks/PartsListBlock.vue +358 -0
- package/components/editors/blocks/QuizBlock.vue +47 -0
- package/components/editors/blocks/QuoteBlock.vue +101 -0
- package/components/editors/blocks/SectionHeaderBlock.vue +130 -0
- package/components/editors/blocks/SliderBlock.vue +318 -0
- package/components/editors/blocks/TextBlock.vue +201 -0
- package/components/editors/blocks/ToolListBlock.vue +70 -0
- package/components/editors/blocks/VideoBlock.vue +22 -0
- package/components/hub/HubDiscussions.vue +47 -0
- package/components/hub/HubFeed.vue +199 -0
- package/components/hub/HubHero.vue +185 -0
- package/components/hub/HubLayout.vue +103 -0
- package/components/hub/HubMembers.vue +40 -0
- package/components/hub/HubProducts.vue +93 -0
- package/components/hub/HubProjects.vue +207 -0
- package/components/hub/HubSidebar.vue +12 -0
- package/components/hub/HubSidebarCard.vue +35 -0
- package/components/views/ArticleView.vue +771 -0
- package/components/views/BlogView.vue +667 -0
- package/components/views/ExplainerView.vue +688 -0
- package/components/views/ProjectView.vue +1500 -0
- package/composables/useApiError.ts +39 -0
- package/composables/useAuth.ts +87 -0
- package/composables/useBlockEditor.ts +187 -0
- package/composables/useContentSave.ts +253 -0
- package/composables/useContentTypes.ts +37 -0
- package/composables/useEngagement.ts +196 -0
- package/composables/useFeatures.ts +33 -0
- package/composables/useFederation.ts +72 -0
- package/composables/useJsonLd.ts +183 -0
- package/composables/useMarkdownImport.ts +77 -0
- package/composables/useMirrorContent.ts +105 -0
- package/composables/useNotifications.ts +73 -0
- package/composables/usePublishValidation.ts +65 -0
- package/composables/useSanitize.ts +34 -0
- package/composables/useSiteName.ts +4 -0
- package/composables/useTheme.ts +34 -0
- package/composables/useToast.ts +35 -0
- package/error.vue +129 -0
- package/layouts/admin.vue +213 -0
- package/layouts/auth.vue +63 -0
- package/layouts/default.vue +269 -0
- package/layouts/editor.vue +129 -0
- package/middleware/auth.ts +6 -0
- package/nuxt.config.ts +83 -0
- package/package.json +59 -0
- package/pages/[type]/[slug]/edit.vue +676 -0
- package/pages/[type]/[slug]/index.vue +313 -0
- package/pages/[type]/index.vue +118 -0
- package/pages/about.vue +100 -0
- package/pages/admin/audit.vue +66 -0
- package/pages/admin/content.vue +116 -0
- package/pages/admin/federation.vue +446 -0
- package/pages/admin/index.vue +62 -0
- package/pages/admin/reports.vue +88 -0
- package/pages/admin/settings.vue +167 -0
- package/pages/admin/users.vue +145 -0
- package/pages/auth/forgot-password.vue +103 -0
- package/pages/auth/login.vue +216 -0
- package/pages/auth/oauth/authorize.vue +178 -0
- package/pages/auth/register.vue +246 -0
- package/pages/auth/reset-password.vue +124 -0
- package/pages/auth/verify-email.vue +80 -0
- package/pages/cert/[code].vue +154 -0
- package/pages/contests/[slug]/edit.vue +153 -0
- package/pages/contests/[slug]/index.vue +556 -0
- package/pages/contests/[slug]/judge.vue +160 -0
- package/pages/contests/create.vue +192 -0
- package/pages/contests/index.vue +69 -0
- package/pages/create.vue +219 -0
- package/pages/dashboard.vue +521 -0
- package/pages/docs/[siteSlug]/[...pagePath].vue +704 -0
- package/pages/docs/[siteSlug]/edit.vue +480 -0
- package/pages/docs/[siteSlug]/index.vue +380 -0
- package/pages/docs/create.vue +60 -0
- package/pages/docs/index.vue +181 -0
- package/pages/explore.vue +422 -0
- package/pages/federated-hubs/[id]/index.vue +385 -0
- package/pages/federated-hubs/[id]/posts/[postId].vue +309 -0
- package/pages/federation/index.vue +157 -0
- package/pages/federation/search.vue +43 -0
- package/pages/federation/users/[handle].vue +221 -0
- package/pages/feed.vue +135 -0
- package/pages/hubs/[slug]/index.vue +513 -0
- package/pages/hubs/[slug]/members.vue +134 -0
- package/pages/hubs/[slug]/posts/[postId].vue +352 -0
- package/pages/hubs/[slug]/settings.vue +254 -0
- package/pages/hubs/create.vue +201 -0
- package/pages/hubs/index.vue +207 -0
- package/pages/index.vue +1005 -0
- package/pages/learn/[slug]/[lessonSlug]/edit.vue +413 -0
- package/pages/learn/[slug]/[lessonSlug]/index.vue +438 -0
- package/pages/learn/[slug]/edit.vue +414 -0
- package/pages/learn/[slug]/index.vue +341 -0
- package/pages/learn/create.vue +71 -0
- package/pages/learn/index.vue +360 -0
- package/pages/messages/[conversationId].vue +113 -0
- package/pages/messages/index.vue +303 -0
- package/pages/mirror/[id].vue +115 -0
- package/pages/notifications.vue +91 -0
- package/pages/products/[slug].vue +128 -0
- package/pages/products/index.vue +122 -0
- package/pages/search.vue +692 -0
- package/pages/settings/account.vue +170 -0
- package/pages/settings/appearance.vue +80 -0
- package/pages/settings/index.vue +81 -0
- package/pages/settings/notifications.vue +68 -0
- package/pages/settings/profile.vue +838 -0
- package/pages/tags/[slug].vue +111 -0
- package/pages/tags/index.vue +73 -0
- package/pages/u/[username]/followers.vue +86 -0
- package/pages/u/[username]/following.vue +94 -0
- package/pages/u/[username]/index.vue +837 -0
- package/pages/videos/[id].vue +212 -0
- package/pages/videos/index.vue +327 -0
- package/pages/videos/submit.vue +112 -0
- package/plugins/auth.ts +23 -0
- package/server/api/admin/audit.get.ts +17 -0
- package/server/api/admin/content/[id].delete.ts +15 -0
- package/server/api/admin/content/[id].patch.ts +37 -0
- package/server/api/admin/federation/activity.get.ts +31 -0
- package/server/api/admin/federation/clients.get.ts +9 -0
- package/server/api/admin/federation/clients.post.ts +16 -0
- package/server/api/admin/federation/hub-mirrors/index.get.ts +10 -0
- package/server/api/admin/federation/hub-mirrors/index.post.ts +42 -0
- package/server/api/admin/federation/mirrors/[id]/backfill.post.ts +39 -0
- package/server/api/admin/federation/mirrors/[id].delete.ts +11 -0
- package/server/api/admin/federation/mirrors/[id].get.ts +15 -0
- package/server/api/admin/federation/mirrors/[id].put.ts +22 -0
- package/server/api/admin/federation/mirrors/index.get.ts +9 -0
- package/server/api/admin/federation/mirrors/index.post.ts +30 -0
- package/server/api/admin/federation/pending.get.ts +22 -0
- package/server/api/admin/federation/refederate.post.ts +92 -0
- package/server/api/admin/federation/repair-types.post.ts +57 -0
- package/server/api/admin/federation/retry.post.ts +41 -0
- package/server/api/admin/federation/stats.get.ts +26 -0
- package/server/api/admin/reports/[id]/resolve.post.ts +12 -0
- package/server/api/admin/reports.get.ts +17 -0
- package/server/api/admin/settings.get.ts +22 -0
- package/server/api/admin/settings.put.ts +11 -0
- package/server/api/admin/stats.get.ts +9 -0
- package/server/api/admin/users/[id]/role.put.ts +12 -0
- package/server/api/admin/users/[id]/status.put.ts +12 -0
- package/server/api/admin/users/[id].delete.ts +10 -0
- package/server/api/admin/users.get.ts +18 -0
- package/server/api/auth/federated/callback.get.ts +67 -0
- package/server/api/auth/federated/login.post.ts +60 -0
- package/server/api/auth/oauth2/authorize.get.ts +30 -0
- package/server/api/auth/oauth2/authorize.post.ts +51 -0
- package/server/api/auth/oauth2/register.post.ts +41 -0
- package/server/api/auth/oauth2/token.post.ts +48 -0
- package/server/api/cert/[code].get.ts +13 -0
- package/server/api/content/[id]/build.post.ts +9 -0
- package/server/api/content/[id]/fork.post.ts +10 -0
- package/server/api/content/[id]/index.delete.ts +18 -0
- package/server/api/content/[id]/index.get.ts +15 -0
- package/server/api/content/[id]/index.put.ts +23 -0
- package/server/api/content/[id]/products/[productId].delete.ts +28 -0
- package/server/api/content/[id]/products-sync.post.ts +29 -0
- package/server/api/content/[id]/products.get.ts +9 -0
- package/server/api/content/[id]/products.post.ts +31 -0
- package/server/api/content/[id]/publish.post.ts +17 -0
- package/server/api/content/[id]/report.post.ts +17 -0
- package/server/api/content/[id]/versions.get.ts +9 -0
- package/server/api/content/[id]/view.post.ts +34 -0
- package/server/api/content/index.get.ts +23 -0
- package/server/api/content/index.post.ts +11 -0
- package/server/api/contests/[slug]/entries.get.ts +18 -0
- package/server/api/contests/[slug]/entries.post.ts +23 -0
- package/server/api/contests/[slug]/index.delete.ts +21 -0
- package/server/api/contests/[slug]/index.get.ts +11 -0
- package/server/api/contests/[slug]/index.put.ts +15 -0
- package/server/api/contests/[slug]/judge.post.ts +12 -0
- package/server/api/contests/[slug]/transition.post.ts +24 -0
- package/server/api/contests/index.get.ts +10 -0
- package/server/api/contests/index.post.ts +28 -0
- package/server/api/docs/[siteSlug]/index.delete.ts +14 -0
- package/server/api/docs/[siteSlug]/index.get.ts +17 -0
- package/server/api/docs/[siteSlug]/index.put.ts +20 -0
- package/server/api/docs/[siteSlug]/nav.get.ts +26 -0
- package/server/api/docs/[siteSlug]/pages/[pageId].delete.ts +14 -0
- package/server/api/docs/[siteSlug]/pages/[pageId].get.ts +31 -0
- package/server/api/docs/[siteSlug]/pages/[pageId].put.ts +15 -0
- package/server/api/docs/[siteSlug]/pages/index.get.ts +34 -0
- package/server/api/docs/[siteSlug]/pages/index.post.ts +28 -0
- package/server/api/docs/[siteSlug]/pages/reorder.post.ts +26 -0
- package/server/api/docs/[siteSlug]/search.get.ts +20 -0
- package/server/api/docs/[siteSlug]/versions.post.ts +11 -0
- package/server/api/docs/index.get.ts +6 -0
- package/server/api/docs/index.post.ts +10 -0
- package/server/api/federated-hubs/[id]/posts/[postId].get.ts +16 -0
- package/server/api/federated-hubs/[id]/posts.get.ts +15 -0
- package/server/api/federated-hubs/[id].get.ts +16 -0
- package/server/api/federation/boost.post.ts +21 -0
- package/server/api/federation/content/[id].get.ts +15 -0
- package/server/api/federation/follow.post.ts +16 -0
- package/server/api/federation/health.get.ts +56 -0
- package/server/api/federation/hub-follow.post.ts +27 -0
- package/server/api/federation/hub-post-like.post.ts +115 -0
- package/server/api/federation/hub-post-likes.get.ts +24 -0
- package/server/api/federation/hub-post-reply.post.ts +42 -0
- package/server/api/federation/hub-post.post.ts +33 -0
- package/server/api/federation/like.post.ts +21 -0
- package/server/api/federation/remote-actor.get.ts +22 -0
- package/server/api/federation/reply.post.ts +22 -0
- package/server/api/federation/search.post.ts +17 -0
- package/server/api/federation/timeline.get.ts +22 -0
- package/server/api/federation/unfollow.post.ts +17 -0
- package/server/api/files/[id].delete.ts +35 -0
- package/server/api/files/mine.get.ts +31 -0
- package/server/api/files/upload-from-url.post.ts +68 -0
- package/server/api/files/upload.post.ts +105 -0
- package/server/api/health.get.ts +4 -0
- package/server/api/hubs/[slug]/bans/[userId].delete.ts +13 -0
- package/server/api/hubs/[slug]/bans.get.ts +20 -0
- package/server/api/hubs/[slug]/bans.post.ts +23 -0
- package/server/api/hubs/[slug]/feed.xml.get.ts +60 -0
- package/server/api/hubs/[slug]/gallery.get.ts +21 -0
- package/server/api/hubs/[slug]/index.delete.ts +18 -0
- package/server/api/hubs/[slug]/index.get.ts +14 -0
- package/server/api/hubs/[slug]/index.put.ts +22 -0
- package/server/api/hubs/[slug]/invites.get.ts +20 -0
- package/server/api/hubs/[slug]/invites.post.ts +27 -0
- package/server/api/hubs/[slug]/join.post.ts +17 -0
- package/server/api/hubs/[slug]/leave.post.ts +13 -0
- package/server/api/hubs/[slug]/members/[userId].delete.ts +13 -0
- package/server/api/hubs/[slug]/members/[userId].put.ts +16 -0
- package/server/api/hubs/[slug]/members.get.ts +20 -0
- package/server/api/hubs/[slug]/posts/[postId]/like.post.ts +21 -0
- package/server/api/hubs/[slug]/posts/[postId]/lock.post.ts +17 -0
- package/server/api/hubs/[slug]/posts/[postId]/pin.post.ts +17 -0
- package/server/api/hubs/[slug]/posts/[postId]/replies.get.ts +16 -0
- package/server/api/hubs/[slug]/posts/[postId]/replies.post.ts +21 -0
- package/server/api/hubs/[slug]/posts/[postId].delete.ts +23 -0
- package/server/api/hubs/[slug]/posts/[postId].get.ts +16 -0
- package/server/api/hubs/[slug]/posts/index.get.ts +16 -0
- package/server/api/hubs/[slug]/posts/index.post.ts +36 -0
- package/server/api/hubs/[slug]/products.get.ts +26 -0
- package/server/api/hubs/[slug]/products.post.ts +18 -0
- package/server/api/hubs/[slug]/share.post.ts +39 -0
- package/server/api/hubs/index.get.ts +15 -0
- package/server/api/hubs/index.post.ts +11 -0
- package/server/api/image-proxy.get.ts +91 -0
- package/server/api/learn/[slug]/[lessonSlug]/complete.post.ts +13 -0
- package/server/api/learn/[slug]/[lessonSlug]/index.get.ts +68 -0
- package/server/api/learn/[slug]/enroll.post.ts +12 -0
- package/server/api/learn/[slug]/index.delete.ts +12 -0
- package/server/api/learn/[slug]/index.get.ts +14 -0
- package/server/api/learn/[slug]/index.put.ts +19 -0
- package/server/api/learn/[slug]/lessons/[lessonId].delete.ts +14 -0
- package/server/api/learn/[slug]/lessons/[lessonId].put.ts +24 -0
- package/server/api/learn/[slug]/lessons.post.ts +10 -0
- package/server/api/learn/[slug]/modules/[moduleId].delete.ts +14 -0
- package/server/api/learn/[slug]/modules/[moduleId].put.ts +15 -0
- package/server/api/learn/[slug]/modules.post.ts +14 -0
- package/server/api/learn/[slug]/publish.post.ts +13 -0
- package/server/api/learn/[slug]/unenroll.post.ts +12 -0
- package/server/api/learn/certificates.get.ts +9 -0
- package/server/api/learn/enrollments.get.ts +9 -0
- package/server/api/learn/index.get.ts +17 -0
- package/server/api/learn/index.post.ts +11 -0
- package/server/api/me.get.ts +13 -0
- package/server/api/messages/[conversationId]/info.get.ts +43 -0
- package/server/api/messages/[conversationId]/stream.get.ts +73 -0
- package/server/api/messages/[conversationId].get.ts +13 -0
- package/server/api/messages/[conversationId].post.ts +12 -0
- package/server/api/messages/index.get.ts +39 -0
- package/server/api/messages/index.post.ts +58 -0
- package/server/api/notifications/[id].delete.ts +11 -0
- package/server/api/notifications/count.get.ts +10 -0
- package/server/api/notifications/index.get.ts +24 -0
- package/server/api/notifications/read.post.ts +15 -0
- package/server/api/notifications/stream.get.ts +59 -0
- package/server/api/openapi.get.ts +5 -0
- package/server/api/products/[id].delete.ts +15 -0
- package/server/api/products/[id].put.ts +18 -0
- package/server/api/products/[slug]/content.get.ts +21 -0
- package/server/api/products/[slug].get.ts +16 -0
- package/server/api/products/index.get.ts +28 -0
- package/server/api/profile.get.ts +15 -0
- package/server/api/profile.put.ts +24 -0
- package/server/api/resolve-identity.post.ts +34 -0
- package/server/api/search/index.get.ts +24 -0
- package/server/api/search/trending.get.ts +22 -0
- package/server/api/social/bookmark.get.ts +16 -0
- package/server/api/social/bookmark.post.ts +15 -0
- package/server/api/social/bookmarks.get.ts +16 -0
- package/server/api/social/comments/[id].delete.ts +13 -0
- package/server/api/social/comments.get.ts +18 -0
- package/server/api/social/comments.post.ts +11 -0
- package/server/api/social/like.get.ts +17 -0
- package/server/api/social/like.post.ts +35 -0
- package/server/api/stats.get.ts +8 -0
- package/server/api/user/hubs.get.ts +22 -0
- package/server/api/users/[username]/content.get.ts +21 -0
- package/server/api/users/[username]/feed.xml.get.ts +65 -0
- package/server/api/users/[username]/follow.delete.ts +15 -0
- package/server/api/users/[username]/follow.post.ts +15 -0
- package/server/api/users/[username]/followers.get.ts +22 -0
- package/server/api/users/[username]/following.get.ts +22 -0
- package/server/api/users/[username]/learning.get.ts +18 -0
- package/server/api/users/[username].get.ts +25 -0
- package/server/api/users/index.get.ts +78 -0
- package/server/api/videos/[id].get.ts +18 -0
- package/server/api/videos/categories/[id].delete.ts +15 -0
- package/server/api/videos/categories/[id].put.ts +17 -0
- package/server/api/videos/categories.get.ts +7 -0
- package/server/api/videos/categories.post.ts +11 -0
- package/server/api/videos/index.get.ts +20 -0
- package/server/api/videos/index.post.ts +11 -0
- package/server/middleware/auth.ts +180 -0
- package/server/middleware/features.ts +31 -0
- package/server/middleware/security.ts +54 -0
- package/server/plugins/auto-admin.ts +69 -0
- package/server/plugins/federation-delivery.ts +74 -0
- package/server/routes/.well-known/nodeinfo.ts +15 -0
- package/server/routes/.well-known/webfinger.ts +86 -0
- package/server/routes/actor/followers.ts +34 -0
- package/server/routes/actor/following.ts +34 -0
- package/server/routes/actor/outbox.ts +31 -0
- package/server/routes/actor.ts +30 -0
- package/server/routes/feed.xml.ts +59 -0
- package/server/routes/hubs/[slug]/followers.ts +39 -0
- package/server/routes/hubs/[slug]/inbox.ts +35 -0
- package/server/routes/hubs/[slug]/outbox.ts +43 -0
- package/server/routes/hubs/[slug]/posts/[postId].ts +63 -0
- package/server/routes/hubs/[slug].ts +29 -0
- package/server/routes/inbox.ts +34 -0
- package/server/routes/nodeinfo/2.1.ts +27 -0
- package/server/routes/robots.txt.ts +19 -0
- package/server/routes/sitemap.xml.ts +105 -0
- package/server/routes/users/[username]/followers.ts +33 -0
- package/server/routes/users/[username]/following.ts +33 -0
- package/server/routes/users/[username]/inbox.ts +34 -0
- package/server/routes/users/[username]/outbox.ts +35 -0
- package/server/routes/users/[username].ts +62 -0
- package/server/utils/auth.ts +36 -0
- package/server/utils/db.ts +34 -0
- package/server/utils/errors.ts +24 -0
- package/server/utils/inbox.ts +122 -0
- package/server/utils/validate.ts +82 -0
- package/theme/base.css +283 -0
- package/theme/components.css +322 -0
- package/theme/dark.css +87 -0
- package/theme/editor-panels.css +63 -0
- package/theme/forms.css +216 -0
- package/theme/generics.css +68 -0
- package/theme/layouts.css +415 -0
- package/theme/prose.css +342 -0
- package/types/hub.ts +61 -0
package/pages/index.vue
ADDED
|
@@ -0,0 +1,1005 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { Serialized, ContentListItem, PaginatedResponse } from '@commonpub/server';
|
|
3
|
+
|
|
4
|
+
useSeoMeta({
|
|
5
|
+
title: `${useSiteName()} — Open Maker Platform`,
|
|
6
|
+
description: 'Build, document, and share your projects with a community of makers.',
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
const { user: authUser } = useAuth();
|
|
10
|
+
const { hubs: hubsEnabled, contests: contestsEnabled, learning: learningEnabled, video: videoEnabled, docs: docsEnabled } = useFeatures();
|
|
11
|
+
const { enabledTypeMeta } = useContentTypes();
|
|
12
|
+
|
|
13
|
+
const activeTab = ref(authUser.value ? 'foryou' : 'latest');
|
|
14
|
+
const tabs = computed(() => [
|
|
15
|
+
{ value: 'foryou', label: 'For You', icon: 'fa-solid fa-sparkles' },
|
|
16
|
+
{ value: 'latest', label: 'Latest', icon: 'fa-solid fa-clock' },
|
|
17
|
+
{ value: 'following', label: 'Following', icon: 'fa-solid fa-user-group' },
|
|
18
|
+
...enabledTypeMeta.value.map(ct => ({ value: ct.type, label: ct.plural, icon: ct.icon })),
|
|
19
|
+
]);
|
|
20
|
+
|
|
21
|
+
const user = authUser;
|
|
22
|
+
|
|
23
|
+
const contentQuery = computed(() => ({
|
|
24
|
+
status: 'published',
|
|
25
|
+
type: ['foryou', 'latest', 'following'].includes(activeTab.value) ? undefined : activeTab.value,
|
|
26
|
+
sort: activeTab.value === 'latest' ? 'recent' : activeTab.value === 'following' ? 'recent' : 'popular',
|
|
27
|
+
...(activeTab.value === 'following' && user.value?.id ? { followedBy: user.value.id } : {}),
|
|
28
|
+
limit: 12,
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
const { data: feed } = await useFetch<PaginatedResponse<Serialized<ContentListItem>>>('/api/content', {
|
|
32
|
+
query: contentQuery,
|
|
33
|
+
watch: [contentQuery],
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// Only show featured card if an admin has explicitly featured something
|
|
37
|
+
const { data: featured } = await useFetch<PaginatedResponse<Serialized<ContentListItem>>>('/api/content', {
|
|
38
|
+
query: { status: 'published', featured: true, limit: 1 },
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const { data: stats } = await useFetch('/api/stats');
|
|
42
|
+
|
|
43
|
+
const { data: communities } = await useFetch('/api/hubs', {
|
|
44
|
+
query: { limit: 4 },
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const { data: contests } = await useFetch('/api/contests', {
|
|
48
|
+
query: { limit: 3 },
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const heroDismissed = ref(false);
|
|
52
|
+
const joinedHubs = ref(new Set<string>());
|
|
53
|
+
|
|
54
|
+
// Active contest for hero banner
|
|
55
|
+
const activeContest = computed(() => {
|
|
56
|
+
const items = contests.value?.items;
|
|
57
|
+
return items?.find((c) => c.status === 'active') ?? null;
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const isAuthenticated = computed(() => !!user.value);
|
|
61
|
+
const toast = useToast();
|
|
62
|
+
|
|
63
|
+
// Load more state
|
|
64
|
+
const feedOffset = ref(0);
|
|
65
|
+
const loadingMore = ref(false);
|
|
66
|
+
const allLoaded = ref(false);
|
|
67
|
+
|
|
68
|
+
async function loadMore(): Promise<void> {
|
|
69
|
+
loadingMore.value = true;
|
|
70
|
+
try {
|
|
71
|
+
const nextOffset = (feed.value?.items?.length ?? 0);
|
|
72
|
+
const more = await $fetch<{ items: Array<Record<string, unknown>> }>('/api/content', {
|
|
73
|
+
query: {
|
|
74
|
+
...contentQuery.value,
|
|
75
|
+
offset: nextOffset,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
if (more.items?.length) {
|
|
79
|
+
if (feed.value?.items) {
|
|
80
|
+
feed.value.items.push(...(more.items as typeof feed.value.items));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (!more.items?.length || more.items.length < 12) {
|
|
84
|
+
allLoaded.value = true;
|
|
85
|
+
}
|
|
86
|
+
} catch {
|
|
87
|
+
toast.error('Failed to load more');
|
|
88
|
+
} finally {
|
|
89
|
+
loadingMore.value = false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Reset load more when tab changes
|
|
94
|
+
watch(activeTab, () => { allLoaded.value = false; });
|
|
95
|
+
|
|
96
|
+
async function handleHubJoin(hubSlug: string): Promise<void> {
|
|
97
|
+
if (!isAuthenticated.value) {
|
|
98
|
+
await navigateTo(`/auth/login?redirect=/`);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
try {
|
|
102
|
+
await $fetch(`/api/hubs/${hubSlug}/join`, { method: 'POST' });
|
|
103
|
+
joinedHubs.value.add(hubSlug);
|
|
104
|
+
toast.success('Joined hub!');
|
|
105
|
+
} catch {
|
|
106
|
+
toast.error('Failed to join hub');
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</script>
|
|
110
|
+
|
|
111
|
+
<template>
|
|
112
|
+
<div>
|
|
113
|
+
<!-- ═══ HERO BANNER ═══ -->
|
|
114
|
+
<section v-if="!heroDismissed" class="cpub-hero-banner">
|
|
115
|
+
<div class="cpub-hero-grid-bg" />
|
|
116
|
+
<div class="cpub-hero-gradient" />
|
|
117
|
+
<button class="cpub-hero-dismiss" title="Dismiss" @click="heroDismissed = true">
|
|
118
|
+
<i class="fa-solid fa-xmark"></i>
|
|
119
|
+
</button>
|
|
120
|
+
<div class="cpub-hero-inner">
|
|
121
|
+
<div class="cpub-hero-content">
|
|
122
|
+
<!-- Active contest hero -->
|
|
123
|
+
<template v-if="contestsEnabled && activeContest">
|
|
124
|
+
<div class="cpub-hero-eyebrow">
|
|
125
|
+
<span class="cpub-hero-badge cpub-hero-badge-live"><span class="cpub-live-dot" /> Live Contest</span>
|
|
126
|
+
<span class="cpub-hero-badge">{{ activeContest.entryCount ?? 0 }} entries</span>
|
|
127
|
+
</div>
|
|
128
|
+
<h1 class="cpub-hero-title">{{ activeContest.title }}</h1>
|
|
129
|
+
<p v-if="activeContest.description" class="cpub-hero-excerpt">{{ activeContest.description }}</p>
|
|
130
|
+
<div class="cpub-hero-actions">
|
|
131
|
+
<NuxtLink :to="`/contests/${activeContest.slug}`" class="cpub-btn cpub-btn-primary"><i class="fa-solid fa-trophy"></i> Enter Contest</NuxtLink>
|
|
132
|
+
<NuxtLink :to="`/contests/${activeContest.slug}`" class="cpub-btn"><i class="fa-solid fa-circle-info"></i> View Details</NuxtLink>
|
|
133
|
+
</div>
|
|
134
|
+
<div class="cpub-hero-meta">
|
|
135
|
+
<span class="cpub-hero-stat"><i class="fa-solid fa-users"></i> <strong>{{ activeContest.entryCount ?? 0 }}</strong> entries</span>
|
|
136
|
+
<span v-if="activeContest.endDate" class="cpub-hero-stat"><i class="fa-solid fa-calendar"></i> Ends <strong>{{ new Date(activeContest.endDate).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }) }}</strong></span>
|
|
137
|
+
</div>
|
|
138
|
+
</template>
|
|
139
|
+
<!-- Generic welcome hero (no active contest) -->
|
|
140
|
+
<template v-else>
|
|
141
|
+
<div class="cpub-hero-eyebrow">
|
|
142
|
+
<span class="cpub-hero-badge cpub-hero-badge-live"><span class="cpub-live-dot" /> Open Source</span>
|
|
143
|
+
</div>
|
|
144
|
+
<h1 class="cpub-hero-title">
|
|
145
|
+
Build. Document.<br>
|
|
146
|
+
<span>Share.</span>
|
|
147
|
+
</h1>
|
|
148
|
+
<p class="cpub-hero-excerpt">
|
|
149
|
+
CommonPub is an open platform for maker communities. Document your builds with rich editors, join hubs, learn with structured paths, and share with the world.
|
|
150
|
+
</p>
|
|
151
|
+
<div class="cpub-hero-actions">
|
|
152
|
+
<NuxtLink to="/create" class="cpub-btn cpub-btn-primary"><i class="fa-solid fa-plus"></i> Start Building</NuxtLink>
|
|
153
|
+
<NuxtLink to="/explore" class="cpub-btn"><i class="fa-solid fa-compass"></i> Explore</NuxtLink>
|
|
154
|
+
</div>
|
|
155
|
+
</template>
|
|
156
|
+
</div>
|
|
157
|
+
<div v-if="activeContest?.endDate" class="cpub-hero-aside">
|
|
158
|
+
<CountdownTimer :target-date="activeContest.endDate" />
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</section>
|
|
162
|
+
|
|
163
|
+
<!-- ═══ TABS BAR ═══ -->
|
|
164
|
+
<div class="cpub-tabs-bar">
|
|
165
|
+
<div class="cpub-tabs-inner">
|
|
166
|
+
<button
|
|
167
|
+
v-for="tab in tabs"
|
|
168
|
+
:key="tab.value"
|
|
169
|
+
class="cpub-tab"
|
|
170
|
+
:class="{ active: activeTab === tab.value }"
|
|
171
|
+
@click="activeTab = tab.value"
|
|
172
|
+
>
|
|
173
|
+
{{ tab.label }}
|
|
174
|
+
</button>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
<!-- ═══ MAIN LAYOUT ═══ -->
|
|
179
|
+
<div class="cpub-main-layout">
|
|
180
|
+
<!-- Feed column -->
|
|
181
|
+
<main class="cpub-feed-col">
|
|
182
|
+
|
|
183
|
+
<!-- Featured card -->
|
|
184
|
+
<article v-if="featured?.items?.length && activeTab === 'foryou'" class="cpub-featured-card">
|
|
185
|
+
<div class="cpub-featured-thumb" :style="featured.items[0].coverImageUrl ? { backgroundImage: `url(${featured.items[0].coverImageUrl.includes('://') && !featured.items[0].coverImageUrl.includes(useRuntimeConfig().public?.domain as string || 'localhost') ? `/api/image-proxy?url=${encodeURIComponent(featured.items[0].coverImageUrl)}&w=900` : featured.items[0].coverImageUrl})`, backgroundSize: 'cover', backgroundPosition: 'center' } : {}">
|
|
186
|
+
<i v-if="!featured.items[0].coverImageUrl" class="cpub-thumb-icon fa-solid fa-microchip" />
|
|
187
|
+
<div class="cpub-thumb-overlay">
|
|
188
|
+
<div class="cpub-thumb-badges">
|
|
189
|
+
<span class="cpub-badge cpub-badge-featured">Featured</span>
|
|
190
|
+
<ContentTypeBadge :type="featured.items[0].type" />
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
<div class="cpub-featured-body">
|
|
195
|
+
<h2 class="cpub-featured-title">
|
|
196
|
+
<NuxtLink :to="`/${featured.items[0].type}/${featured.items[0].slug}`">
|
|
197
|
+
{{ featured.items[0].title }}
|
|
198
|
+
</NuxtLink>
|
|
199
|
+
</h2>
|
|
200
|
+
<p v-if="featured.items[0].description" class="cpub-featured-excerpt">
|
|
201
|
+
{{ featured.items[0].description }}
|
|
202
|
+
</p>
|
|
203
|
+
<div class="cpub-card-author-row">
|
|
204
|
+
<AuthorRow :author="featured.items[0].author" :date="featured.items[0].publishedAt || featured.items[0].createdAt" />
|
|
205
|
+
<div class="cpub-card-stats">
|
|
206
|
+
<span class="cpub-stat-item"><i class="fa-solid fa-heart"></i> {{ featured.items[0].likeCount ?? 0 }}</span>
|
|
207
|
+
<span class="cpub-stat-item"><i class="fa-solid fa-comment"></i> {{ featured.items[0].commentCount ?? 0 }}</span>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</article>
|
|
212
|
+
|
|
213
|
+
<!-- Active Contest Banner (compact, below hero) -->
|
|
214
|
+
<NuxtLink v-if="contestsEnabled && activeContest" :to="`/contests/${activeContest.slug}`" class="cpub-contest-banner">
|
|
215
|
+
<div class="cpub-contest-banner-info">
|
|
216
|
+
<span class="cpub-contest-banner-label"><i class="fa-solid fa-trophy"></i> {{ activeContest.title }}</span>
|
|
217
|
+
<span class="cpub-contest-banner-meta">{{ activeContest.entryCount ?? 0 }} entries<template v-if="activeContest.endDate"> · Ends {{ new Date(activeContest.endDate).toLocaleDateString('en-US', { month: 'short', day: 'numeric' }) }}</template></span>
|
|
218
|
+
</div>
|
|
219
|
+
<span class="cpub-contest-banner-btn">Enter Challenge <i class="fa-solid fa-arrow-right"></i></span>
|
|
220
|
+
</NuxtLink>
|
|
221
|
+
|
|
222
|
+
<!-- Content grid (2-col) -->
|
|
223
|
+
<div v-if="feed?.items?.length" class="cpub-content-grid">
|
|
224
|
+
<ContentCard v-for="item in feed.items" :key="item.id" :item="item" />
|
|
225
|
+
</div>
|
|
226
|
+
<div v-else class="cpub-empty-state">
|
|
227
|
+
<div class="cpub-empty-state-icon"><i :class="activeTab === 'following' ? 'fa-solid fa-user-group' : 'fa-solid fa-inbox'"></i></div>
|
|
228
|
+
<template v-if="activeTab === 'following' && !isAuthenticated">
|
|
229
|
+
<p class="cpub-empty-state-title">Sign in to see your feed</p>
|
|
230
|
+
<p class="cpub-empty-state-desc">Follow creators to see their content here.</p>
|
|
231
|
+
<NuxtLink to="/auth/login" class="cpub-btn cpub-btn-primary" style="margin-top: 12px;">Sign In</NuxtLink>
|
|
232
|
+
</template>
|
|
233
|
+
<template v-else-if="activeTab === 'following'">
|
|
234
|
+
<p class="cpub-empty-state-title">No posts from people you follow</p>
|
|
235
|
+
<p class="cpub-empty-state-desc">Follow some creators to fill up your feed!</p>
|
|
236
|
+
<NuxtLink to="/explore" class="cpub-btn" style="margin-top: 12px;"><i class="fa-solid fa-compass"></i> Explore</NuxtLink>
|
|
237
|
+
</template>
|
|
238
|
+
<template v-else>
|
|
239
|
+
<p class="cpub-empty-state-title">No content yet</p>
|
|
240
|
+
<p class="cpub-empty-state-desc">Be the first to create something!</p>
|
|
241
|
+
</template>
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
<div v-if="!allLoaded && feed?.items?.length" class="cpub-load-more-row">
|
|
245
|
+
<button class="cpub-btn-load-more" :disabled="loadingMore" @click="loadMore">
|
|
246
|
+
<i :class="loadingMore ? 'fa-solid fa-circle-notch fa-spin' : 'fa-solid fa-rotate'"></i>
|
|
247
|
+
{{ loadingMore ? 'Loading...' : 'Load more' }}
|
|
248
|
+
</button>
|
|
249
|
+
</div>
|
|
250
|
+
</main>
|
|
251
|
+
|
|
252
|
+
<!-- ─── SIDEBAR ─── -->
|
|
253
|
+
<aside class="cpub-sidebar">
|
|
254
|
+
<!-- Platform Stats -->
|
|
255
|
+
<div class="cpub-sb-card">
|
|
256
|
+
<div class="cpub-sb-head">Platform Stats</div>
|
|
257
|
+
<div class="cpub-stats-grid">
|
|
258
|
+
<div class="cpub-stat-block">
|
|
259
|
+
<span class="cpub-stat-num">{{ stats?.content?.byType?.project ?? 0 }}</span>
|
|
260
|
+
<span class="cpub-stat-lbl">Projects</span>
|
|
261
|
+
</div>
|
|
262
|
+
<div class="cpub-stat-block">
|
|
263
|
+
<span class="cpub-stat-num">{{ stats?.content?.byType?.article ?? 0 }}</span>
|
|
264
|
+
<span class="cpub-stat-lbl">Articles</span>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="cpub-stat-block">
|
|
267
|
+
<span class="cpub-stat-num">{{ stats?.users?.total ?? 0 }}</span>
|
|
268
|
+
<span class="cpub-stat-lbl">Members</span>
|
|
269
|
+
</div>
|
|
270
|
+
<div v-if="hubsEnabled" class="cpub-stat-block">
|
|
271
|
+
<span class="cpub-stat-num">{{ stats?.hubs?.total ?? 0 }}</span>
|
|
272
|
+
<span class="cpub-stat-lbl">Hubs</span>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<!-- Active Contests -->
|
|
278
|
+
<div v-if="contestsEnabled && contests?.items?.length" class="cpub-sb-card">
|
|
279
|
+
<div class="cpub-sb-head">Active Contests <NuxtLink to="/contests">View all</NuxtLink></div>
|
|
280
|
+
<div v-for="c in contests.items" :key="c.id" class="cpub-contest-item">
|
|
281
|
+
<NuxtLink :to="`/contests/${c.slug}`" class="cpub-contest-name">{{ c.title }}</NuxtLink>
|
|
282
|
+
<div class="cpub-contest-row">
|
|
283
|
+
<span class="cpub-contest-entries">{{ c.entryCount ?? 0 }} entries</span>
|
|
284
|
+
<span v-if="c.endDate" class="cpub-contest-deadline">
|
|
285
|
+
<i class="fa-regular fa-clock"></i> {{ Math.max(0, Math.ceil((new Date(c.endDate).getTime() - Date.now()) / 86400000)) }}d left
|
|
286
|
+
</span>
|
|
287
|
+
</div>
|
|
288
|
+
<NuxtLink :to="`/contests/${c.slug}`" class="cpub-btn-enter">Enter Contest</NuxtLink>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
|
|
292
|
+
<!-- Trending Hubs -->
|
|
293
|
+
<div v-if="hubsEnabled && communities?.items?.length" class="cpub-sb-card">
|
|
294
|
+
<div class="cpub-sb-head">Trending Hubs <NuxtLink to="/hubs">Browse</NuxtLink></div>
|
|
295
|
+
<div v-for="hub in communities.items" :key="hub.id" class="cpub-hub-item">
|
|
296
|
+
<div class="cpub-hub-icon">
|
|
297
|
+
<i class="fa-solid fa-users"></i>
|
|
298
|
+
</div>
|
|
299
|
+
<div class="cpub-hub-info">
|
|
300
|
+
<NuxtLink :to="`/hubs/${hub.slug}`" class="cpub-hub-name">{{ hub.name }}</NuxtLink>
|
|
301
|
+
<div class="cpub-hub-members">{{ hub.memberCount ?? 0 }} members</div>
|
|
302
|
+
</div>
|
|
303
|
+
<button v-if="joinedHubs.has(hub.slug)" class="cpub-btn-joined" disabled><i class="fa-solid fa-check"></i> Joined</button>
|
|
304
|
+
<button v-else class="cpub-btn-join" @click.prevent="handleHubJoin(hub.slug)">Join</button>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
<!-- Quick Links -->
|
|
309
|
+
<div class="cpub-sb-card">
|
|
310
|
+
<div class="cpub-sb-head">Explore</div>
|
|
311
|
+
<div class="cpub-tag-cloud">
|
|
312
|
+
<NuxtLink v-for="ct in enabledTypeMeta" :key="ct.type" :to="ct.route" class="cpub-trending-tag">{{ ct.plural }}</NuxtLink>
|
|
313
|
+
<NuxtLink v-if="learningEnabled" to="/learn" class="cpub-trending-tag">Learn</NuxtLink>
|
|
314
|
+
<NuxtLink v-if="videoEnabled" to="/videos" class="cpub-trending-tag">Videos</NuxtLink>
|
|
315
|
+
<NuxtLink v-if="docsEnabled" to="/docs" class="cpub-trending-tag">Docs</NuxtLink>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
|
|
319
|
+
<!-- Powered badge -->
|
|
320
|
+
<div class="cpub-powered-badge">
|
|
321
|
+
<span class="cpub-powered-text">Powered by</span>
|
|
322
|
+
<span class="cpub-powered-logo">[<span>C</span>] CommonPub</span>
|
|
323
|
+
</div>
|
|
324
|
+
</aside>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
</template>
|
|
328
|
+
|
|
329
|
+
<style scoped>
|
|
330
|
+
/* ─── HERO BANNER ─── */
|
|
331
|
+
.cpub-hero-banner {
|
|
332
|
+
position: relative;
|
|
333
|
+
background: var(--surface);
|
|
334
|
+
border-bottom: var(--border-width-default) solid var(--border);
|
|
335
|
+
overflow: hidden;
|
|
336
|
+
min-height: 200px;
|
|
337
|
+
display: flex;
|
|
338
|
+
align-items: stretch;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.cpub-hero-grid-bg {
|
|
342
|
+
position: absolute;
|
|
343
|
+
inset: 0;
|
|
344
|
+
background-image:
|
|
345
|
+
linear-gradient(var(--border2) 1px, transparent 1px),
|
|
346
|
+
linear-gradient(90deg, var(--border2) 1px, transparent 1px);
|
|
347
|
+
background-size: 32px 32px;
|
|
348
|
+
opacity: 0.25;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.cpub-hero-gradient {
|
|
352
|
+
position: absolute;
|
|
353
|
+
inset: 0;
|
|
354
|
+
background: var(--surface2);
|
|
355
|
+
opacity: 0.5;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.cpub-hero-dismiss {
|
|
359
|
+
position: absolute;
|
|
360
|
+
top: 12px;
|
|
361
|
+
right: 16px;
|
|
362
|
+
background: transparent;
|
|
363
|
+
border: none;
|
|
364
|
+
color: var(--text-faint);
|
|
365
|
+
font-size: 12px;
|
|
366
|
+
cursor: pointer;
|
|
367
|
+
padding: 4px;
|
|
368
|
+
z-index: 2;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.cpub-hero-dismiss:hover { color: var(--text-dim); }
|
|
372
|
+
|
|
373
|
+
.cpub-hero-inner {
|
|
374
|
+
position: relative;
|
|
375
|
+
z-index: 1;
|
|
376
|
+
max-width: 1280px;
|
|
377
|
+
margin: 0 auto;
|
|
378
|
+
padding: 36px 32px;
|
|
379
|
+
width: 100%;
|
|
380
|
+
display: flex;
|
|
381
|
+
align-items: center;
|
|
382
|
+
gap: 48px;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.cpub-hero-content { flex: 1; }
|
|
386
|
+
|
|
387
|
+
.cpub-hero-eyebrow {
|
|
388
|
+
display: flex;
|
|
389
|
+
align-items: center;
|
|
390
|
+
gap: 8px;
|
|
391
|
+
margin-bottom: 12px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.cpub-hero-badge {
|
|
395
|
+
font-size: 9px;
|
|
396
|
+
font-family: var(--font-mono);
|
|
397
|
+
letter-spacing: 0.1em;
|
|
398
|
+
text-transform: uppercase;
|
|
399
|
+
padding: 3px 9px;
|
|
400
|
+
background: var(--yellow-bg);
|
|
401
|
+
border: var(--border-width-default) solid var(--yellow);
|
|
402
|
+
color: var(--yellow);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.cpub-hero-badge-live {
|
|
406
|
+
background: var(--green-bg);
|
|
407
|
+
border-color: var(--green);
|
|
408
|
+
color: var(--green);
|
|
409
|
+
display: flex;
|
|
410
|
+
align-items: center;
|
|
411
|
+
gap: 5px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.cpub-live-dot {
|
|
415
|
+
width: 5px;
|
|
416
|
+
height: 5px;
|
|
417
|
+
border-radius: 50%;
|
|
418
|
+
background: var(--green);
|
|
419
|
+
animation: cpub-pulse 2s ease-in-out infinite;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@keyframes cpub-pulse {
|
|
423
|
+
0%, 100% { opacity: 1; }
|
|
424
|
+
50% { opacity: 0.4; }
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.cpub-hero-title {
|
|
428
|
+
font-size: 22px;
|
|
429
|
+
font-weight: 700;
|
|
430
|
+
line-height: 1.25;
|
|
431
|
+
margin-bottom: 10px;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.cpub-hero-title span { color: var(--accent); }
|
|
435
|
+
|
|
436
|
+
.cpub-hero-excerpt {
|
|
437
|
+
font-size: 13px;
|
|
438
|
+
color: var(--text-dim);
|
|
439
|
+
line-height: 1.65;
|
|
440
|
+
margin-bottom: 20px;
|
|
441
|
+
max-width: 560px;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.cpub-hero-actions { display: flex; gap: 8px; }
|
|
445
|
+
|
|
446
|
+
.cpub-hero-meta {
|
|
447
|
+
display: flex;
|
|
448
|
+
align-items: center;
|
|
449
|
+
gap: 20px;
|
|
450
|
+
margin-top: 16px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.cpub-hero-stat {
|
|
454
|
+
font-size: 11px;
|
|
455
|
+
font-family: var(--font-mono);
|
|
456
|
+
color: var(--text-faint);
|
|
457
|
+
display: flex;
|
|
458
|
+
align-items: center;
|
|
459
|
+
gap: 6px;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.cpub-hero-stat strong { color: var(--text-dim); }
|
|
463
|
+
|
|
464
|
+
.cpub-hero-aside { flex-shrink: 0; }
|
|
465
|
+
|
|
466
|
+
/* ─── TABS BAR ─── */
|
|
467
|
+
.cpub-tabs-bar {
|
|
468
|
+
position: sticky;
|
|
469
|
+
top: 48px;
|
|
470
|
+
background: var(--surface);
|
|
471
|
+
border-bottom: var(--border-width-default) solid var(--border);
|
|
472
|
+
z-index: 90;
|
|
473
|
+
padding: 0 32px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.cpub-tabs-inner {
|
|
477
|
+
max-width: 1280px;
|
|
478
|
+
margin: 0 auto;
|
|
479
|
+
display: flex;
|
|
480
|
+
align-items: flex-end;
|
|
481
|
+
gap: 0;
|
|
482
|
+
overflow-x: auto;
|
|
483
|
+
scrollbar-width: none;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.cpub-tabs-inner::-webkit-scrollbar { display: none; }
|
|
487
|
+
|
|
488
|
+
.cpub-tab {
|
|
489
|
+
font-size: 12px;
|
|
490
|
+
font-family: var(--font-mono);
|
|
491
|
+
color: var(--text-faint);
|
|
492
|
+
padding: 10px 16px;
|
|
493
|
+
border-bottom: var(--border-width-default) solid transparent;
|
|
494
|
+
white-space: nowrap;
|
|
495
|
+
background: none;
|
|
496
|
+
border-top: none;
|
|
497
|
+
border-left: none;
|
|
498
|
+
border-right: none;
|
|
499
|
+
cursor: pointer;
|
|
500
|
+
transition: color 0.15s, border-color 0.15s;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.cpub-tab:hover { color: var(--text-dim); }
|
|
504
|
+
|
|
505
|
+
.cpub-tab.active {
|
|
506
|
+
color: var(--accent);
|
|
507
|
+
border-bottom-color: var(--accent);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/* ─── MAIN LAYOUT ─── */
|
|
511
|
+
.cpub-main-layout {
|
|
512
|
+
max-width: 1280px;
|
|
513
|
+
margin: 0 auto;
|
|
514
|
+
padding: 28px 32px 48px;
|
|
515
|
+
display: grid;
|
|
516
|
+
grid-template-columns: 1fr 300px;
|
|
517
|
+
gap: 32px;
|
|
518
|
+
align-items: start;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.cpub-feed-col { min-width: 0; }
|
|
522
|
+
|
|
523
|
+
/* ─── FEATURED CARD ─── */
|
|
524
|
+
.cpub-featured-card {
|
|
525
|
+
background: var(--surface);
|
|
526
|
+
border: var(--border-width-default) solid var(--border);
|
|
527
|
+
overflow: hidden;
|
|
528
|
+
margin-bottom: 24px;
|
|
529
|
+
box-shadow: var(--shadow-md);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.cpub-featured-thumb {
|
|
533
|
+
height: 220px;
|
|
534
|
+
background: var(--surface2);
|
|
535
|
+
position: relative;
|
|
536
|
+
overflow: hidden;
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
justify-content: center;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.cpub-featured-thumb::before {
|
|
543
|
+
content: '';
|
|
544
|
+
position: absolute;
|
|
545
|
+
inset: 0;
|
|
546
|
+
background-image:
|
|
547
|
+
linear-gradient(var(--border2) 1px, transparent 1px),
|
|
548
|
+
linear-gradient(90deg, var(--border2) 1px, transparent 1px);
|
|
549
|
+
background-size: 24px 24px;
|
|
550
|
+
opacity: 0.3;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.cpub-featured-thumb::after {
|
|
554
|
+
content: '';
|
|
555
|
+
position: absolute;
|
|
556
|
+
inset: 0;
|
|
557
|
+
background: linear-gradient(to bottom, transparent 30%, var(--bg) 100%);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.cpub-thumb-icon {
|
|
561
|
+
position: relative;
|
|
562
|
+
z-index: 1;
|
|
563
|
+
font-size: 48px;
|
|
564
|
+
opacity: 0.2;
|
|
565
|
+
color: var(--teal);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.cpub-thumb-overlay {
|
|
569
|
+
position: absolute;
|
|
570
|
+
bottom: 14px;
|
|
571
|
+
left: 16px;
|
|
572
|
+
right: 16px;
|
|
573
|
+
z-index: 2;
|
|
574
|
+
display: flex;
|
|
575
|
+
align-items: flex-end;
|
|
576
|
+
justify-content: space-between;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.cpub-thumb-badges { display: flex; gap: 5px; }
|
|
580
|
+
|
|
581
|
+
.cpub-badge-featured {
|
|
582
|
+
background: var(--yellow-bg);
|
|
583
|
+
border: var(--border-width-default) solid var(--yellow);
|
|
584
|
+
color: var(--yellow);
|
|
585
|
+
font-size: 9px;
|
|
586
|
+
font-family: var(--font-mono);
|
|
587
|
+
text-transform: uppercase;
|
|
588
|
+
letter-spacing: 0.07em;
|
|
589
|
+
padding: 3px 8px;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.cpub-featured-body { padding: 20px 24px 18px; }
|
|
593
|
+
|
|
594
|
+
.cpub-featured-title {
|
|
595
|
+
font-size: 17px;
|
|
596
|
+
font-weight: 700;
|
|
597
|
+
line-height: 1.3;
|
|
598
|
+
margin-bottom: 8px;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.cpub-featured-title a { color: var(--text); text-decoration: none; }
|
|
602
|
+
.cpub-featured-title a:hover { color: var(--accent); }
|
|
603
|
+
|
|
604
|
+
.cpub-featured-excerpt {
|
|
605
|
+
font-size: 12px;
|
|
606
|
+
color: var(--text-dim);
|
|
607
|
+
line-height: 1.65;
|
|
608
|
+
margin-bottom: 14px;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.cpub-card-author-row {
|
|
612
|
+
display: flex;
|
|
613
|
+
align-items: center;
|
|
614
|
+
gap: 8px;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.cpub-card-stats {
|
|
618
|
+
display: flex;
|
|
619
|
+
align-items: center;
|
|
620
|
+
gap: 12px;
|
|
621
|
+
margin-left: auto;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.cpub-stat-item {
|
|
625
|
+
display: flex;
|
|
626
|
+
align-items: center;
|
|
627
|
+
gap: 4px;
|
|
628
|
+
font-size: 11px;
|
|
629
|
+
font-family: var(--font-mono);
|
|
630
|
+
color: var(--text-faint);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.cpub-stat-item i { font-size: 10px; }
|
|
634
|
+
|
|
635
|
+
/* ─── CONTEST BANNER ─── */
|
|
636
|
+
.cpub-contest-banner {
|
|
637
|
+
display: flex;
|
|
638
|
+
align-items: center;
|
|
639
|
+
justify-content: space-between;
|
|
640
|
+
gap: 16px;
|
|
641
|
+
background: var(--accent-bg);
|
|
642
|
+
border: var(--border-width-default) solid var(--accent);
|
|
643
|
+
padding: 14px 18px;
|
|
644
|
+
margin-bottom: 20px;
|
|
645
|
+
text-decoration: none;
|
|
646
|
+
color: var(--text);
|
|
647
|
+
transition: box-shadow 0.15s, transform 0.15s;
|
|
648
|
+
}
|
|
649
|
+
.cpub-contest-banner:hover {
|
|
650
|
+
transform: translate(-2px, -2px);
|
|
651
|
+
box-shadow: var(--shadow-md);
|
|
652
|
+
}
|
|
653
|
+
.cpub-contest-banner-info { flex: 1; min-width: 0; }
|
|
654
|
+
.cpub-contest-banner-label {
|
|
655
|
+
display: block;
|
|
656
|
+
font-size: 0.875rem;
|
|
657
|
+
font-weight: 700;
|
|
658
|
+
color: var(--text);
|
|
659
|
+
}
|
|
660
|
+
.cpub-contest-banner-label i {
|
|
661
|
+
color: var(--accent);
|
|
662
|
+
margin-right: 4px;
|
|
663
|
+
}
|
|
664
|
+
.cpub-contest-banner-meta {
|
|
665
|
+
font-family: var(--font-mono);
|
|
666
|
+
font-size: 0.6875rem;
|
|
667
|
+
color: var(--text-dim);
|
|
668
|
+
letter-spacing: 0.02em;
|
|
669
|
+
}
|
|
670
|
+
.cpub-contest-banner-btn {
|
|
671
|
+
display: inline-flex;
|
|
672
|
+
align-items: center;
|
|
673
|
+
gap: 6px;
|
|
674
|
+
font-family: var(--font-mono);
|
|
675
|
+
font-size: 0.75rem;
|
|
676
|
+
font-weight: 700;
|
|
677
|
+
text-transform: uppercase;
|
|
678
|
+
letter-spacing: 0.04em;
|
|
679
|
+
padding: 8px 14px;
|
|
680
|
+
background: var(--accent);
|
|
681
|
+
color: var(--color-text-inverse);
|
|
682
|
+
border: var(--border-width-default) solid var(--accent);
|
|
683
|
+
white-space: nowrap;
|
|
684
|
+
flex-shrink: 0;
|
|
685
|
+
box-shadow: var(--shadow-sm);
|
|
686
|
+
transition: box-shadow 0.15s, transform 0.15s;
|
|
687
|
+
}
|
|
688
|
+
.cpub-contest-banner:hover .cpub-contest-banner-btn {
|
|
689
|
+
box-shadow: none;
|
|
690
|
+
transform: translate(2px, 2px);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/* ─── CONTENT GRID ─── */
|
|
694
|
+
.cpub-content-grid {
|
|
695
|
+
display: grid;
|
|
696
|
+
grid-template-columns: 1fr 1fr;
|
|
697
|
+
gap: 18px;
|
|
698
|
+
margin-bottom: 24px;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/* ─── LOAD MORE ─── */
|
|
702
|
+
.cpub-load-more-row {
|
|
703
|
+
display: flex;
|
|
704
|
+
justify-content: center;
|
|
705
|
+
padding: 8px 0 4px;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.cpub-btn-load-more {
|
|
709
|
+
padding: 8px 28px;
|
|
710
|
+
background: var(--surface);
|
|
711
|
+
border: var(--border-width-default) solid var(--border);
|
|
712
|
+
color: var(--text-dim);
|
|
713
|
+
font-size: 12px;
|
|
714
|
+
font-family: var(--font-mono);
|
|
715
|
+
display: flex;
|
|
716
|
+
align-items: center;
|
|
717
|
+
gap: 8px;
|
|
718
|
+
transition: all 0.15s;
|
|
719
|
+
box-shadow: var(--shadow-sm);
|
|
720
|
+
cursor: pointer;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.cpub-btn-load-more:hover {
|
|
724
|
+
background: var(--surface2);
|
|
725
|
+
color: var(--text);
|
|
726
|
+
box-shadow: var(--shadow-md);
|
|
727
|
+
transform: translate(-1px, -1px);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/* ─── SIDEBAR ─── */
|
|
731
|
+
.cpub-sidebar {
|
|
732
|
+
min-width: 0;
|
|
733
|
+
display: flex;
|
|
734
|
+
flex-direction: column;
|
|
735
|
+
gap: 18px;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.cpub-sb-head {
|
|
739
|
+
font-size: 10px;
|
|
740
|
+
font-family: var(--font-mono);
|
|
741
|
+
font-weight: 700;
|
|
742
|
+
text-transform: uppercase;
|
|
743
|
+
letter-spacing: 0.1em;
|
|
744
|
+
color: var(--text-faint);
|
|
745
|
+
padding-bottom: 10px;
|
|
746
|
+
border-bottom: var(--border-width-default) solid var(--border);
|
|
747
|
+
margin-bottom: 12px;
|
|
748
|
+
display: flex;
|
|
749
|
+
align-items: center;
|
|
750
|
+
justify-content: space-between;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.cpub-sb-head a {
|
|
754
|
+
font-size: 10px;
|
|
755
|
+
color: var(--accent);
|
|
756
|
+
font-weight: 400;
|
|
757
|
+
text-transform: none;
|
|
758
|
+
letter-spacing: 0;
|
|
759
|
+
text-decoration: none;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/* Stats grid */
|
|
763
|
+
.cpub-stats-grid {
|
|
764
|
+
display: grid;
|
|
765
|
+
grid-template-columns: 1fr 1fr;
|
|
766
|
+
gap: 8px;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.cpub-stat-block {
|
|
770
|
+
background: var(--surface2);
|
|
771
|
+
border: var(--border-width-default) solid var(--border);
|
|
772
|
+
padding: 12px 14px;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.cpub-stat-num {
|
|
776
|
+
font-size: 18px;
|
|
777
|
+
font-weight: 700;
|
|
778
|
+
font-family: var(--font-mono);
|
|
779
|
+
color: var(--text);
|
|
780
|
+
line-height: 1;
|
|
781
|
+
display: block;
|
|
782
|
+
margin-bottom: 3px;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
.cpub-stat-lbl {
|
|
786
|
+
font-size: 10px;
|
|
787
|
+
color: var(--text-faint);
|
|
788
|
+
font-family: var(--font-mono);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/* Contest items */
|
|
792
|
+
.cpub-contest-item {
|
|
793
|
+
padding: 10px 0;
|
|
794
|
+
border-bottom: var(--border-width-default) solid var(--border2);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.cpub-contest-item:last-child { border-bottom: none; padding-bottom: 0; }
|
|
798
|
+
.cpub-contest-item:first-child { padding-top: 0; }
|
|
799
|
+
|
|
800
|
+
.cpub-contest-name {
|
|
801
|
+
font-size: 12px;
|
|
802
|
+
font-weight: 600;
|
|
803
|
+
color: var(--text);
|
|
804
|
+
margin-bottom: 5px;
|
|
805
|
+
line-height: 1.35;
|
|
806
|
+
display: block;
|
|
807
|
+
text-decoration: none;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.cpub-contest-name:hover { color: var(--accent); }
|
|
811
|
+
|
|
812
|
+
.cpub-contest-row {
|
|
813
|
+
display: flex;
|
|
814
|
+
align-items: center;
|
|
815
|
+
gap: 8px;
|
|
816
|
+
margin-bottom: 8px;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.cpub-contest-entries {
|
|
820
|
+
font-size: 10px;
|
|
821
|
+
font-family: var(--font-mono);
|
|
822
|
+
color: var(--text-faint);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.cpub-contest-deadline {
|
|
826
|
+
font-size: 10px;
|
|
827
|
+
font-family: var(--font-mono);
|
|
828
|
+
color: var(--text-faint);
|
|
829
|
+
display: flex;
|
|
830
|
+
align-items: center;
|
|
831
|
+
gap: 4px;
|
|
832
|
+
margin-left: auto;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.cpub-btn-enter {
|
|
836
|
+
width: 100%;
|
|
837
|
+
padding: 6px;
|
|
838
|
+
background: var(--accent-bg);
|
|
839
|
+
border: var(--border-width-default) solid var(--accent);
|
|
840
|
+
color: var(--accent);
|
|
841
|
+
font-size: 11px;
|
|
842
|
+
font-family: var(--font-mono);
|
|
843
|
+
text-align: center;
|
|
844
|
+
text-decoration: none;
|
|
845
|
+
display: block;
|
|
846
|
+
transition: all 0.15s;
|
|
847
|
+
cursor: pointer;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.cpub-btn-enter:hover {
|
|
851
|
+
background: var(--accent);
|
|
852
|
+
color: var(--color-text-inverse);
|
|
853
|
+
border-color: var(--border);
|
|
854
|
+
box-shadow: var(--shadow-sm);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/* Hub items */
|
|
858
|
+
.cpub-hub-item {
|
|
859
|
+
display: flex;
|
|
860
|
+
align-items: center;
|
|
861
|
+
gap: 10px;
|
|
862
|
+
padding: 8px 0;
|
|
863
|
+
border-bottom: var(--border-width-default) solid var(--border2);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.cpub-hub-item:last-child { border-bottom: none; padding-bottom: 0; }
|
|
867
|
+
.cpub-hub-item:first-child { padding-top: 0; }
|
|
868
|
+
|
|
869
|
+
.cpub-hub-icon {
|
|
870
|
+
width: 32px;
|
|
871
|
+
height: 32px;
|
|
872
|
+
display: flex;
|
|
873
|
+
align-items: center;
|
|
874
|
+
justify-content: center;
|
|
875
|
+
font-size: 14px;
|
|
876
|
+
flex-shrink: 0;
|
|
877
|
+
border: var(--border-width-default) solid var(--teal);
|
|
878
|
+
background: var(--teal-bg);
|
|
879
|
+
color: var(--teal);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.cpub-hub-info { flex: 1; min-width: 0; }
|
|
883
|
+
|
|
884
|
+
.cpub-hub-name {
|
|
885
|
+
font-size: 12px;
|
|
886
|
+
font-weight: 600;
|
|
887
|
+
color: var(--text);
|
|
888
|
+
margin-bottom: 2px;
|
|
889
|
+
display: block;
|
|
890
|
+
text-decoration: none;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.cpub-hub-name:hover { color: var(--accent); }
|
|
894
|
+
|
|
895
|
+
.cpub-hub-members {
|
|
896
|
+
font-size: 10px;
|
|
897
|
+
font-family: var(--font-mono);
|
|
898
|
+
color: var(--text-faint);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.cpub-btn-join {
|
|
902
|
+
padding: 4px 10px;
|
|
903
|
+
background: var(--surface);
|
|
904
|
+
border: var(--border-width-default) solid var(--border);
|
|
905
|
+
color: var(--text-dim);
|
|
906
|
+
font-size: 10px;
|
|
907
|
+
font-family: var(--font-mono);
|
|
908
|
+
flex-shrink: 0;
|
|
909
|
+
transition: all 0.15s;
|
|
910
|
+
cursor: pointer;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.cpub-btn-join:hover {
|
|
914
|
+
border-color: var(--accent);
|
|
915
|
+
color: var(--accent);
|
|
916
|
+
box-shadow: var(--shadow-sm);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.cpub-btn-joined {
|
|
920
|
+
padding: 4px 10px;
|
|
921
|
+
background: var(--green-bg);
|
|
922
|
+
border: var(--border-width-default) solid var(--green-border);
|
|
923
|
+
color: var(--green);
|
|
924
|
+
font-size: 10px;
|
|
925
|
+
font-family: var(--font-mono);
|
|
926
|
+
flex-shrink: 0;
|
|
927
|
+
display: flex;
|
|
928
|
+
align-items: center;
|
|
929
|
+
gap: 4px;
|
|
930
|
+
cursor: default;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/* Powered badge */
|
|
934
|
+
.cpub-powered-badge {
|
|
935
|
+
display: flex;
|
|
936
|
+
align-items: center;
|
|
937
|
+
justify-content: center;
|
|
938
|
+
gap: 8px;
|
|
939
|
+
padding: 12px;
|
|
940
|
+
background: var(--surface);
|
|
941
|
+
border: var(--border-width-default) solid var(--border);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.cpub-powered-text {
|
|
945
|
+
font-size: 10px;
|
|
946
|
+
font-family: var(--font-mono);
|
|
947
|
+
color: var(--text-faint);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.cpub-powered-logo {
|
|
951
|
+
font-size: 11px;
|
|
952
|
+
font-weight: 700;
|
|
953
|
+
font-family: var(--font-mono);
|
|
954
|
+
color: var(--text-dim);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.cpub-powered-logo span { color: var(--accent); }
|
|
958
|
+
|
|
959
|
+
/* ─── TRENDING TAGS ─── */
|
|
960
|
+
.cpub-tag-cloud {
|
|
961
|
+
display: flex;
|
|
962
|
+
flex-wrap: wrap;
|
|
963
|
+
gap: 6px;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.cpub-trending-tag {
|
|
967
|
+
font-size: 10px;
|
|
968
|
+
font-family: var(--font-mono);
|
|
969
|
+
padding: 3px 10px;
|
|
970
|
+
border: var(--border-width-default) solid var(--border);
|
|
971
|
+
background: var(--surface2);
|
|
972
|
+
color: var(--text-dim);
|
|
973
|
+
text-decoration: none;
|
|
974
|
+
transition: all 0.12s;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.cpub-trending-tag:hover {
|
|
978
|
+
border-color: var(--accent);
|
|
979
|
+
color: var(--accent);
|
|
980
|
+
background: var(--accent-bg);
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/* ─── RESPONSIVE ─── */
|
|
984
|
+
@media (max-width: 1024px) {
|
|
985
|
+
.cpub-main-layout {
|
|
986
|
+
grid-template-columns: 1fr;
|
|
987
|
+
}
|
|
988
|
+
.cpub-hero-inner {
|
|
989
|
+
flex-direction: column;
|
|
990
|
+
gap: 24px;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
@media (max-width: 640px) {
|
|
995
|
+
.cpub-content-grid {
|
|
996
|
+
grid-template-columns: 1fr;
|
|
997
|
+
}
|
|
998
|
+
.cpub-hero-inner {
|
|
999
|
+
padding: 24px 16px;
|
|
1000
|
+
}
|
|
1001
|
+
.cpub-main-layout {
|
|
1002
|
+
padding: 16px;
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
</style>
|