Skip to content

Commit

Permalink
othe minor css tweeks
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Gadorek committed Nov 20, 2024
1 parent 76cbe74 commit 35858b3
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 30 deletions.
10 changes: 10 additions & 0 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ body {
}

.wizard-container {
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
align-items: center;
flex: 1;
justify-content: center;
text-align: center;
}

.wizard-step-container {
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
Expand Down
4 changes: 2 additions & 2 deletions src/components/GlobalProgress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<div class="progress-container" v-if="display_progress">
<div class="progress-content">
<span class="progress-message">{{ message }}</span>
<n-progress type="line" :status="status" :percentage="percentage" :height="36" :show-indicator="true"
indicator-placement="inside" class="progress-bar" processing>
<n-progress type="line" :color="themeVars.errorColor" :status="status" :percentage="percentage" :height="36"
:show-indicator="true" indicator-placement="inside" class="progress-bar" processing>
<template #indicator>
{{ percentage }}%
</template>
Expand Down
7 changes: 5 additions & 2 deletions src/components/LoadConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export default {
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
flex: 1;
align-items: center;
justify-content: center;
}
.title {
Expand All @@ -98,7 +101,7 @@ export default {
}
.content-split {
height: 500px;
height: 550px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
Expand All @@ -110,7 +113,7 @@ export default {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: top;
}
.option-content {
Expand Down
24 changes: 10 additions & 14 deletions src/components/WizardStep.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<template>
<div class="wizard-container">
<h2>Step {{ currentStep }}: {{ stepTitle }}</h2>
<PrerequisitiesCheck :nextstep=nextStep v-if="currentStep === 1" />
<PythonSanitycheck :nextstep=nextStep v-if="currentStep === 2" />
<TargetSelect :nextstep=nextStep v-if="currentStep === 3" />
<VersionSelect :nextstep=nextStep v-if="currentStep === 4" />
<MirrorSelect :nextstep=nextStep v-if="currentStep === 5" />
<InstallationPathSelect :nextstep=nextStep v-if="currentStep === 6" />
<InstalationProgress :nextstep=nextStep v-if="currentStep === 7" />
<Complete v-if="currentStep === 8" />
<div>
<!-- <n-button @click="previousStep" :disabled="currentStep === 1">Previous</n-button>
<n-button @click="nextStep" :disabled="currentStep === totalSteps" type="primary">
{{ currentStep === totalSteps ? 'Finish' : 'Next' }}
</n-button> -->
<div class="wizard-step-container">
<!-- <h2>Step {{ currentStep }}: {{ stepTitle }}</h2> -->
<PrerequisitiesCheck :nextstep=nextStep v-if="currentStep === 1" />
<PythonSanitycheck :nextstep=nextStep v-if="currentStep === 2" />
<TargetSelect :nextstep=nextStep v-if="currentStep === 3" />
<VersionSelect :nextstep=nextStep v-if="currentStep === 4" />
<MirrorSelect :nextstep=nextStep v-if="currentStep === 5" />
<InstallationPathSelect :nextstep=nextStep v-if="currentStep === 6" />
<InstalationProgress :nextstep=nextStep v-if="currentStep === 7" />
<Complete v-if="currentStep === 8" />
</div>
</div>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/components/wizard_steps/InstallationPathSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p class="info-desc">Choose where to install ESP-IDF and its tools. Ensure you have sufficient disk space.</p>
</div>

<div class="space-required">
<!-- <div class="space-required">
<div class="space-icon">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
Expand All @@ -20,7 +20,7 @@
<span class="space-label">Required Space:</span>
<span class="space-value">2.5 GB TODO: add some real value</span>
</div>
</div>
</div> -->

<div class="path-input">
<n-input-group>
Expand Down
15 changes: 10 additions & 5 deletions src/components/wizard_steps/PrerequisitiesCheck.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
<template #header>
<div class="card-header">
<span class="header-title">Required Prerequisites</span>
<n-button @click="check_prerequisites" type="error" :loading="loading">
{{ loading ? 'Checking...' : 'Check Prerequisites' }}
</n-button>

</div>
</template>

Expand All @@ -23,7 +21,11 @@
</li>
</ul>
</n-spin>

</n-card>
<n-button @click="check_prerequisites" type="error" :loading="loading">
{{ loading ? 'Checking...' : 'Check Prerequisites' }}
</n-button>

<!-- Results Section -->
<div v-if="did_the_check_run" class="results-section">
Expand Down Expand Up @@ -126,8 +128,11 @@ export default {
<style scoped>
.prerequisites {
padding: 2rem;
max-width: 800px;
max-width: 1200px;
margin: 0 auto;
align-items: center;
justify-content: center;
text-align: center;
}
.title {
Expand All @@ -153,7 +158,7 @@ export default {
.card-header {
display: flex;
justify-content: space-between;
justify-content: center;
align-items: center;
}
Expand Down
10 changes: 5 additions & 5 deletions src/components/wizard_steps/TargetSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,18 @@ export default {
.selection-card {
background: white;
padding: 1rem;
padding: 0.001rem;
}
.targets-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
gap: 0.3rem;
margin-bottom: 0.5rem;
}
.target-item {
padding: 1rem;
padding: 0.5rem;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
cursor: pointer;
Expand All @@ -138,7 +138,7 @@ export default {
.target-content {
display: flex;
flex-direction: column;
gap: 0.25rem;
gap: 0rem;
}
.target-name {
Expand Down

0 comments on commit 35858b3

Please sign in to comment.