File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 < li > < a href ="services.html "> Services</ a > </ li >
2828 < li > < a href ="guides.html "> Guides</ a > </ li >
2929 < li > < a href ="faq.html " class ="active "> FAQ</ a > </ li >
30- < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases " class ="nav-cta " target ="_blank "> Download</ a > </ li >
30+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro " target ="_blank "> GitHub</ a > </ li >
31+ < li style ="display:flex; align-items:center; ">
32+ < iframe src ="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true " frameborder ="0 " scrolling ="0 " width ="100 " height ="20 " title ="GitHub "> </ iframe >
33+ </ li >
34+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases/latest " class ="nav-cta download-setup-btn " target ="_blank "> Download Setup</ a > </ li >
3135 </ ul >
3236 </ div >
3337 </ nav >
Original file line number Diff line number Diff line change 2727 < li > < a href ="services.html "> Services</ a > </ li >
2828 < li > < a href ="guides.html "> Guides</ a > </ li >
2929 < li > < a href ="faq.html "> FAQ</ a > </ li >
30- < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases " class ="nav-cta " target ="_blank "> Download</ a > </ li >
30+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro " target ="_blank "> GitHub</ a > </ li >
31+ < li style ="display:flex; align-items:center; ">
32+ < iframe src ="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true " frameborder ="0 " scrolling ="0 " width ="100 " height ="20 " title ="GitHub "> </ iframe >
33+ </ li >
34+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases/latest " class ="nav-cta download-setup-btn " target ="_blank "> Download Setup</ a > </ li >
3135 </ ul >
3236 </ div >
3337 </ nav >
Original file line number Diff line number Diff line change 2727 < li > < a href ="services.html "> Services</ a > </ li >
2828 < li > < a href ="guides.html "> Guides</ a > </ li >
2929 < li > < a href ="faq.html "> FAQ</ a > </ li >
30- < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases " class ="nav-cta " target ="_blank "> Download</ a > </ li >
30+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro " target ="_blank "> GitHub</ a > </ li >
31+ < li style ="display:flex; align-items:center; ">
32+ < iframe src ="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true " frameborder ="0 " scrolling ="0 " width ="100 " height ="20 " title ="GitHub "> </ iframe >
33+ </ li >
34+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases/latest " class ="nav-cta download-setup-btn " target ="_blank "> Download Setup</ a > </ li >
3135 </ ul >
3236 </ div >
3337 </ nav >
Original file line number Diff line number Diff line change 2727 < li > < a href ="services.html "> Services</ a > </ li >
2828 < li > < a href ="guides.html " class ="active "> Guides</ a > </ li >
2929 < li > < a href ="faq.html "> FAQ</ a > </ li >
30- < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases " class ="nav-cta " target ="_blank "> Download</ a > </ li >
30+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro " target ="_blank "> GitHub</ a > </ li >
31+ < li style ="display:flex; align-items:center; ">
32+ < iframe src ="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true " frameborder ="0 " scrolling ="0 " width ="100 " height ="20 " title ="GitHub "> </ iframe >
33+ </ li >
34+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases/latest " class ="nav-cta download-setup-btn " target ="_blank "> Download Setup</ a > </ li >
3135 </ ul >
3236 </ div >
3337 </ nav >
Original file line number Diff line number Diff line change 2727 < li > < a href ="services.html "> Services</ a > </ li >
2828 < li > < a href ="guides.html "> Guides</ a > </ li >
2929 < li > < a href ="faq.html "> FAQ</ a > </ li >
30- < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases " class ="nav-cta " target ="_blank "> Download</ a > </ li >
30+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro " target ="_blank "> GitHub</ a > </ li >
31+ < li style ="display:flex; align-items:center; ">
32+ < iframe src ="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true " frameborder ="0 " scrolling ="0 " width ="100 " height ="20 " title ="GitHub "> </ iframe >
33+ </ li >
34+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases/latest " class ="nav-cta download-setup-btn " target ="_blank "> Download Setup</ a > </ li >
3135 </ ul >
3236 </ div >
3337 </ nav >
@@ -43,8 +47,8 @@ <h1 class="animate-in">
4347 Run PHP and Node.js projects side by side — no conflicts, no headaches. Everything you need in one beautiful desktop app.
4448 </ p >
4549 < div class ="btn-group animate-in ">
46- < a href ="https://github.com/JeffGepiga/DevBoxPro/releases " class ="btn btn-primary " target ="_blank "> ⬇ Download DevBox Pro </ a >
47- < a href ="getting-started.html " class ="btn btn-secondary " > Get Started → </ a >
50+ < a href ="https://github.com/JeffGepiga/DevBoxPro/releases/latest " class ="btn btn-primary download-setup-btn " target ="_blank "> ⬇ Download Setup </ a >
51+ < a href ="https://github.com/JeffGepiga/DevBoxPro/releases/latest " class ="btn btn-secondary download-portable-btn " target =" _blank " > ⬇ Download Portable </ a >
4852 </ div >
4953 </ div >
5054 </ section >
Original file line number Diff line number Diff line change @@ -6,8 +6,36 @@ document.addEventListener('DOMContentLoaded', () => {
66 initNavbar ( ) ;
77 initScrollAnimations ( ) ;
88 initAccordions ( ) ;
9+ updateDownloadLinks ( ) ;
910} ) ;
1011
12+ async function updateDownloadLinks ( ) {
13+ try {
14+ const response = await fetch ( 'https://api.github.com/repos/JeffGepiga/DevBoxPro/releases/latest' ) ;
15+ const data = await response . json ( ) ;
16+
17+ if ( data && data . assets ) {
18+ const setupAsset = data . assets . find ( a => a . name . includes ( 'Setup' ) && a . name . endsWith ( '.exe' ) ) ;
19+ const portableAsset = data . assets . find ( a => ! a . name . includes ( 'Setup' ) && a . name . endsWith ( '.exe' ) ) ;
20+
21+ if ( setupAsset ) {
22+ document . querySelectorAll ( '.download-setup-btn' ) . forEach ( btn => {
23+ btn . href = setupAsset . browser_download_url ;
24+ } ) ;
25+ }
26+
27+ if ( portableAsset ) {
28+ document . querySelectorAll ( '.download-portable-btn' ) . forEach ( btn => {
29+ btn . href = portableAsset . browser_download_url ;
30+ } ) ;
31+ }
32+ }
33+ } catch ( err ) {
34+ console . error ( 'Failed to fetch latest release:' , err ) ;
35+ }
36+ }
37+
38+
1139/* ---------- Navbar ---------- */
1240function initNavbar ( ) {
1341 const navbar = document . querySelector ( '.navbar' ) ;
Original file line number Diff line number Diff line change 2727 < li > < a href ="services.html " class ="active "> Services</ a > </ li >
2828 < li > < a href ="guides.html "> Guides</ a > </ li >
2929 < li > < a href ="faq.html "> FAQ</ a > </ li >
30- < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases " class ="nav-cta " target ="_blank "> Download</ a > </ li >
30+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro " target ="_blank "> GitHub</ a > </ li >
31+ < li style ="display:flex; align-items:center; ">
32+ < iframe src ="https://ghbtns.com/github-btn.html?user=JeffGepiga&repo=DevBoxPro&type=star&count=true " frameborder ="0 " scrolling ="0 " width ="100 " height ="20 " title ="GitHub "> </ iframe >
33+ </ li >
34+ < li > < a href ="https://github.com/JeffGepiga/DevBoxPro/releases/latest " class ="nav-cta download-setup-btn " target ="_blank "> Download Setup</ a > </ li >
3135 </ ul >
3236 </ div >
3337 </ nav >
You can’t perform that action at this time.
0 commit comments