- Fix home.tmpl to properly show promotional content when selected - Fix line endings and indentation in all templates - Fix locale file line endings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
942 lines
22 KiB
Handlebars
942 lines
22 KiB
Handlebars
{{template "pages/base_head" .}}
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
|
|
|
|
:root {
|
|
--osh-bg: #0a0a0b;
|
|
--osh-text: #e4e4e7;
|
|
--osh-muted: #71717a;
|
|
--osh-accent: {{if .Config.Theme.PrimaryColor}}{{.Config.Theme.PrimaryColor}}{{else}}#22c55e{{end}};
|
|
--osh-accent-dark: {{if .Config.Theme.AccentColor}}{{.Config.Theme.AccentColor}}{{else}}#16a34a{{end}};
|
|
}
|
|
|
|
html, body.pages-body {
|
|
overflow-x: hidden;
|
|
background: var(--osh-bg) !important;
|
|
}
|
|
|
|
.osh-page::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
background-image:
|
|
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
|
|
background-size: 24px 24px;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.osh-page {
|
|
position: relative;
|
|
min-height: 100vh;
|
|
background: var(--osh-bg);
|
|
color: var(--osh-text);
|
|
font-family: 'IBM Plex Sans', -apple-system, sans-serif;
|
|
}
|
|
|
|
.osh-hero-gradient {
|
|
position: absolute;
|
|
top: -50%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 150%;
|
|
height: 100%;
|
|
background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.osh-grid-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-image:
|
|
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
|
|
background-size: 24px 24px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.osh-nav {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 16px 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: rgba(10, 10, 11, 0.8);
|
|
backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
z-index: 100;
|
|
}
|
|
|
|
.osh-nav-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.osh-nav-logo {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: linear-gradient(135deg, var(--osh-accent) 0%, var(--osh-accent-dark) 100%);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.osh-nav-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 32px;
|
|
}
|
|
|
|
.osh-nav-link {
|
|
color: var(--osh-muted);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.osh-nav-link:hover {
|
|
color: var(--osh-text);
|
|
}
|
|
|
|
.osh-btn-primary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 14px 28px;
|
|
background: linear-gradient(135deg, var(--osh-accent) 0%, var(--osh-accent-dark) 100%);
|
|
color: #000;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
border-radius: 8px;
|
|
text-decoration: none;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.osh-btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
|
|
}
|
|
|
|
.osh-btn-secondary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 14px 28px;
|
|
background: transparent;
|
|
color: var(--osh-text);
|
|
font-weight: 500;
|
|
font-size: 15px;
|
|
border-radius: 8px;
|
|
text-decoration: none;
|
|
border: 1px solid rgba(255,255,255,0.15);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.osh-btn-secondary:hover {
|
|
background: rgba(255,255,255,0.05);
|
|
border-color: rgba(255,255,255,0.25);
|
|
}
|
|
|
|
.osh-hero {
|
|
position: relative;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 120px 40px 80px;
|
|
text-align: center;
|
|
}
|
|
|
|
.osh-hero-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: 800px;
|
|
}
|
|
|
|
.osh-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 16px;
|
|
background: rgba(34, 197, 94, 0.1);
|
|
border: 1px solid rgba(34, 197, 94, 0.2);
|
|
border-radius: 100px;
|
|
font-size: 13px;
|
|
color: var(--osh-accent);
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.osh-badge-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
background: var(--osh-accent);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.osh-hero h1 {
|
|
font-size: 64px;
|
|
font-weight: 600;
|
|
line-height: 1.1;
|
|
margin-bottom: 24px;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.osh-hero-sub {
|
|
font-size: 20px;
|
|
color: #a1a1aa;
|
|
line-height: 1.6;
|
|
margin-bottom: 40px;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.osh-hero-ctas {
|
|
display: flex;
|
|
gap: 16px;
|
|
justify-content: center;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.osh-code-block {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 16px 20px;
|
|
background: rgba(0,0,0,0.4);
|
|
border: 1px solid rgba(255,255,255,0.15);
|
|
border-radius: 10px;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 14px;
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.osh-code-block code {
|
|
color: var(--osh-accent);
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
.osh-copy-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
background: rgba(255,255,255,0.05);
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
border-radius: 6px;
|
|
color: var(--osh-muted);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.osh-copy-btn:hover {
|
|
background: rgba(255,255,255,0.1);
|
|
color: var(--osh-text);
|
|
}
|
|
|
|
.osh-stats {
|
|
padding: 60px 40px;
|
|
border-top: 1px solid rgba(255,255,255,0.05);
|
|
border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.osh-stats-inner {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
flex-wrap: wrap;
|
|
gap: 24px;
|
|
}
|
|
|
|
.osh-stat-item {
|
|
text-align: center;
|
|
padding: 0 32px;
|
|
border-right: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
|
|
.osh-stat-item:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.osh-stat-value {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 28px;
|
|
font-weight: 500;
|
|
color: var(--osh-accent);
|
|
}
|
|
|
|
.osh-stat-label {
|
|
font-size: 13px;
|
|
color: var(--osh-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.osh-features {
|
|
padding: 100px 40px;
|
|
}
|
|
|
|
.osh-features-inner {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.osh-section-header {
|
|
text-align: center;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.osh-section-header h2 {
|
|
font-size: 40px;
|
|
font-weight: 600;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.osh-section-header p {
|
|
font-size: 18px;
|
|
color: var(--osh-muted);
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.osh-features-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.osh-feature-card {
|
|
padding: 28px;
|
|
background: rgba(255,255,255,0.02);
|
|
border: 1px solid rgba(255,255,255,0.06);
|
|
border-radius: 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.osh-feature-card:hover {
|
|
background: rgba(255,255,255,0.04);
|
|
border-color: rgba(34, 197, 94, 0.3);
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
.osh-feature-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(34, 197, 94, 0.1);
|
|
border-radius: 10px;
|
|
color: var(--osh-accent);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.osh-feature-title {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
color: #fafafa;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.osh-feature-desc {
|
|
font-size: 14px;
|
|
color: #a1a1aa;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.osh-social-proof {
|
|
padding: 80px 40px;
|
|
background: rgba(255,255,255,0.01);
|
|
}
|
|
|
|
.osh-social-proof-inner {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.osh-logos {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 40px;
|
|
margin-bottom: 60px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.osh-logo-item {
|
|
padding: 12px 24px;
|
|
background: rgba(0,0,0,0.4);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #52525b;
|
|
}
|
|
|
|
.osh-testimonial {
|
|
background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
|
|
border: 1px solid rgba(34, 197, 94, 0.15);
|
|
border-radius: 16px;
|
|
padding: 40px;
|
|
max-width: 700px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.osh-testimonial-quote {
|
|
font-size: 20px;
|
|
line-height: 1.6;
|
|
color: #fafafa;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.osh-testimonial-author {
|
|
font-weight: 600;
|
|
color: var(--osh-text);
|
|
}
|
|
|
|
.osh-testimonial-role {
|
|
font-size: 14px;
|
|
color: var(--osh-muted);
|
|
}
|
|
|
|
.osh-readme {
|
|
padding: 80px 40px;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.osh-readme-content {
|
|
background: rgba(255,255,255,0.02);
|
|
border: 1px solid rgba(255,255,255,0.06);
|
|
border-radius: 12px;
|
|
padding: 40px;
|
|
}
|
|
|
|
.osh-cta-section {
|
|
padding: 100px 40px;
|
|
text-align: center;
|
|
background: linear-gradient(180deg, transparent 0%, rgba(34, 197, 94, 0.03) 100%);
|
|
border-top: 1px solid rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.osh-cta-inner {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.osh-cta-section h2 {
|
|
font-size: 44px;
|
|
font-weight: 600;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.osh-cta-section p {
|
|
font-size: 18px;
|
|
color: var(--osh-muted);
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.osh-footer {
|
|
padding: 40px;
|
|
border-top: 1px solid rgba(255,255,255,0.05);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 24px;
|
|
}
|
|
|
|
.osh-footer-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #52525b;
|
|
}
|
|
|
|
.osh-footer-logo {
|
|
width: 24px;
|
|
height: 24px;
|
|
background: rgba(34, 197, 94, 0.2);
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.osh-footer-links {
|
|
display: flex;
|
|
gap: 32px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.osh-footer-link {
|
|
color: var(--osh-muted);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.osh-footer-link:hover {
|
|
color: var(--osh-text);
|
|
}
|
|
|
|
.osh-footer-social {
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
.osh-footer-social a {
|
|
color: var(--osh-muted);
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.osh-footer-social a:hover {
|
|
color: var(--osh-text);
|
|
}
|
|
|
|
/* Pricing Section */
|
|
.osh-pricing {
|
|
padding: 100px 40px;
|
|
}
|
|
|
|
.osh-pricing-inner {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.osh-pricing-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 24px;
|
|
margin-top: 60px;
|
|
}
|
|
|
|
.osh-pricing-card {
|
|
background: rgba(255,255,255,0.02);
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
border-radius: 16px;
|
|
padding: 32px;
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.osh-pricing-card:hover {
|
|
border-color: rgba(255,255,255,0.15);
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
.osh-pricing-card.featured {
|
|
background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
|
|
border-color: rgba(34, 197, 94, 0.3);
|
|
}
|
|
|
|
.osh-pricing-badge {
|
|
position: absolute;
|
|
top: -12px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 6px 16px;
|
|
background: linear-gradient(135deg, var(--osh-accent) 0%, var(--osh-accent-dark) 100%);
|
|
color: #000;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
border-radius: 100px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.osh-pricing-name {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #fafafa;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.osh-pricing-price {
|
|
font-size: 48px;
|
|
font-weight: 600;
|
|
color: var(--osh-text);
|
|
line-height: 1;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.osh-pricing-period {
|
|
font-size: 14px;
|
|
color: var(--osh-muted);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.osh-pricing-features {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0 0 32px 0;
|
|
}
|
|
|
|
.osh-pricing-features li {
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
font-size: 14px;
|
|
color: #a1a1aa;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.osh-pricing-features li::before {
|
|
content: "";
|
|
width: 16px;
|
|
height: 16px;
|
|
background: rgba(34, 197, 94, 0.15);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.osh-pricing-features li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.osh-pricing-cta {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 14px 24px;
|
|
text-align: center;
|
|
background: rgba(255,255,255,0.05);
|
|
color: var(--osh-text);
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
border-radius: 8px;
|
|
text-decoration: none;
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.osh-pricing-cta:hover {
|
|
background: rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.osh-pricing-card.featured .osh-pricing-cta {
|
|
background: linear-gradient(135deg, var(--osh-accent) 0%, var(--osh-accent-dark) 100%);
|
|
color: #000;
|
|
border: none;
|
|
}
|
|
|
|
.osh-pricing-card.featured .osh-pricing-cta:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.osh-hero h1 { font-size: 40px; }
|
|
.osh-hero { padding: 100px 24px 60px; }
|
|
.osh-features, .osh-social-proof, .osh-cta-section, .osh-pricing { padding: 60px 24px; }
|
|
.osh-pricing-price { font-size: 36px; }
|
|
.osh-stats { padding: 40px 24px; }
|
|
.osh-stat-item { border-right: none; padding: 16px 0; }
|
|
.osh-hero-ctas { flex-direction: column; align-items: center; }
|
|
.osh-nav { padding: 12px 20px; }
|
|
.osh-nav-links { gap: 16px; }
|
|
.osh-section-header h2 { font-size: 32px; }
|
|
.osh-cta-section h2 { font-size: 32px; }
|
|
.osh-footer { flex-direction: column; text-align: center; }
|
|
}
|
|
</style>
|
|
|
|
<div class="osh-page">
|
|
<!-- Navigation -->
|
|
<nav class="osh-nav">
|
|
<a href="/" class="osh-nav-brand">
|
|
{{if .Config.Brand.LogoURL}}
|
|
<img src="{{.Config.Brand.LogoURL}}" alt="{{.Config.Brand.Name}}" style="height: 32px;">
|
|
{{else}}
|
|
<div class="osh-nav-logo">
|
|
{{svg "octicon-zap" 16}}
|
|
</div>
|
|
{{end}}
|
|
<span style="font-weight: 600; font-size: 18px;">{{if .Config.Brand.Name}}{{.Config.Brand.Name}}{{else}}{{.Repository.Name}}{{end}}</span>
|
|
</a>
|
|
<div class="osh-nav-links">
|
|
{{if .Config.Footer.Links}}
|
|
{{range .Config.Footer.Links}}
|
|
<a href="{{.URL}}" class="osh-nav-link">{{.Label}}</a>
|
|
{{end}}
|
|
{{else}}
|
|
<a href="{{.Repository.Link}}" class="osh-nav-link">Repository</a>
|
|
<a href="{{.Repository.Link}}/wiki" class="osh-nav-link">Docs</a>
|
|
<a href="{{.Repository.Link}}/releases" class="osh-nav-link">Releases</a>
|
|
{{end}}
|
|
{{if .Config.ValueProps}}<a href="#value-props" class="osh-nav-link">Why Us</a>{{end}}
|
|
{{if .Config.Features}}<a href="#features" class="osh-nav-link">Features</a>{{end}}
|
|
{{if .Config.Pricing.Plans}}<a href="#pricing" class="osh-nav-link">Pricing</a>{{end}}
|
|
<a href="{{.Repository.Link}}" class="osh-btn-secondary" style="padding: 10px 20px;">
|
|
<img src="/assets/img/gitcaddy-icon.svg" width="18" height="18" alt="GitCaddy">
|
|
Repository
|
|
</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Hero Section -->
|
|
<section class="osh-hero">
|
|
<div class="osh-hero-gradient"></div>
|
|
<div class="osh-grid-overlay"></div>
|
|
|
|
<div class="osh-hero-content">
|
|
<div class="osh-badge">
|
|
<span class="osh-badge-dot"></span>
|
|
{{if .LatestRelease}}v{{.LatestRelease.TagName}} released{{else}}Open Source{{end}}
|
|
</div>
|
|
|
|
<h1>{{if .Config.Hero.Headline}}{{.Config.Hero.Headline}}{{else}}{{.Repository.Name}}{{end}}</h1>
|
|
|
|
<p class="osh-hero-sub">
|
|
{{if .Config.Hero.Subheadline}}{{.Config.Hero.Subheadline}}{{else}}{{.Repository.Description}}{{end}}
|
|
</p>
|
|
|
|
<div class="osh-hero-ctas">
|
|
{{if .Config.Hero.PrimaryCTA.Label}}
|
|
<a href="{{.Config.Hero.PrimaryCTA.URL}}" class="osh-btn-primary">
|
|
{{.Config.Hero.PrimaryCTA.Label}}
|
|
{{svg "octicon-arrow-right" 16}}
|
|
</a>
|
|
{{else}}
|
|
<a href="{{.Repository.Link}}" class="osh-btn-primary">
|
|
Get Started
|
|
{{svg "octicon-arrow-right" 16}}
|
|
</a>
|
|
{{end}}
|
|
|
|
{{if .Config.Hero.SecondaryCTA.Label}}
|
|
<a href="{{.Config.Hero.SecondaryCTA.URL}}" class="osh-btn-secondary">
|
|
<img src="/assets/img/gitcaddy-icon.svg" width="18" height="18" alt="GitCaddy">
|
|
{{.Config.Hero.SecondaryCTA.Label}}
|
|
</a>
|
|
{{else}}
|
|
<a href="{{.Repository.Link}}" class="osh-btn-secondary">
|
|
<img src="/assets/img/gitcaddy-icon.svg" width="18" height="18" alt="GitCaddy">
|
|
View Source
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
|
|
{{if .Config.Hero.CodeExample}}
|
|
<div class="osh-code-block">
|
|
<span style="color: #71717a;">$</span>
|
|
<code id="install-cmd">{{.Config.Hero.CodeExample}}</code>
|
|
<button class="osh-copy-btn" onclick="navigator.clipboard.writeText(document.getElementById('install-cmd').textContent)">
|
|
{{svg "octicon-copy" 16}}
|
|
</button>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Stats Section -->
|
|
{{if or .Config.Stats (gt .NumStars 0)}}
|
|
<section class="osh-stats">
|
|
<div class="osh-stats-inner">
|
|
{{if .Config.Stats}}
|
|
{{range .Config.Stats}}
|
|
<div class="osh-stat-item">
|
|
<div class="osh-stat-value">{{.Value}}</div>
|
|
<div class="osh-stat-label">{{.Label}}</div>
|
|
</div>
|
|
{{end}}
|
|
{{else}}
|
|
<div class="osh-stat-item">
|
|
<div class="osh-stat-value">{{.NumStars}}</div>
|
|
<div class="osh-stat-label">Stars</div>
|
|
</div>
|
|
<div class="osh-stat-item">
|
|
<div class="osh-stat-value">{{.NumForks}}</div>
|
|
<div class="osh-stat-label">Forks</div>
|
|
</div>
|
|
{{if .LatestRelease}}
|
|
<div class="osh-stat-item">
|
|
<div class="osh-stat-value">v{{.LatestRelease.TagName}}</div>
|
|
<div class="osh-stat-label">Latest</div>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
</section>
|
|
{{end}}
|
|
|
|
<!-- Value Props Section -->
|
|
{{if .Config.ValueProps}}
|
|
<section class="osh-features" id="value-props">
|
|
<div class="osh-features-inner">
|
|
<div class="osh-section-header">
|
|
<h2>{{if .Config.Brand.Name}}Why {{.Config.Brand.Name}}?{{else}}Why Choose Us{{end}}</h2>
|
|
<p>Everything you need to get started quickly.</p>
|
|
</div>
|
|
<div class="osh-features-grid">
|
|
{{range .Config.ValueProps}}
|
|
<div class="osh-feature-card">
|
|
<div class="osh-feature-icon">
|
|
{{svg (printf "octicon-%s" (or .Icon "check")) 22}}
|
|
</div>
|
|
<h3 class="osh-feature-title">{{.Title}}</h3>
|
|
<p class="osh-feature-desc">{{.Description}}</p>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{end}}
|
|
|
|
<!-- Features Section -->
|
|
{{if .Config.Features}}
|
|
<section class="osh-features" id="features" style="padding-top: 40px;">
|
|
<div class="osh-features-inner">
|
|
<div class="osh-section-header">
|
|
<h2>Features</h2>
|
|
<p>Powerful capabilities at your fingertips.</p>
|
|
</div>
|
|
<div class="osh-features-grid">
|
|
{{range .Config.Features}}
|
|
<div class="osh-feature-card">
|
|
<div class="osh-feature-icon">
|
|
{{svg (printf "octicon-%s" (or .Icon "zap")) 22}}
|
|
</div>
|
|
<h3 class="osh-feature-title">{{.Title}}</h3>
|
|
<p class="osh-feature-desc">{{.Description}}</p>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{end}}
|
|
|
|
<!-- Social Proof -->
|
|
{{if or .Config.SocialProof.Logos .Config.SocialProof.Testimonials}}
|
|
<section class="osh-social-proof">
|
|
<div class="osh-social-proof-inner">
|
|
{{if .Config.SocialProof.Logos}}
|
|
<div class="osh-logos">
|
|
{{range .Config.SocialProof.Logos}}
|
|
<div class="osh-logo-item">{{.}}</div>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
{{if .Config.SocialProof.Testimonials}}
|
|
<div class="osh-testimonials-container">
|
|
{{range .Config.SocialProof.Testimonials}}
|
|
<div class="osh-testimonial" style="display: none;">
|
|
<p class="osh-testimonial-quote">"{{.Quote}}"</p>
|
|
<div>
|
|
<div class="osh-testimonial-author">{{.Author}}</div>
|
|
<div class="osh-testimonial-role">{{.Role}}</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
<script>
|
|
(function() {
|
|
var testimonials = document.querySelectorAll(".osh-testimonial");
|
|
if (testimonials.length > 0) {
|
|
var idx = Math.floor(Math.random() * testimonials.length);
|
|
testimonials[idx].style.display = "block";
|
|
}
|
|
})();
|
|
</script>
|
|
{{end}}
|
|
</div>
|
|
</section>
|
|
{{end}}
|
|
|
|
<!-- Pricing Section -->
|
|
{{if .Config.Pricing.Plans}}
|
|
<section class="osh-pricing" id="pricing">
|
|
<div class="osh-pricing-inner">
|
|
<div class="osh-section-header">
|
|
<h2>{{if .Config.Pricing.Headline}}{{.Config.Pricing.Headline}}{{else}}Pricing{{end}}</h2>
|
|
<p>{{if .Config.Pricing.Subheadline}}{{.Config.Pricing.Subheadline}}{{else}}Choose the plan that works for you{{end}}</p>
|
|
</div>
|
|
<div class="osh-pricing-grid">
|
|
{{range .Config.Pricing.Plans}}
|
|
<div class="osh-pricing-card{{if .Featured}} featured{{end}}">
|
|
{{if .Featured}}<span class="osh-pricing-badge">Popular</span>{{end}}
|
|
<div class="osh-pricing-name">{{.Name}}</div>
|
|
<div class="osh-pricing-price">{{.Price}}</div>
|
|
<div class="osh-pricing-period">{{.Period}}</div>
|
|
{{if .Features}}
|
|
<ul class="osh-pricing-features">
|
|
{{range .Features}}<li>{{.}}</li>{{end}}
|
|
</ul>
|
|
{{end}}
|
|
<a href="#" class="osh-pricing-cta">{{if .CTA}}{{.CTA}}{{else}}Get Started{{end}}</a>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{end}}
|
|
|
|
<!-- CTA Section -->
|
|
{{if .Config.CTASection.Headline}}
|
|
<section class="osh-cta-section">
|
|
<div class="osh-cta-inner">
|
|
<h2>{{.Config.CTASection.Headline}}</h2>
|
|
{{if .Config.CTASection.Subheadline}}
|
|
<p>{{.Config.CTASection.Subheadline}}</p>
|
|
{{end}}
|
|
<a href="{{if .Config.CTASection.Button.URL}}{{.Config.CTASection.Button.URL}}{{else}}{{.Repository.Link}}{{end}}" class="osh-btn-primary" style="padding: 16px 32px; font-size: 16px;">
|
|
{{if .Config.CTASection.Button.Label}}{{.Config.CTASection.Button.Label}}{{else}}Get Started{{end}}
|
|
{{svg "octicon-arrow-right" 16}}
|
|
</a>
|
|
</div>
|
|
</section>
|
|
{{end}}
|
|
|
|
<!-- Footer -->
|
|
<footer class="osh-footer">
|
|
<div class="osh-footer-brand">
|
|
<div class="osh-footer-logo">{{svg "octicon-zap" 14}}</div>
|
|
<span style="font-size: 14px;">{{if .Config.Footer.Copyright}}{{.Config.Footer.Copyright}}{{else}}© <script>document.write(new Date().getFullYear())</script> {{if .Config.Brand.Name}}{{.Config.Brand.Name}}{{else}}{{.Repository.Name}}{{end}}{{end}}</span>
|
|
</div>
|
|
{{if .Config.Footer.Social}}
|
|
<div class="osh-footer-social">
|
|
{{range .Config.Footer.Social}}
|
|
<a href="{{.URL}}" title="{{.Platform}}">
|
|
{{if eq .Platform "twitter"}}{{svg "octicon-mention" 18}}
|
|
{{else if eq .Platform "github"}}{{svg "octicon-mark-github" 18}}
|
|
{{else if eq .Platform "discord"}}{{svg "octicon-comment-discussion" 18}}
|
|
{{else if eq .Platform "linkedin"}}{{svg "octicon-briefcase" 18}}
|
|
{{else if eq .Platform "youtube"}}{{svg "octicon-video" 18}}
|
|
{{else}}{{svg "octicon-link-external" 18}}{{end}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
<div class="osh-footer-links">
|
|
{{if .Config.Footer.Links}}
|
|
{{range .Config.Footer.Links}}
|
|
<a href="{{.URL}}" class="osh-footer-link">{{.Label}}</a>
|
|
{{end}}
|
|
{{else}}
|
|
<a href="{{.Repository.Link}}" class="osh-footer-link">Repository</a>
|
|
<a href="{{.Repository.Link}}/wiki" class="osh-footer-link">Documentation</a>
|
|
<a href="{{.Repository.Link}}/releases" class="osh-footer-link">Releases</a>
|
|
<a href="{{.Repository.Link}}/issues" class="osh-footer-link">Issues</a>
|
|
{{end}}
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
|
|
{{template "pages/base_footer" .}}
|