Files
siti-plugin-repo/src/App.css
Roberto Guagliardo 81d1d0910c feat: add react-router-dom for routing and implement plugin detail view
- Updated package.json to include react-router-dom dependency.
- Refactored App component to use React Router for navigation.
- Created PluginDetail component to display detailed information about a selected plugin.
- Added fetch functions for releases and commits in the server code.
- Enhanced UI with new styles for dark mode and improved layout.
- Implemented caching for API responses to optimize performance.
2026-01-31 19:48:44 +00:00

306 lines
4.7 KiB
CSS

:root {
color-scheme: light dark;
}
.app {
min-height: 100vh;
background: radial-gradient(circle at top, #f5f7ff, #ffffff 45%);
color: #0f172a;
font-family: "Inter", system-ui, sans-serif;
padding: 48px 8vw 64px;
}
.page {
display: flex;
flex-direction: column;
gap: 32px;
}
.hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
margin-bottom: 48px;
flex-wrap: wrap;
}
.eyebrow {
text-transform: uppercase;
letter-spacing: 0.2em;
font-size: 12px;
color: #6366f1;
font-weight: 600;
margin: 0 0 8px;
}
.hero h1 {
font-size: clamp(2.4rem, 4vw, 3.4rem);
margin: 0 0 8px;
}
.subtitle {
margin: 0;
font-size: 1.1rem;
color: #475569;
max-width: 520px;
}
.cta {
background: #4f46e5;
color: #fff;
padding: 12px 20px;
border-radius: 999px;
text-decoration: none;
font-weight: 600;
box-shadow: 0 8px 24px rgba(79, 70, 229, 0.2);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
transform: translateY(-2px);
box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
}
.actions {
display: flex;
align-items: center;
gap: 12px;
margin-top: auto;
}
.card {
background: #fff;
border-radius: 20px;
padding: 24px;
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
display: flex;
flex-direction: column;
gap: 12px;
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.card h2 {
margin: 0;
font-size: 1.3rem;
}
.card p {
margin: 0;
color: #475569;
}
.pill {
background: #eef2ff;
color: #4338ca;
font-size: 0.75rem;
font-weight: 600;
padding: 4px 10px;
border-radius: 999px;
}
.meta {
display: flex;
gap: 12px;
font-size: 0.9rem;
color: #64748b;
}
.topics {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.topic {
background: #f1f5f9;
color: #475569;
font-size: 0.75rem;
padding: 4px 8px;
border-radius: 999px;
}
.link {
color: #4f46e5;
font-weight: 600;
text-decoration: none;
}
.ghost {
border: 1px solid #c7d2fe;
color: #4338ca;
padding: 8px 14px;
border-radius: 999px;
text-decoration: none;
font-weight: 600;
}
.state {
background: #fff;
border-radius: 16px;
padding: 20px;
box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
color: #475569;
}
.state.error {
background: #fee2e2;
color: #b91c1c;
}
.footer {
margin-top: 48px;
color: #94a3b8;
font-size: 0.9rem;
}
.detail-hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}
.detail-actions {
display: flex;
align-items: center;
gap: 12px;
}
.detail-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.detail-list {
display: grid;
gap: 12px;
margin: 16px 0;
}
.detail-list div {
display: flex;
flex-direction: column;
gap: 4px;
color: #64748b;
}
.detail-list strong {
color: inherit;
}
.list {
list-style: none;
padding: 0;
margin: 12px 0 0;
display: grid;
gap: 12px;
}
.list li {
display: flex;
justify-content: space-between;
gap: 12px;
color: #64748b;
}
.list a {
color: #4f46e5;
text-decoration: none;
font-weight: 600;
}
@media (max-width: 600px) {
.app {
padding: 40px 6vw 56px;
}
.hero {
align-items: flex-start;
}
}
@media (prefers-color-scheme: dark) {
.app {
background: radial-gradient(circle at top, #1e1b4b, #0b1120 50%);
color: #e2e8f0;
}
.subtitle {
color: #cbd5f5;
}
.card {
background: #0f172a;
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}
.card p {
color: #cbd5f5;
}
.pill {
background: #312e81;
color: #e0e7ff;
}
.meta {
color: #94a3b8;
}
.topic {
background: #1e293b;
color: #cbd5f5;
}
.link {
color: #a5b4fc;
}
.ghost {
border-color: #4f46e5;
color: #e0e7ff;
}
.detail-list div {
color: #cbd5f5;
}
.list li {
color: #cbd5f5;
}
.list a {
color: #a5b4fc;
}
.state {
background: #0f172a;
color: #cbd5f5;
box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
}
.state.error {
background: #7f1d1d;
color: #fee2e2;
}
.footer {
color: #94a3b8;
}
}