Skip to content

Commit

Permalink
demo: firt draft of landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasso committed Jul 28, 2023
1 parent 720d42c commit b2a033c
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## Introduction

AgnosUI is a powerful library of widgets designed specifically for the [CSS Bootstrap design](https://getbootstrap.com/). Inspired by the success of [ng-bootstrap](https://ng-bootstrap.github.io/#/home), 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 [Angular](https://angular.io/), [React](https://react.dev/), and [Svelte](https://svelte.dev/), AgnosUI allows you to effortlessly create consistent and visually appealing UI components across your projects.
AgnosUI is a powerful library of widgets designed specifically for the [CSS Bootstrap design](https://getbootstrap.com/). Inspired by the success of [ng-bootstrap](https://ng-bootstrap.github.io/), 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 [Angular](https://angular.io/), [React](https://react.dev/), and [Svelte](https://svelte.dev/), AgnosUI allows you to effortlessly create consistent and visually appealing UI components across your projects.

## Key Characteristics

Expand Down
14 changes: 14 additions & 0 deletions demo/src/resources/logo-angular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions demo/src/resources/logo-react.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions demo/src/resources/logo-svelte.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 4 additions & 37 deletions demo/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<script lang="ts">
import {page} from '$app/stores';
import {menu} from './navigation';
import 'bootstrap/dist/css/bootstrap.css';
import './styles.scss';
import {pathToRoot$, canonicalURL$} from '../lib/stores';
import {selectedFramework$} from '../lib/stores';
import Svg from '$lib/layout/Svg.svelte';
import github from 'bootstrap-icons/icons/github.svg?raw';
import twitter from 'bootstrap-icons/icons/twitter.svg?raw';
import 'bootstrap/dist/css/bootstrap.css';
import {canonicalURL$, pathToRoot$} from '../lib/stores';
import './styles.scss';
</script>

<svelte:head>
Expand All @@ -31,37 +28,7 @@
</nav>
<div class="demo-main">
<div class="container-xxl">
<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>
<slot />
</div>
</div>
</div>
Expand Down
50 changes: 49 additions & 1 deletion demo/src/routes/+page.svelte
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';

Check failure on line 4 in demo/src/routes/+page.svelte

View workflow job for this annotation

GitHub Actions / build / build

'angularLogo' is defined but never used
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>
38 changes: 38 additions & 0 deletions demo/src/routes/[framework]/+layout.svelte
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>

0 comments on commit b2a033c

Please sign in to comment.