-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
135 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,57 @@ | ||
<script lang="ts"> | ||
// import {Alert} from '@agnos-ui/svelte'; | ||
import Svg from '$lib/layout/Svg.svelte'; | ||
import angularLogo from '../resources/logo-angular.svg?raw'; | ||
import reactLogo from '../resources/logo-react.svg?raw'; | ||
import sveteLogo from '../resources/logo-svelte.svg?raw'; | ||
</script> | ||
|
||
<svelte:head> | ||
<title>Home page</title> | ||
<meta name="description" content="Svelte demo app" /> | ||
</svelte:head> | ||
|
||
<section>Home page</section> | ||
<section class="pt-3"> | ||
<div class="alert alert-primary"> | ||
Welcome to AgnosUI Demo! Experience the beginning stages of our exciting journey as we actively develop our library for CSS Bootstrap design. | ||
<br /> | ||
Follow us on <a href="https://github.com/AmadeusITGroup/AgnosUI">GitHub</a> for the latest updates and be a part of shaping the next-generation UI | ||
components! | ||
</div> | ||
|
||
<div class="note my-3"> | ||
AgnosUI is a powerful library of widgets designed specifically for <a href="https://getbootstrap.com/">Bootstrap</a>. Inspired by the success of | ||
<a href="https://ng-bootstrap.github.io/">ng-bootstrap</a>, AgnosUI takes the concept a step further by offering widgets that can seamlessly | ||
integrate with any front-end framework of your choice. With support for popular frameworks like <a href="https://angular.io/">Angular</a>, | ||
<a href="https://react.dev/">React</a>, and <a href="https://svelte.dev/">Svelte</a>, AgnosUI allows you to effortlessly create consistent and | ||
visually appealing UI components across your projects. | ||
</div> | ||
|
||
<h2 class="text-center">For a comprehensive understanding of AgnosUI's features and usage,<br />feel free to explore our demo</h2> | ||
<div class="d-flex links d-flex justify-content-evenly"> | ||
<!-- <a href="angular/components/alert/examples"><Svg svg={angularLogo} className="framework-logo" /></a> --> | ||
<a href="angular/components/alert/examples"> | ||
<img | ||
class="framework-logo" | ||
src="https://raw.githubusercontent.com/angular/angular/main/aio/src/assets/images/logos/angular/angular.png" | ||
alt="Angular" | ||
/> | ||
</a> | ||
<a href="react/components/alert/examples"><Svg svg={reactLogo} className="framework-logo" /></a> | ||
<a href="svelte/components/alert/examples"><Svg svg={sveteLogo} className="framework-logo" /></a> | ||
</div> | ||
</section> | ||
|
||
<style lang="scss"> | ||
.note { | ||
font-size: 1.25rem; | ||
font-weight: 300; | ||
} | ||
.links { | ||
padding: 3rem; | ||
:global(.framework-logo) { | ||
height: 100px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<script lang="ts"> | ||
import {page} from '$app/stores'; | ||
import 'bootstrap/dist/css/bootstrap.css'; | ||
import {pathToRoot$, selectedFramework$} from '../../lib/stores'; | ||
import {menu} from '../navigation'; | ||
</script> | ||
|
||
<div class="container-fluid demo-gutter demo-layout"> | ||
<aside class="demo-sidebar"> | ||
<nav class="w-100"> | ||
<ul class="list-unstyled mb-0 pb-3 pb-md-2 pe-lg-2"> | ||
{#each menu as { title, submenu }} | ||
<li class="py-2" id="sidenav-{title}"> | ||
<strong class="d-flex w-100 align-items-center fw-semibold">{title}</strong> | ||
<ul class="list-unstyled fw-normal pb-2 small"> | ||
{#each submenu as { label, path }} | ||
{@const isCurrent = $page.route.id?.startsWith(`/[framework]${path}`)} | ||
<li> | ||
<a | ||
class="demo-links-link d-inline-block rounded" | ||
class:active={isCurrent} | ||
aria-current={isCurrent ? 'page' : undefined} | ||
href="{$pathToRoot$}{$selectedFramework$}{path}" | ||
> | ||
{label} | ||
</a> | ||
</li> | ||
{/each} | ||
</ul> | ||
</li> | ||
{/each} | ||
</ul> | ||
</nav> | ||
</aside> | ||
<div> | ||
<slot /> | ||
</div> | ||
</div> |