|
| 1 | +{{ define "main" }} |
| 2 | + |
| 3 | +<!-- Hero Section --> |
| 4 | +<section class="hero-pattern py-20 lg:py-28 relative overflow-hidden"> |
| 5 | + <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10"> |
| 6 | + <div class="text-center text-white animate-fade-in"> |
| 7 | + {{ with .Params.logo }} |
| 8 | + <div class="mb-6 flex justify-center"> |
| 9 | + <span class="inline-flex items-center justify-center w-24 h-24 bg-white rounded-2xl shadow-lg p-4"> |
| 10 | + <img src="{{ . }}" alt="{{ $.Title }} logo" class="w-full h-full object-contain"> |
| 11 | + </span> |
| 12 | + </div> |
| 13 | + {{ else }}{{ with .Params.icon }} |
| 14 | + <div class="mb-6"> |
| 15 | + <i class="{{ . }} text-5xl lg:text-6xl opacity-90"></i> |
| 16 | + </div> |
| 17 | + {{ end }}{{ end }} |
| 18 | + <h1 class="text-4xl lg:text-6xl gotham-black mb-6">{{ .Title }}</h1> |
| 19 | + {{ with .Params.description }} |
| 20 | + <p class="text-xl lg:text-2xl opacity-90 max-w-3xl mx-auto mb-10 gotham-medium">{{ . }}</p> |
| 21 | + {{ end }} |
| 22 | + <div class="flex flex-col sm:flex-row gap-4 justify-center"> |
| 23 | + {{ with .Params.repo }} |
| 24 | + <a href="{{ . }}" target="_blank" rel="noopener" |
| 25 | + class="inline-flex items-center bg-white text-blue-700 px-8 py-4 rounded-lg font-bold text-lg hover:bg-gray-100 transition-all duration-200 shadow-lg hover:shadow-xl"> |
| 26 | + <i class="fab fa-github mr-3"></i>View Source |
| 27 | + </a> |
| 28 | + {{ end }} |
| 29 | + {{ if .Params.install }} |
| 30 | + <a href="#install" |
| 31 | + class="inline-flex items-center bg-transparent border-2 border-white text-white px-8 py-4 rounded-lg font-bold text-lg hover:bg-white hover:bg-opacity-10 transition-all duration-200"> |
| 32 | + <i class="fas fa-download mr-3"></i>Install |
| 33 | + </a> |
| 34 | + {{ end }} |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | +</section> |
| 39 | + |
| 40 | +<!-- Install Banner --> |
| 41 | +{{ with .Params.install }} |
| 42 | +<section id="install" class="powershell-dark py-12"> |
| 43 | + <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 space-y-4"> |
| 44 | + {{ range . }} |
| 45 | + <div class="code-terminal rounded-lg p-6"> |
| 46 | + <div class="flex items-center mb-3"> |
| 47 | + <div class="flex space-x-2 mr-4"> |
| 48 | + <div class="w-3 h-3 rounded-full bg-red-500"></div> |
| 49 | + <div class="w-3 h-3 rounded-full bg-yellow-500"></div> |
| 50 | + <div class="w-3 h-3 rounded-full bg-green-500"></div> |
| 51 | + </div> |
| 52 | + <span class="text-gray-400 text-sm font-mono">{{ with .label }}{{ . }}{{ else }}PowerShell{{ end }}</span> |
| 53 | + </div> |
| 54 | + <code class="text-green-400 font-mono text-lg">{{ .command }}</code> |
| 55 | + </div> |
| 56 | + {{ end }} |
| 57 | + </div> |
| 58 | +</section> |
| 59 | +{{ end }} |
| 60 | + |
| 61 | +<!-- Feature Cards --> |
| 62 | +{{ with .Params.features }} |
| 63 | +<section class="py-20 bg-white"> |
| 64 | + <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 65 | + <div class="grid gap-8 sm:grid-cols-2 lg:grid-cols-3"> |
| 66 | + {{ range . }} |
| 67 | + <div class="bg-gray-50 rounded-xl p-8 border border-gray-200 hover:border-blue-400 hover:shadow-lg transition-all duration-300"> |
| 68 | + <div class="w-14 h-14 bg-blue-100 rounded-xl flex items-center justify-center mb-6"> |
| 69 | + <i class="{{ with .icon }}{{ . }}{{ else }}fas fa-star{{ end }} text-2xl text-blue-600"></i> |
| 70 | + </div> |
| 71 | + <h3 class="text-xl font-bold text-gray-900 mb-3">{{ .title }}</h3> |
| 72 | + <p class="text-gray-600 leading-relaxed">{{ .body }}</p> |
| 73 | + </div> |
| 74 | + {{ end }} |
| 75 | + </div> |
| 76 | + </div> |
| 77 | +</section> |
| 78 | +{{ end }} |
| 79 | + |
| 80 | +<!-- Free-form body content --> |
| 81 | +{{ with .Content }} |
| 82 | +<section class="py-16 bg-gray-50"> |
| 83 | + <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 84 | + <div class="prose prose-lg max-w-4xl mx-auto">{{ . }}</div> |
| 85 | + </div> |
| 86 | +</section> |
| 87 | +{{ end }} |
| 88 | + |
| 89 | +<!-- Cmdlet Reference --> |
| 90 | +{{ with .Params.cmdlets }} |
| 91 | +<section class="py-20 bg-white"> |
| 92 | + <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 93 | + <div class="text-center mb-16"> |
| 94 | + <h2 class="text-3xl lg:text-4xl gotham-bold text-gray-900 mb-4">Commands</h2> |
| 95 | + <p class="text-xl text-gray-600 max-w-2xl mx-auto">The commands you'll reach for most.</p> |
| 96 | + </div> |
| 97 | + <div class="grid gap-6 sm:grid-cols-2"> |
| 98 | + {{ range . }} |
| 99 | + <div class="bg-gray-50 rounded-xl p-8 border border-gray-200 hover:border-blue-400 hover:shadow-md transition-all duration-200"> |
| 100 | + <div class="flex items-center mb-4"> |
| 101 | + <code class="text-lg font-bold text-blue-700 font-mono">{{ .name }}</code> |
| 102 | + </div> |
| 103 | + <p class="text-gray-600">{{ .description }}</p> |
| 104 | + </div> |
| 105 | + {{ end }} |
| 106 | + </div> |
| 107 | + </div> |
| 108 | +</section> |
| 109 | +{{ end }} |
| 110 | + |
| 111 | +<!-- CTA Section --> |
| 112 | +<section class="powershell-blue py-20"> |
| 113 | + <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-white"> |
| 114 | + <h2 class="text-3xl lg:text-4xl gotham-bold mb-6">Get started with {{ .Title }}</h2> |
| 115 | + <div class="flex flex-col sm:flex-row gap-4 justify-center"> |
| 116 | + {{ with .Params.gallery }} |
| 117 | + <a href="{{ . }}" target="_blank" rel="noopener" |
| 118 | + class="inline-flex items-center bg-white text-blue-700 px-8 py-4 rounded-lg font-bold text-lg hover:bg-gray-100 transition-all duration-200 shadow-lg"> |
| 119 | + <i class="fas fa-box-open mr-3"></i>PowerShell Gallery |
| 120 | + </a> |
| 121 | + {{ end }} |
| 122 | + {{ with .Params.repo }} |
| 123 | + <a href="{{ . }}" target="_blank" rel="noopener" |
| 124 | + class="inline-flex items-center bg-transparent border-2 border-white text-white px-8 py-4 rounded-lg font-bold text-lg hover:bg-white hover:bg-opacity-10 transition-all duration-200"> |
| 125 | + <i class="fab fa-github mr-3"></i>View Source |
| 126 | + </a> |
| 127 | + {{ end }} |
| 128 | + {{ with .Params.docs }} |
| 129 | + <a href="{{ . }}" target="_blank" rel="noopener" |
| 130 | + class="inline-flex items-center bg-transparent border-2 border-white text-white px-8 py-4 rounded-lg font-bold text-lg hover:bg-white hover:bg-opacity-10 transition-all duration-200"> |
| 131 | + <i class="fas fa-book mr-3"></i>Documentation |
| 132 | + </a> |
| 133 | + {{ end }} |
| 134 | + </div> |
| 135 | + </div> |
| 136 | +</section> |
| 137 | + |
| 138 | +{{ end }} |
0 commit comments