Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installer guide complete #130

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Desktop/public/images/step1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Desktop/public/images/step2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Desktop/public/images/step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Desktop/public/images/step4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Desktop/public/images/step5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Desktop/public/images/step6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Desktop/public/images/step7.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 51 additions & 16 deletions Desktop/src/components/InstallerGuide.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,42 @@

let currentStep = 0;
const steps = [
"Step 1: Download the agent",
"Step 2: Open the installer",
"Step 3: Accept the license agreement",
"Step 4: Choose the installation directory",
"Step 5: Install the agent",
"Step 6: Wait for the installation to complete",
"Step 7: Finish and run the agent"
];
{
step: "Step 1",
context:"Download the agent" ,
img: "./images/step1.png"
},
{
step: "Step 2",
context:"Open the installer" ,
img: "./images/step2.png"
},
{
step: "Step 3",
context:"Choose your agent type" ,
img: "./images/step3.png"
},
{
step: "Step 4",
context:"Choose the installation directory" ,
img: "./images/step4.png"
},
{
step: "Step 5",
context:"Install the agent" ,
img: "./images/step5.png"
},
{
step: "Step 6",
context:"Wait for the installation to complete" ,
img: "./images/step6.png"
},
{
step: "Step 7",
context:"Finish and run the agent" ,
img: "./images/HomeAnimation.gif"
}
];

function next() {
if (currentStep < steps.length - 1) {
Expand All @@ -33,14 +61,18 @@
.slide {
text-align: center;
margin-top: 50px;
align-content: center;
justify-content: center;
justify-items: center;
align-items: center;
}
.controls {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.button {
padding: 10px 20px;
/* padding: 10px 20px; */
font-size: 16px;
cursor: pointer;
border-radius:15px;
Expand All @@ -53,23 +85,26 @@


<div class="lg:w-4/12 w-6/12 mx-auto py-14 mb-4">
<div class="containerClass text-white">
<div class="containerClass text-white items-center justify-center align-center">
<div class="slide">
<h2 class="text-xl">{steps[currentStep]}</h2>
<p class="p-2"> More information goes here... <br> and most probably images <br> but you get the point though....</p>
<h2 class="text-xl">{steps[currentStep].step}</h2>
<p class="p-2"> {steps[currentStep].context}</p>
<div class="content-center">
<img src={steps[currentStep].img} alt="{steps[currentStep].step}" class="px-4 self-center " />
</div>
</div>

<div class="controls">
<button class="button bg-theme-dark-primary text-theme-dark-lightText" on:click={back} disabled={currentStep === 0}>
<div class="controls p-4">
<button class="button bg-theme-dark-primary text-theme-dark-lightText px-4 m-2" on:click={back} disabled={currentStep === 0}>
Back
</button>

{#if currentStep < steps.length - 1}
<button class="button bg-theme-dark-primary text-theme-dark-lightText" on:click={next}>
<button class="button bg-theme-dark-primary text-theme-dark-lightText px-4 m-2" on:click={next}>
Next
</button>
{:else}
<button class="button bg-theme-dark-primary text-theme-dark-lightText" on:click={next}>
<button class="button bg-theme-dark-primary text-theme-dark-lightText px-4 m-2" on:click={next}>
<!-- TODO: Just check that it doesn't lead to home but leads to the app -->
<a href="#/gallery">
Finish
Expand Down
4 changes: 2 additions & 2 deletions Desktop/src/routes/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
</button>
</a>

<!-- <a href="#/install" class="w-full">
<a href="#/install" class="w-full">
<button
class="w-full py-2 bg-theme-dark-primary text-theme-dark-lightText rounded-lg transition"
>
WIP
</button>
</a> -->
</a>
</div>
</div>
</div>
Expand Down
Loading