@@ -10,10 +10,17 @@ bun install`,
1010 {
1111 step: " 2" ,
1212 title: " Configure" ,
13- code: ` # .env.local
14- ADMIN_PASSWORD=admin123
15- USER_PASSWORD=user123
16- JWT_SECRET=your_32_char_secret ` ,
13+ code: ` cp .env.example .env.local
14+ # Required auth (JWT_SECRET min 32 chars):
15+ ADMIN_EMAIL=admin@libredb.org
16+ ADMIN_PASSWORD=<your-password>
17+ USER_EMAIL=user@libredb.org
18+ USER_PASSWORD=<your-password>
19+ JWT_SECRET=<openssl rand -base64 32>
20+ # LLM (Ollama):
21+ LLM_PROVIDER=ollama
22+ LLM_MODEL=llama3.2
23+ LLM_API_URL=http://localhost:11434/v1 ` ,
1724 },
1825 {
1926 step: " 3" ,
@@ -24,6 +31,17 @@ JWT_SECRET=your_32_char_secret`,
2431];
2532---
2633
34+ <style >
35+ .get-started-code {
36+ white-space: pre;
37+ word-break: normal;
38+ }
39+ .get-started-code code {
40+ display: block;
41+ min-width: min-content;
42+ }
43+ </style >
44+
2745<section id =" get-started" class =" py-16 md:py-24 relative" >
2846 <div class =" max-w-7xl mx-auto px-4 sm:px-6 lg:px-8" >
2947 <!-- Section Header -->
@@ -37,16 +55,16 @@ JWT_SECRET=your_32_char_secret`,
3755 </div >
3856
3957 <!-- Installation Steps -->
40- <div class =" grid md:grid-cols-3 gap-4 md:gap-8 mb-10 md:mb-16" >
58+ <div class =" grid md:grid-cols-3 gap-4 md:gap-6 mb-10 md:mb-16 items-stretch " >
4159 { steps .map ((item ) => (
42- <div class = " relative" >
43- <div class = " absolute -top-2 -left-2 md:-top-4 md:-left-4 w-8 h-8 md:w-10 md:h-10 rounded-full bg-primary-600 flex items-center justify-center text-white font-bold text-sm md:text-lg z-10" >
60+ <div class = " relative flex flex-col " >
61+ <div class = " absolute -top-2 -left-2 md:-top-3 md:-left-3 w-8 h-8 md:w-9 md:h-9 rounded-full bg-primary-600 flex items-center justify-center text-white font-bold text-sm z-10 shadow-lg " >
4462 { item .step }
4563 </div >
46- <div class = " p-4 md:p-6 pt-6 md:pt-8 rounded-xl md:rounded-2xl bg-slate-900/50 border border-slate-800 " >
47- <h3 class = " text-sm md:text-lg font-semibold text-white mb-3 md:mb-4 " >{ item .title } </h3 >
48- <div class = " relative group overflow-hidden " >
49- <pre class = " p-3 md:p-4 pr-10 rounded-lg bg-slate-950 text-[10px ] md:text-sm text-slate-300 overflow-x- auto font-mono max-w-full " ><code class = " break-all whitespace-pre-wrap " >{ item .code } </code ></pre >
64+ <div class = " flex flex-col flex-1 p-4 md:p-5 pt-6 md:pt-7 rounded-xl md:rounded-2xl bg-slate-900/60 border border-slate-700/80 shadow-xl shadow-black/20 " >
65+ <h3 class = " text-sm md:text-base font-semibold text-white mb-3" >{ item .title } </h3 >
66+ <div class = " relative group flex-1 min-h-0 " >
67+ <pre class = " get-started-code p-3 md:p-4 pr-10 rounded-lg bg-slate-950/90 text-[11px ] md:text-xs text-slate-300 font-mono overflow-auto max-h-40 md: max-h-44 " ><code >{ item .code } </code ></pre >
5068 <button
5169 class = " copy-btn absolute top-2 right-2 p-1.5 rounded-md bg-slate-800 hover:bg-slate-700 text-slate-400 hover:text-white opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-all duration-200"
5270 data-code = { item .code }
@@ -66,7 +84,7 @@ JWT_SECRET=your_32_char_secret`,
6684 </div >
6785
6886 <!-- Docker Alternative -->
69- <div class =" p-4 md:p-8 rounded-xl md:rounded-2xl bg-linear-to-r from- slate-900 to-slate-800 border border-slate-700" >
87+ <div class =" p-4 md:p-6 rounded-xl md:rounded-2xl bg-slate-900/60 border border-slate-700/80 shadow-xl shadow-black/20 " >
7088 <div class =" flex flex-col md:flex-row items-center justify-between gap-4 md:gap-8" >
7189 <div class =" flex items-center gap-3 md:gap-4" >
7290 <div class =" p-3 md:p-4 rounded-lg md:rounded-xl bg-blue-500/10" >
0 commit comments