Add Features section
This commit is contained in:
parent
94eb1ae21f
commit
4732d261f4
5 changed files with 313 additions and 0 deletions
115
src/components/Carousel.astro
Normal file
115
src/components/Carousel.astro
Normal file
|
@ -0,0 +1,115 @@
|
||||||
|
---
|
||||||
|
import Feature1 from '@components/features/Feature1.astro'
|
||||||
|
import Feature2 from '@components/features/Feature2.astro'
|
||||||
|
import Feature3 from '@components/features/Feature3.astro'
|
||||||
|
import Feature4 from '@components/features/Feature4.astro'
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="features-header">
|
||||||
|
<button onclick="CF_FM()" aria-label="File Manager">File Manager</button>
|
||||||
|
<button onclick="CF_CO()" aria-label="Console">Console</button>
|
||||||
|
<button onclick="CF_MA()" aria-label="Multi-Admin">Multi-Admin</button>
|
||||||
|
<button onclick="CF_MM()" aria-label="Much More">Much More</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<sl-tab-group>
|
||||||
|
<sl-tab slot="nav" panel="file_manager">File Manager</sl-tab>
|
||||||
|
<sl-tab slot="nav" panel="console">Console</sl-tab>
|
||||||
|
<sl-tab slot="nav" panel="admins">Multi-Admin</sl-tab>
|
||||||
|
<sl-tab slot="nav" panel="more">Much More</sl-tab>
|
||||||
|
|
||||||
|
<sl-tab-panel name="file_manager">
|
||||||
|
<video autoplay muted loop src="/videos/features/1.mp4"></video>
|
||||||
|
<Feature1>
|
||||||
|
</sl-tab-panel>
|
||||||
|
<sl-tab-panel name="console">
|
||||||
|
<video autoplay muted loop src="/videos/features/2.mp4"></video>
|
||||||
|
<Feature2>
|
||||||
|
</sl-tab-panel>
|
||||||
|
<sl-tab-panel name="admins">
|
||||||
|
<video autoplay muted loop src="/videos/features/3.mp4"></video>
|
||||||
|
<Feature3>
|
||||||
|
</sl-tab-panel>
|
||||||
|
<sl-tab-panel name="more">
|
||||||
|
<video autoplay muted loop src="/videos/features/4.mp4"></video>
|
||||||
|
<Feature4>
|
||||||
|
</sl-tab-panel>
|
||||||
|
</sl-tab-group>
|
||||||
|
|
||||||
|
<script is:inline>
|
||||||
|
function CF_Reset() {
|
||||||
|
document.querySelector('[aria-label="File Manager"]').style.background = 'black';
|
||||||
|
document.querySelector('[aria-label="File Manager"]').style.color = 'white';
|
||||||
|
document.querySelector('[aria-label="Console"]').style.background = 'black';
|
||||||
|
document.querySelector('[aria-label="Console"]').style.color = 'white';
|
||||||
|
document.querySelector('[aria-label="Multi-Admin"]').style.background = 'black';
|
||||||
|
document.querySelector('[aria-label="Multi-Admin"]').style.color = 'white';
|
||||||
|
document.querySelector('[aria-label="Much More"]').style.background = 'black';
|
||||||
|
document.querySelector('[aria-label="Much More"]').style.color = 'white';
|
||||||
|
}
|
||||||
|
function CF_FM() {
|
||||||
|
CF_Reset()
|
||||||
|
document.querySelector("#sl-tab-1").click()
|
||||||
|
document.querySelector('[aria-label="File Manager"]').style.background = 'white';
|
||||||
|
document.querySelector('[aria-label="File Manager"]').style.color = 'black';
|
||||||
|
}
|
||||||
|
function CF_CO() {
|
||||||
|
CF_Reset()
|
||||||
|
document.querySelector("#sl-tab-2").click()
|
||||||
|
document.querySelector('[aria-label="Console"]').style.background = 'white';
|
||||||
|
document.querySelector('[aria-label="Console"]').style.color = 'black';
|
||||||
|
}
|
||||||
|
function CF_MA() {
|
||||||
|
CF_Reset()
|
||||||
|
document.querySelector("#sl-tab-3").click()
|
||||||
|
document.querySelector('[aria-label="Multi-Admin"]').style.background = 'white';
|
||||||
|
document.querySelector('[aria-label="Multi-Admin"]').style.color = 'black';
|
||||||
|
}
|
||||||
|
function CF_MM() {
|
||||||
|
CF_Reset()
|
||||||
|
document.querySelector("#sl-tab-4").click()
|
||||||
|
document.querySelector('[aria-label="Much More"]').style.background = 'white';
|
||||||
|
document.querySelector('[aria-label="Much More"]').style.color = 'black';
|
||||||
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
CF_FM()
|
||||||
|
}, 0o500);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
sl-tab-group::part(tabs) {
|
||||||
|
border: none;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
height: 0px;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
video {
|
||||||
|
width: calc(100% - 4px);
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 10px;
|
||||||
|
border: 2px rgb(44, 44, 44) solid;
|
||||||
|
pointer-events: none;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
button {
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
background: transparent;
|
||||||
|
padding: 8px 18px;
|
||||||
|
border-radius: 3rem;
|
||||||
|
margin: 0px 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 16px;
|
||||||
|
&:hover {
|
||||||
|
color: black;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
49
src/components/features/Feature1.astro
Normal file
49
src/components/features/Feature1.astro
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
---
|
||||||
|
import Card from '@components/Card.astro'
|
||||||
|
import CardGrid from '@components/CardGrid.astro'
|
||||||
|
|
||||||
|
import {Rocket} from '@iconoir/vue'
|
||||||
|
---
|
||||||
|
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
50
src/components/features/Feature2.astro
Normal file
50
src/components/features/Feature2.astro
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
---
|
||||||
|
import Card from '@components/Card.astro'
|
||||||
|
import CardGrid from '@components/CardGrid.astro'
|
||||||
|
|
||||||
|
import {Rocket} from '@iconoir/vue'
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
49
src/components/features/Feature3.astro
Normal file
49
src/components/features/Feature3.astro
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
---
|
||||||
|
import Card from '@components/Card.astro'
|
||||||
|
import CardGrid from '@components/CardGrid.astro'
|
||||||
|
|
||||||
|
import {Rocket} from '@iconoir/vue'
|
||||||
|
---
|
||||||
|
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
50
src/components/features/Feature4.astro
Normal file
50
src/components/features/Feature4.astro
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
---
|
||||||
|
import Card from '@components/Card.astro'
|
||||||
|
import CardGrid from '@components/CardGrid.astro'
|
||||||
|
|
||||||
|
import {Rocket} from '@iconoir/vue'
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
||||||
|
<CardGrid>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
Title="Feature Title"
|
||||||
|
Description="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."
|
||||||
|
>
|
||||||
|
<Rocket/>
|
||||||
|
</Card>
|
||||||
|
</CardGrid>
|
Reference in a new issue