Skip to content

Commit c27139c

Browse files
committed
add download buttons
1 parent c90cadb commit c27139c

File tree

4 files changed

+122
-17
lines changed

4 files changed

+122
-17
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ Create live, interactive wallpapers with HTML/CSS/JS for Windows 10 & 11
1515

1616
<img src="docs/img/app.png" width="599px" />
1717

18+
## Quickstart
19+
Download the latest installer for Windows 10 & 11: [**OctosSetup.exe**](https://github.com/underpig1/octos/releases/latest/download/OctosSetup.exe)
20+
21+
Or download from the Microsoft Store: [**Microsoft Store Page**]()
22+
1823
## Features
1924
|||
2025
|-|-|
@@ -36,7 +41,7 @@ Easily personalize your desktop with this interactive interface. -->
3641
Elevate your wallpaper with the Octos API. Access music visualization data, synchronize across monitors and displays, add media controls, and so much more right on your desktop in JavaScript via the Octos API.
3742

3843
## [Octos Docs](https://underpig1.github.io/octos/guides/)
39-
It's super easy to get started making your own content for Octos. Check out the docs for a quick getting started guide.
44+
It's super easy to get started making your own wallpapers for Octos. Check out the docs for a quick getting started guide.
4045

4146
## [Octos Community](https://github.com/underpig1/octos-community/tree/master)
4247
Join the Octos community to share your wonderful creations with the world! It's easy to make and share HTML wallpapers with Octos.

docs/about/roadmap.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ Submit feature requests in [GitHub issues](https://github.com/underpig1/octos/is
66

77
Octos 1.0 (the first official release) is officially set to release in August 2025.
88

9-
Stay tuned for future updates to this page after the initial rollout.
9+
Stay tuned for future updates to this page after the initial rollout.
10+
11+
<hr />
12+
13+
### Proposed feature: Octos Studio
14+
- A more advanced version of the Layout wallpaper in the Octos Community repo
15+
- Allows widgets, themes, and other ways to customize the desktop without needed to write any code

docs/guides/mod.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MyAwesomeMod/
99
├── index.html
1010
├── octos.json
1111
```
12-
In this folder, you can include assets, JS libraries, CSS files, icons, scripts, and basically anything else that your mod needs to run.
12+
In this folder, you can include assets, JS libraries, CSS files, icons, scripts, and basically anything else that your mod needs to run. When you're done, you can simply zip the whole mod folder and install it from the app.
1313

1414
The `octos.json` file is completely optional but it allows you to specify a lot of details for when you want to distribute your mod. These include fields like name, author, main page, user options, preview images, and a lot more. Your mod will work just fine without it, but it's good practice to add.
1515

@@ -107,6 +107,6 @@ Octos mods are distributed as .zip archive files. To distribute your mod, simply
107107
108108
- See some [example mods](https://github.com/underpig1/octos-community/tree/master) for inspiration
109109
110-
- Learn more about the [Octos CLI](cli.md) for testing and debuugging
110+
- Learn more about the [Octos CLI](cli.md) for testing and debugging
111111
112112
- Learn how to [publish your mod](publish.md) to the Octos community

docs/overrides/home.html

Lines changed: 107 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -450,17 +450,17 @@
450450
top: -15px;
451451
text-align: center;
452452
right: -15px;
453-
font-size: 30px;
454-
color: white;
453+
font-size: 24px;
454+
color: #5b5b5b;
455455
opacity: 1;
456456
cursor: pointer;
457457
z-index: 8;
458458
background-color: #111;
459-
border: 1px solid gray;
459+
border: 1px solid #5b5b5b;
460460
border-radius: 999px;
461461
width: 35px;
462462
height: 35px;
463-
line-height: 26px;
463+
line-height: 34px;
464464
}
465465

466466
.modal-content .modal-info {
@@ -497,6 +497,66 @@
497497
margin-bottom: 8px;
498498
}
499499

500+
#download-modal .modal-content {
501+
width: 375px;
502+
max-width: 90%;
503+
display: flex;
504+
padding: 15px;
505+
gap: 10px;
506+
border-radius: 10px;
507+
flex-direction: column;
508+
aspect-ratio: unset;
509+
}
510+
511+
.outline-button {
512+
border: 1px solid #5b5b5b;
513+
display: flex;
514+
align-items: center;
515+
flex-direction: row;
516+
height: 65px;
517+
width: 100%;
518+
border-radius: 5px;
519+
float: left;
520+
padding: 0 20px;
521+
box-sizing: border-box;
522+
cursor: pointer;
523+
opacity: 1;
524+
justify-content: space-between;
525+
transition: background-color 0.1s ease;
526+
}
527+
528+
.outline-button h3 {
529+
margin: 0;
530+
font-weight: 500;
531+
font-size: 12pt;
532+
color: #adadad !important;
533+
margin-bottom: 2px;
534+
}
535+
536+
.outline-button:hover {
537+
background-color: #2a2a2a;
538+
}
539+
540+
.outline-button i {
541+
color: inherit;
542+
float: right;
543+
font-size: 24pt;
544+
float: right;
545+
}
546+
547+
#download-modal .modal-content p {
548+
font-size: 10pt;
549+
margin: 0;
550+
color: #858585;
551+
float: left;
552+
margin-bottom: 5px;
553+
}
554+
555+
.outline-button p {
556+
font-size: 9pt !important;
557+
margin: 0 !important;
558+
}
559+
500560
@media screen and (max-width: 800px) {
501561
.modal-info {
502562
position: static !important;
@@ -528,8 +588,9 @@ <h1 class="scrollable" style="--damp: -2">Your new desktop awaits. 🚀</h1>
528588
<p class="scrollable" style="--damp: -2">The open-source HTML dynamic desktop engine for Windows
529589
10 &amp; 11.</p>
530590
<a class="scrollable button" style="--damp: -3; background-color: red"
531-
data-umami-event="download-button">Download</a>
532-
<a class="scrollable button" style="--damp: -3" data-umami-event="github-button" href="https://github.com/underpig1/octos" target="_blank">GitHub</a>
591+
data-umami-event="download-button" onclick="openDownloadModal()">Download</a>
592+
<a class="scrollable button" style="--damp: -3" data-umami-event="github-button"
593+
href="https://github.com/underpig1/octos" target="_blank">GitHub</a>
533594
</div>
534595
</div>
535596
</div>
@@ -579,23 +640,26 @@ <h1 class="centered-header script-dependent">See for yourself:</h1>
579640
</div> -->
580641
</div>
581642
<div class="app-preview-container scroll-container">
582-
<!-- <h1 class="scrollable centered-header" style="--damp: -5; position: absolute; top: -20px;">Ready?</h1> -->
643+
<!-- <h1 class="scrollable centered-header" style="--damp: -5; position: absolute; top: -20px;">Ready?</h1> -->
583644
<div class="app-preview"></div>
584645
</div>
585646
<div class="footer scroll-container">
586647
<div class="footer-content">
587648
<div style="width: max-content;">
588649
<h1 class="reveal revealed" style="--damp: -2">Let's do this!</h1>
589-
<p class="reveal revealed" style="--damp: -2; margin: 10px 0;">Download for free on Windows 10 &amp; 11 today</p>
590-
<a class="reveal revealed button" style="--damp: -3; background-color: white; color: black;" data-umami-event="download-button">Download</a>
591-
<a class="reveal revealed button" style="--damp: -3" data-umami-event="github-button" href="https://github.com/underpig1/octos" target="_blank">GitHub</a>
650+
<p class="reveal revealed" style="--damp: -2; margin: 10px 0;">Download for free on Windows 10 &amp;
651+
11 today</p>
652+
<a class="reveal revealed button" style="--damp: -3; background-color: white; color: black;"
653+
data-umami-event="download-button" onclick="openDownloadModal()">Download</a>
654+
<a class="reveal revealed button" style="--damp: -3" data-umami-event="github-button"
655+
href="https://github.com/underpig1/octos" target="_blank">GitHub</a>
592656
</div>
593657
</div>
594658
</div>
595659
</div>
596660
<div id="modal" class="modal">
597661
<div class="modal-content">
598-
<span class="close" onclick="closeModal()">&times;</span>
662+
<i class="close ri-close-line" onclick="closeModals()"></i>
599663
<img id="modal-video" src="" />
600664
<div class="modal-info">
601665
<h1 id="modal-title">Title</h1>
@@ -604,6 +668,26 @@ <h1 id="modal-title">Title</h1>
604668
</div>
605669
</div>
606670
</div>
671+
<div id="download-modal" class="modal">
672+
<div class="modal-content">
673+
<i class="close ri-close-line" onclick="closeModals()"></i>
674+
<p>Choose an installation method:</p>
675+
<a href="ms-windows-store://pdp/?productid=9NC4C8N74G02" class="outline-button">
676+
<div>
677+
<h3>From the Microsoft Store</h3>
678+
<p>Certified installation from Microsoft.</p>
679+
</div>
680+
<i class="ri-shopping-bag-fill"></i>
681+
</a>
682+
<a href="https://github.com/underpig1/octos/releases/latest/download/OctosSetup.exe" target="_blank" class="outline-button">
683+
<div>
684+
<h3>Download .EXE</h3>
685+
<p>Download the latest setup executable.</p>
686+
</div>
687+
<i class="ri-windows-fill"></i>
688+
</a>
689+
</div>
690+
</div>
607691
</section>
608692
<script>
609693
function revealOnScroll() {
@@ -739,17 +823,20 @@ <h1 id="modal-title">Title</h1>
739823
}
740824

741825
const modal = document.getElementById("modal");
826+
const downloadModal = document.getElementById("download-modal");
742827
const video = document.getElementById("modal-video");
743828

744829
const modalInfo = document.querySelector(".modal-info");
745830
const modalTitle = document.getElementById("modal-title");
746831
const modalAuthor = document.getElementById("modal-author");
747832
const modalDescription = document.getElementById("modal-description");
748833

749-
function closeModal() {
834+
function closeModals() {
750835
modal.classList.remove("active");
836+
downloadModal.classList.remove("active");
751837
setTimeout(() => {
752838
modal.style.display = "none";
839+
downloadModal.style.display = "none";
753840
}, 300);
754841
}
755842

@@ -776,8 +863,15 @@ <h1 id="modal-title">Title</h1>
776863
}
777864

778865
window.onclick = (event) => {
779-
if (event.target === modal) closeModal()
866+
if (event.target === modal || event.target == downloadModal) closeModals()
780867
};
868+
869+
function openDownloadModal() {
870+
downloadModal.style.display = "flex";
871+
requestAnimationFrame(() => {
872+
downloadModal.classList.add("active");
873+
});
874+
}
781875
</script>
782876
{% endblock %}
783877
{% block content %}{% endblock %}

0 commit comments

Comments
 (0)