added theme support
This commit is contained in:
@@ -0,0 +1,181 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ $previewTheme->name() }} — Theme Preview</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--background: #f3f6fa;
|
||||
--surface: #fff;
|
||||
--text: #17243b;
|
||||
--muted: #64748b;
|
||||
--accent: #2563eb;
|
||||
--border: #dce4ee;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--background);
|
||||
color: var(--text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
}
|
||||
a { color: inherit; text-decoration: none; }
|
||||
.toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
padding: 14px 28px;
|
||||
background: #142238;
|
||||
color: white;
|
||||
}
|
||||
.toolbar strong { font-size: 14px; }
|
||||
.toolbar small { display: block; color: #aebbd0; margin-top: 4px; }
|
||||
.toolbar a {
|
||||
background: white;
|
||||
color: #142238;
|
||||
border-radius: 7px;
|
||||
padding: 10px 16px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.site-nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 22px 6%;
|
||||
background: white;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.site-nav strong { font-size: 21px; }
|
||||
.site-nav span { color: var(--muted); font-size: 13px; }
|
||||
.container { max-width: 1200px; margin: 0 auto; padding: 55px 25px; }
|
||||
.eyebrow {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
h1 { font-size: clamp(32px, 5vw, 54px); margin: 15px 0; }
|
||||
.lead { color: var(--muted); font-size: 18px; max-width: 680px; }
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
|
||||
gap: 20px;
|
||||
margin-top: 35px;
|
||||
}
|
||||
.card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 28px;
|
||||
box-shadow: 0 8px 30px rgba(15,23,42,.035);
|
||||
}
|
||||
.card h3 { margin-top: 0; }
|
||||
.card p { color: var(--muted); line-height: 1.6; }
|
||||
.button {
|
||||
display: inline-block;
|
||||
padding: 13px 20px;
|
||||
border-radius: 8px;
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
margin-top: 15px;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
padding: 35px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
@media (max-width: 650px) {
|
||||
.toolbar, .site-nav { flex-wrap: wrap; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="toolbar">
|
||||
<div>
|
||||
<strong>Stylist — Theme Preview</strong>
|
||||
<small>
|
||||
{{ $previewTheme->name() }}
|
||||
· Version {{ $previewTheme->version() }}
|
||||
· {{ ucfirst($previewTheme->type()) }}
|
||||
</small>
|
||||
</div>
|
||||
<a href="{{ route('stylist.index') }}">← Back to Stylist</a>
|
||||
</header>
|
||||
|
||||
<nav class="site-nav">
|
||||
<strong>SonarDesk</strong>
|
||||
<span>
|
||||
{{ $previewTheme->type() === 'backend'
|
||||
? 'Administration interface'
|
||||
: 'Public website' }}
|
||||
</span>
|
||||
</nav>
|
||||
|
||||
<main class="container">
|
||||
@if($previewTheme->type() === 'backend')
|
||||
<span class="eyebrow">Administration / Dashboard</span>
|
||||
<h1>Administration overview</h1>
|
||||
<p class="lead">
|
||||
Preview the administration interface using representative data.
|
||||
</p>
|
||||
|
||||
<div class="grid">
|
||||
<div class="card"><h3>128</h3><p>Licences</p></div>
|
||||
<div class="card"><h3>116</h3><p>Active licences</p></div>
|
||||
<div class="card"><h3>184</h3><p>Installations</p></div>
|
||||
<div class="card"><h3>92</h3><p>Portal users</p></div>
|
||||
</div>
|
||||
|
||||
<div class="grid">
|
||||
<div class="card">
|
||||
<h3>Release management</h3>
|
||||
<p>Manage published software releases.</p>
|
||||
<span class="button">Manage releases</span>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3>Theme management</h3>
|
||||
<p>Configure the appearance of SonarDesk.</p>
|
||||
<span class="button">Manage themes</span>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<span class="eyebrow">SonarDesk for macOS</span>
|
||||
<h1>Code quality at a glance.</h1>
|
||||
<p class="lead">
|
||||
A native macOS dashboard for monitoring SonarQube projects,
|
||||
quality gates, vulnerabilities and technical debt.
|
||||
</p>
|
||||
|
||||
<span class="button">Explore SonarDesk</span>
|
||||
|
||||
<div class="grid">
|
||||
<div class="card">
|
||||
<h3>Quality gates</h3>
|
||||
<p>Monitor project quality and identify failing checks.</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3>Issues</h3>
|
||||
<p>Review bugs, vulnerabilities and code smells.</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3>Reports</h3>
|
||||
<p>Export project reports for further analysis.</p>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
Theme preview only — no changes have been applied.
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user