UNPKG

next-tribune-blog

Version:

Automatic blog generator for Next.js from Tribune.sh blockchain articles

363 lines (307 loc) 5.38 kB
/* Container and Layout */ .container { max-width: 1200px; margin: 0 auto; padding: 2rem; } .pageTitle { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .subtitle { text-align: center; color: #6b7280; font-size: 1.25rem; margin-bottom: 3rem; } /* Blog Grid */ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; } /* Blog Card */ .card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; transition: all 0.3s ease; text-decoration: none; color: inherit; display: block; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); } .card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); } .cardImage { width: 100%; height: 200px; object-fit: cover; } .cardContent { padding: 1.5rem; } .cardTitle { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; color: #111827; line-height: 1.3; } .cardDescription { color: #6b7280; line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .cardMeta { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; } .cardDate { color: #9ca3af; font-weight: 500; } .cardAuthor { color: #6366f1; font-family: monospace; font-size: 0.875rem; } /* Article Styles */ .article { max-width: 800px; margin: 0 auto; padding: 2rem; } .header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid #e5e7eb; } .coverImage { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 2rem; } .title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; color: #111827; line-height: 1.2; } .metadata { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: #6b7280; } .date { font-size: 1rem; } .divider { color: #d1d5db; } .tribuneLink { color: #6366f1; text-decoration: none; font-weight: 500; transition: color 0.2s ease; } .tribuneLink:hover { color: #4f46e5; text-decoration: underline; } .author { color: #4b5563; font-size: 1.125rem; } .authorLink { color: #6366f1; text-decoration: none; font-family: monospace; font-weight: 500; } .authorLink:hover { text-decoration: underline; } /* Content Styles */ .content { line-height: 1.8; font-size: 1.125rem; color: #374151; } .content h1, .content h2, .content h3 { font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #111827; } .content h1 { font-size: 2rem; } .content h2 { font-size: 1.75rem; } .content h3 { font-size: 1.5rem; } .content p { margin-bottom: 1.5rem; } .content ul, .content ol { margin-bottom: 1.5rem; padding-left: 2rem; } .content li { margin-bottom: 0.5rem; } .content pre { background: #1f2937; color: #e5e7eb; padding: 1.5rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; } .content code { background: #f3f4f6; color: #dc2626; padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.875em; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; } .content pre code { background: transparent; color: inherit; padding: 0; } .content blockquote { border-left: 4px solid #6366f1; padding-left: 1.5rem; margin: 1.5rem 0; font-style: italic; color: #6b7280; } .content a { color: #6366f1; text-decoration: underline; transition: color 0.2s ease; } .content a:hover { color: #4f46e5; } .content img { max-width: 100%; height: auto; border-radius: 8px; margin: 2rem 0; } /* Footer */ .footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; text-align: center; } .tokenLink { display: inline-flex; align-items: center; gap: 0.5rem; color: #6366f1; text-decoration: none; font-weight: 500; padding: 0.75rem 1.5rem; border: 2px solid #6366f1; border-radius: 8px; transition: all 0.2s ease; } .tokenLink:hover { background: #6366f1; color: white; } /* Empty State */ .emptyState { text-align: center; padding: 4rem 2rem; background: #f9fafb; border-radius: 12px; margin-top: 2rem; } .emptyState p { color: #6b7280; font-size: 1.125rem; margin-bottom: 1.5rem; } .emptyState ol { text-align: left; max-width: 500px; margin: 0 auto; color: #4b5563; } .emptyState li { margin-bottom: 0.75rem; } /* Dark mode support */ @media (prefers-color-scheme: dark) { .card { background: #1f2937; border-color: #374151; } .card:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); } .cardTitle, .title, .content h1, .content h2, .content h3 { color: #f9fafb; } .content { color: #e5e7eb; } .content code { background: #374151; color: #f87171; } .header, .footer { border-color: #374151; } .emptyState { background: #111827; } .emptyState p, .emptyState li { color: #d1d5db; } .tokenLink { border-color: #6366f1; } .tokenLink:hover { background: #6366f1; color: white; } }