mirror of
https://github.com/ivabus/gui
synced 2025-06-08 00:00:27 +03:00
breakapart smart components being used in each route
This commit is contained in:
parent
faac69d2fe
commit
aa31033593
20 changed files with 140 additions and 53 deletions
5
packages/gui/src/components/Badges/Badges.svelte
Normal file
5
packages/gui/src/components/Badges/Badges.svelte
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="Badges"/>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="BigBlackSpace"/>
|
5
packages/gui/src/components/CliBanner/CliBanner.svelte
Normal file
5
packages/gui/src/components/CliBanner/CliBanner.svelte
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="CLI Hero"/>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="EssentialWorkshops"/>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="FeaturedCourses"/>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="FeaturedPackages"/>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="GettingStarted"/>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="InstalledPackages"/>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="PackageBanner"/>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Placeholder label="PackageReviews"/>
|
5
packages/gui/src/components/Preflight/Preflight.svelte
Normal file
5
packages/gui/src/components/Preflight/Preflight.svelte
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="Preflight"/>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
<Placeholder label="ProfileBanner"/>
|
|
@ -0,0 +1,31 @@
|
||||||
|
<script>
|
||||||
|
import "$appcss";
|
||||||
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="bg-black border border-gray">
|
||||||
|
<section class="flex">
|
||||||
|
<h2>Filter Packages</h2>
|
||||||
|
<input type="search" class="text-white bg-black border border-gray"/>
|
||||||
|
</section>
|
||||||
|
<ul class="grid grid-cols-3 gap-8 mt-8">
|
||||||
|
<li>
|
||||||
|
<a href="/packages/pkg-a"><Placeholder label="Pkg A"></Placeholder></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/packages/pkg-b"><Placeholder label="Pkg B"></Placeholder></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/packages/pkg-c"><Placeholder label="Pkg C"></Placeholder></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/packages/pkg-a"><Placeholder label="Pkg D"></Placeholder></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/packages/pkg-b"><Placeholder label="Pkg E"></Placeholder></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/packages/pkg-c"><Placeholder label="Pkg F"></Placeholder></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
|
@ -11,7 +11,7 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<div id="main-layout">
|
||||||
<nav class="">
|
<nav class="">
|
||||||
<NavBar/>
|
<NavBar/>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -22,12 +22,14 @@
|
||||||
</header>
|
</header>
|
||||||
{/if}
|
{/if}
|
||||||
<figure></figure>
|
<figure></figure>
|
||||||
<slot></slot>
|
<div>
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
div {
|
#main-layout {
|
||||||
width: 100vh;
|
width: 100vh;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
@ -44,6 +46,7 @@
|
||||||
}
|
}
|
||||||
figure {
|
figure {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
z-index: 0;
|
||||||
top: 180px;
|
top: 180px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
|
@ -58,4 +61,12 @@
|
||||||
height: 50px;
|
height: 50px;
|
||||||
border-bottom: #CCC 1px solid;
|
border-bottom: #CCC 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
slot {
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -2,20 +2,20 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import "$appcss";
|
import "$appcss";
|
||||||
import { backLink } from '$libs/stores';
|
import { backLink } from '$libs/stores';
|
||||||
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
|
||||||
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
||||||
|
import FeaturedPackages from "$components/FeaturedPackages/FeaturedPackages.svelte";
|
||||||
|
import GettingStarted from "$components/GettingStarted/GettingStarted.svelte";
|
||||||
backLink.set('');
|
backLink.set('');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<PageHeader>Discover</PageHeader>
|
<PageHeader>Discover</PageHeader>
|
||||||
<header>
|
<section>
|
||||||
<Placeholder label="featured packages"/>
|
<FeaturedPackages/>
|
||||||
</header>
|
</section>
|
||||||
<section class="mt-8">
|
<section class="mt-8">
|
||||||
<Placeholder label="Getting started with tea"/>
|
<GettingStarted/>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
import "$appcss";
|
import "$appcss";
|
||||||
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
||||||
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
import CliBanner from "$components/CliBanner/CliBanner.svelte";
|
||||||
|
import BigBlackSpace from "$components/BigBlackSpace/BigBlackSpace.svelte";
|
||||||
import { backLink } from '$libs/stores';
|
import { backLink } from '$libs/stores';
|
||||||
backLink.set('/');
|
backLink.set('/');
|
||||||
</script>
|
</script>
|
||||||
|
@ -10,11 +11,11 @@
|
||||||
<div>
|
<div>
|
||||||
<PageHeader>INSTALL TEA</PageHeader>
|
<PageHeader>INSTALL TEA</PageHeader>
|
||||||
|
|
||||||
<header>
|
<section>
|
||||||
<Placeholder label="big tea icon version with copy curl"/>
|
<CliBanner/>
|
||||||
</header>
|
</section>
|
||||||
|
|
||||||
<section class="mt-8">
|
<section class="mt-8">
|
||||||
<Placeholder label="big black blank space"/>
|
<BigBlackSpace/>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
|
@ -1,7 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
import "$appcss";
|
import "$appcss";
|
||||||
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
||||||
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
import FeaturedCourses from "$components/FeaturedCourses/FeaturedCourses.svelte";
|
||||||
|
import EssentialWorkshops from "$components/EssentialWorkshops/EssentialWorkshops.svelte";
|
||||||
import { backLink } from '$libs/stores';
|
import { backLink } from '$libs/stores';
|
||||||
backLink.set('/');
|
backLink.set('/');
|
||||||
</script>
|
</script>
|
||||||
|
@ -10,11 +11,11 @@
|
||||||
<div>
|
<div>
|
||||||
<PageHeader>Documentation</PageHeader>
|
<PageHeader>Documentation</PageHeader>
|
||||||
|
|
||||||
<header>
|
<section>
|
||||||
<Placeholder label="featured courses"/>
|
<FeaturedCourses/>
|
||||||
</header>
|
</section>
|
||||||
|
|
||||||
<section class="mt-8">
|
<section class="mt-8">
|
||||||
<Placeholder label="Essential workshops"/>
|
<EssentialWorkshops/>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import "$appcss";
|
import "$appcss";
|
||||||
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
||||||
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
import SearchPackages from "$components/SearchPackages/SearchPackages.svelte";
|
||||||
import { backLink } from '$libs/stores';
|
import { backLink } from '$libs/stores';
|
||||||
backLink.set('/');
|
backLink.set('/');
|
||||||
</script>
|
</script>
|
||||||
|
@ -9,27 +9,5 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<PageHeader>Packages</PageHeader>
|
<PageHeader>Packages</PageHeader>
|
||||||
<section>
|
<SearchPackages/>
|
||||||
<Placeholder label="filter packages"/>
|
|
||||||
</section>
|
|
||||||
<ul class="grid grid-cols-3 gap-8 mt-8">
|
|
||||||
<li>
|
|
||||||
<a href="/packages/pkg-a"><Placeholder label="Pkg A"></Placeholder></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/packages/pkg-b"><Placeholder label="Pkg B"></Placeholder></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/packages/pkg-c"><Placeholder label="Pkg C"></Placeholder></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/packages/pkg-a"><Placeholder label="Pkg D"></Placeholder></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/packages/pkg-b"><Placeholder label="Pkg E"></Placeholder></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/packages/pkg-c"><Placeholder label="Pkg F"></Placeholder></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
|
@ -1,9 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
import "$appcss";
|
import "$appcss";
|
||||||
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
||||||
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
|
||||||
import { page } from '$app/stores';
|
|
||||||
import { backLink } from '$libs/stores';
|
import { backLink } from '$libs/stores';
|
||||||
|
import PackageBanner from '$components/PackageBanner/PackageBanner.svelte';
|
||||||
|
import PackageReviews from '$components/PackageReviews/PackageReviews.svelte';
|
||||||
backLink.set('/packages');
|
backLink.set('/packages');
|
||||||
|
|
||||||
/** @type {import('./$types').PageData} */
|
/** @type {import('./$types').PageData} */
|
||||||
|
@ -13,9 +13,9 @@
|
||||||
<div>
|
<div>
|
||||||
<PageHeader>{data.title}</PageHeader>
|
<PageHeader>{data.title}</PageHeader>
|
||||||
<section>
|
<section>
|
||||||
<Placeholder label="package cover w/ copy link" />
|
<PackageBanner/>
|
||||||
</section>
|
</section>
|
||||||
<section class="mt-8">
|
<section class="mt-8">
|
||||||
<Placeholder label="reviews" />
|
<PackageReviews/>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
|
@ -2,6 +2,10 @@
|
||||||
import "$appcss";
|
import "$appcss";
|
||||||
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
import PageHeader from "$components/PageHeader/PageHeader.svelte";
|
||||||
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
import Placeholder from "$components/Placeholder/Placeholder.svelte";
|
||||||
|
import ProfileBanner from "$components/ProfileBanner/ProfileBanner.svelte";
|
||||||
|
import Preflight from "$components/Preflight/Preflight.svelte";
|
||||||
|
import Badges from "$components/Badges/Badges.svelte";
|
||||||
|
import InstalledPackages from "$components/InstalledPackages/InstalledPackages.svelte";
|
||||||
import { backLink } from '$libs/stores';
|
import { backLink } from '$libs/stores';
|
||||||
backLink.set('/');
|
backLink.set('/');
|
||||||
</script>
|
</script>
|
||||||
|
@ -10,21 +14,21 @@
|
||||||
<div>
|
<div>
|
||||||
<PageHeader>PROFILE</PageHeader>
|
<PageHeader>PROFILE</PageHeader>
|
||||||
|
|
||||||
<header>
|
<section>
|
||||||
<Placeholder label="github username and wallet address"/>
|
<ProfileBanner/>
|
||||||
</header>
|
</section>
|
||||||
|
|
||||||
<section class="mt-8 grid grid-cols-2 gap-8">
|
<section class="mt-8 grid grid-cols-2 gap-8">
|
||||||
<div>
|
<div>
|
||||||
<Placeholder label="pre-flight"/>
|
<Preflight/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Placeholder label="badges"/>
|
<Badges/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="mt-8">
|
<section class="mt-8">
|
||||||
<Placeholder label="my installs"/>
|
<InstalledPackages/>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue