Skip to content

Commit eefea24

Browse files
authored
Refine install generator page (hestiacp#4060)
* Tidy install builder, fix tooltip positioning * Tidy install script generator docs * Add "View requirements" button to Install page
1 parent d843a47 commit eefea24

File tree

4 files changed

+53
-12
lines changed

4 files changed

+53
-12
lines changed

docs/.vitepress/theme/components/InstallBuilder.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
<script setup>
7979
import { ref, watchEffect } from "vue";
8080
import CopyToClipboardInput from "./CopyToClipboardInput.vue";
81-
import FloatingVue from "floating-vue";
8281
8382
const { options } = defineProps({
8483
options: {
@@ -149,13 +148,17 @@ h2 {
149148
.output-card {
150149
background-color: var(--vp-c-bg-alt);
151150
border-radius: 10px;
152-
padding: 30px 40px;
151+
padding: 30px;
153152
margin-top: 40px;
154153
margin-bottom: 40px;
154+
155+
@media (min-width: 640px) {
156+
padding: 30px 50px;
157+
}
155158
}
156159
.option-list {
157160
display: grid;
158-
grid-gap: 20px;
161+
grid-gap: 23px;
159162
margin-bottom: 50px;
160163
161164
@media (min-width: 640px) {
@@ -188,8 +191,8 @@ h2 {
188191
justify-content: space-between;
189192
}
190193
.option-icon {
191-
padding: 5px 0 5px 10px;
192-
margin-left: 5px;
194+
padding: 5px;
195+
margin-right: -5px;
193196
194197
& i {
195198
opacity: 0.7;

docs/.vitepress/theme/components/PageHeader.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<h1>
55
<slot name="title"></slot>
66
</h1>
7-
<p v-if="$slots.lead" class="lead">
8-
<slot name="lead" />
9-
</p>
7+
<div v-if="$slots.aside">
8+
<slot name="aside" />
9+
</div>
1010
</div>
1111
</header>
1212
</template>
@@ -15,6 +15,8 @@
1515
.container {
1616
display: flex;
1717
margin: 0 auto;
18+
align-items: center;
19+
justify-content: space-between;
1820
max-width: 1152px;
1921
}
2022
.PageHeader {
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
# Install Script Generator
1+
# Install script generator
22

3-
By [Gabriel Claudiu Maftei](https://github.com/gabizz/)
4-
[View the project](https://gabizz.github.io/hestiacp-scriptline-generator/)[Source code](https://github.com/gabizz/hestiacp-scriptline-generator)
3+
These are some install script generators created by the community:
54

6-
Tiny online app aimed to generate the necessary scriptline for an unattended Hestia Control Panel installation.
5+
- [hestiacp-scriptline-generator](https://github.com/gabizz/hestiacp-scriptline-generator)
6+
7+
Tiny online app aimed to generate the necessary command for an unattended Hestia Control Panel installation.
8+
9+
- [HestiaCP-Command-Creator](https://github.com/turbopixel/HestiaCP-Command-Creator)
10+
11+
Vue.js based web app to generate the command line for an unattended Hestia Control Panel installation.
12+
13+
We thank the community for these contributions, which our [official install script generator](/install) is inspired by.
14+
15+
Please note that that we can only ensure that the official install script generator is up to date with the latest release.

docs/install.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,33 @@ title: Install
1212
<InstallPage>
1313
<PageHeader>
1414
<template #title>Install</template>
15+
<template #aside>
16+
<a class="header-button" href="./docs/introduction/getting-started.html#requirements">
17+
View requirements
18+
</a>
19+
</template>
1520
</PageHeader>
1621
<InstallBuilder :options="options"></InstallBuilder>
1722
</InstallPage>
23+
24+
<style>
25+
.header-button {
26+
display: inline-block;
27+
border: 1px solid transparent;
28+
font-weight: 600;
29+
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
30+
border-radius: 20px;
31+
padding: 0 20px;
32+
line-height: 38px;
33+
font-size: 14px;
34+
border-color: var(--vp-button-alt-border);
35+
color: var(--vp-button-alt-text);
36+
background-color: var(--vp-button-alt-bg);
37+
38+
&:hover {
39+
border-color: var(--vp-button-alt-hover-border);
40+
color: var(--vp-button-alt-hover-text);
41+
background-color: var(--vp-button-alt-hover-bg);
42+
}
43+
}
44+
</style>

0 commit comments

Comments
 (0)