Skip to content

Commit

Permalink
feat(branding): new branding
Browse files Browse the repository at this point in the history
  • Loading branch information
ExFlo authored and quentinderoubaix committed Jan 31, 2024
1 parent 9187e92 commit 5dd208e
Show file tree
Hide file tree
Showing 17 changed files with 3,053 additions and 3,591 deletions.
14 changes: 13 additions & 1 deletion angular/demo/src/agnosui-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 4 additions & 8 deletions common/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
@import '../node_modules/bootstrap/scss/variables';
@import '../node_modules/bootstrap/scss/mixins/breakpoints';

$light-background: #f3f5fa;
// $light-background: #e4c7ff;
$light-background: #f8eeff;

$gradient-top: #006dff;
$gradient-top: #26005a;
$gradient-bottom: #0097fe;
$gradient-text-top: $gradient-top;
$gradient-text-bottom: #254a64;

// $gradient-top: #bc0cf1;
// $gradient-bottom: #d40404;
// $gradient-text-top: #bc0cf1;
// $gradient-text-bottom: #d40404;
$gradient-text-bottom: #26005a;
32 changes: 29 additions & 3 deletions demo/src/lib/layout/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
<title>{getTitle(title, $selectedFramework$)}</title>
</svelte:head>

<header class="bg-light pt-4 px-4 px-lg-5 d-flex mb-4 align-items-center title" class:pb-5={tabs.length} class:pb-4={!tabs.length}>
<div class="row align-items-center w-100" class:pb-4={tabs.length}>
<h1 class="col-auto me-auto me-md-none mb-0 p-0 p-md-3 text-center text-md-start w-100">{title}</h1>
<header
class="au-header bg-light pt-3 px-4 px-lg-5 d-flex mb-4 align-items-center title"
class:rounded={!tabs.length}
class:rounded-top={tabs.length}
class:pb-5={tabs.length}
class:pb-3={!tabs.length}
>
<div class="row align-items-center w-100" class:pb-3={tabs.length}>
<h1 class="text-primary col-auto me-auto me-md-none mb-0 p-0 p-md-3 text-center text-md-start w-100">{title}</h1>
</div>
{#if tabs.length}
<ul class="nav-tabs px-4 px-lg-5 content-tabset justify-content-start nav" role="tablist">
Expand All @@ -35,3 +41,23 @@
</ul>
{/if}
</header>

<style lang="scss">
.au-header {
position: relative; // already because of title
&:before {
content: ' ';
display: block;
position: absolute;
background-image: url("data:image/svg+xml,%3Csvg width='191.25' height='191.22' enable-background='new 0 0 595.28 841.89' version='1.1' viewBox='0 0 191.25 191.22' xml:space='preserve' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m136.68 88.889 27.935 0.687c-1.118-12.791-5.735-24.55-12.874-34.393-31.886-5.798-60.51-0.785-60.51-0.785l2.277-27.81c-14.131 0.438-27.185 5.093-37.955 12.78-6.017 31.858-1.188 60.522-1.188 60.522l-27.817-2.476c0.319 12.909 4.16 24.915 10.61 35.139 31.456 7.829 60.355 4.656 60.355 4.656l-4.059 27.608c0.75 0.028 1.482 0.118 2.236 0.118 16.56 0 31.753-5.833 43.661-15.529 3.988-32.193-2.671-60.517-2.671-60.517z' fill='%239240CC'/%3E%3Cpath d='m151.74 55.183c11.332 2.063 23.061 5.451 34.073 10.964-21.637-59.963-90.122-66.147-90.122-66.147l-2.184 26.588c0.736-0.024 1.447-0.111 2.184-0.111 23.08 1e-3 43.474 11.34 56.049 28.706z' fill='%23FCE649'/%3E%3Cpath d='m151.74 55.183c-12.575-17.367-32.969-28.706-56.049-28.706-0.736 0-1.447 0.086-2.184 0.111l-2.277 27.81c0 1e-3 28.624-5.012 60.51 0.785z' fill='%23E9CF1C'/%3E%3Cpath d='m164.62 89.576c0.181 2.021 0.313 4.063 0.313 6.132 0 21.675-9.972 41.006-25.574 53.7-1.402 11.412-4.125 23.286-8.985 34.58 58.62-25.029 60.877-93.756 60.877-93.756z' fill='%23FCE649'/%3E%3Cpath d='m164.93 95.708c0-2.069-0.132-4.111-0.313-6.132l-27.935-0.687s6.658 28.324 2.673 60.519c15.604-12.694 25.575-32.025 25.575-53.7z' fill='%23E9CF1C'/%3E%3Cpath d='m37.163 132.56c-11.173-2.781-22.651-6.916-33.289-13.12 17.755 61.231 85.708 71.785 85.708 71.785l3.877-26.4c-23.736-0.758-44.415-13.43-56.296-32.265z' fill='%23FCE649'/%3E%3Cpath d='m37.163 132.56c11.881 18.835 32.56 31.507 56.296 32.264l4.059-27.608s-28.899 3.173-60.355-4.656z' fill='%23E9CF1C'/%3E%3Cpath d='m55.557 39.369c2.139-11.308 5.604-23.008 11.187-33.987-60.099 21.231-66.744 89.68-66.744 89.68l26.553 2.354c-0.014-0.573-0.083-1.132-0.083-1.708 0-23.255 11.502-43.781 29.087-56.339z' fill='%23FCE649'/%3E%3Cpath d='m55.557 39.369c-17.585 12.558-29.088 33.084-29.088 56.339 0 0.576 0.07 1.135 0.083 1.708l27.817 2.476c1e-3 -1e-3 -4.828-28.665 1.188-60.523z' fill='%23E9CF1C'/%3E%3C/svg%3E");
background-repeat: no-repeat;
width: 100%;
height: 100%;
opacity: 0.2;
background-size: initial;
background-position: 110% 138%;
left: 0;
top: 0;
}
}
</style>
3 changes: 1 addition & 2 deletions demo/src/lib/snippets/landing-page/LandingCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</script>

<div class="col-12 col-md-6 col-lg-4 mb-3">
<div class="card">
<div class="card bg-light">
<div class="row g-0">
{#if svg}
<div class="col-4 p-2">
Expand Down Expand Up @@ -41,6 +41,5 @@
.card {
height: 100%;
border: none;
background-color: transparent;
}
</style>
13 changes: 12 additions & 1 deletion demo/src/resources/agnosui-logo.svg
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.
23 changes: 14 additions & 9 deletions demo/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Svg from '$lib/layout/Svg.svelte';
import github from 'bootstrap-icons/icons/github.svg?raw';
import twitter from 'bootstrap-icons/icons/twitter-x.svg?raw';
import 'bootstrap/dist/css/bootstrap.css';
import './bs-customTheme.scss';
import {/*canonicalURL$,*/ pathToRoot$, routeLevel$} from '$lib/stores';
import './styles.scss';
import {beforeNavigate, onNavigate} from '$app/navigation';
Expand All @@ -13,6 +13,7 @@
import MainSection from '$lib/layout/MainSection.svelte';
import SideMenu from './menu/SideMenu.svelte';
import TOC from './menu/TOC.svelte';
import agnosUILogo from '$resources/agnosui-logo.svg?raw';
const onServiceWorkerUpdate = () => {
void updated.check();
Expand Down Expand Up @@ -51,30 +52,30 @@
-->

<div class="agnos-ui">
<nav class="demo-nav-top navbar navbar-dark bg-primary bg-gradient">
<div class="container-fluid">
<a class="navbar-brand" href={$pathToRoot$}> AgnosUI </a>
<nav class="demo-nav-top navbar">
<div class="container-xxl">
<a class="navbar-brand d-flex align-items-center" href={$pathToRoot$}><Svg svg={agnosUILogo} className="agnosui-logo-brand me-2" /> AgnosUI </a>
<div class="align-items-center d-none d-md-flex">
<div class="d-flex align-items-center"></div>
<a
class="nav-link text-white ms-3"
class="nav-link ms-3"
href="{$pathToRoot$}docs/angular/getting-started/installation"
class:active={$page.route.id?.startsWith('/docs/')}
aria-current={$page.route.id?.startsWith('/docs/') ? 'page' : undefined}>Documentation</a
>
<a
class="nav-link text-white ms-3"
class="nav-link ms-3"
href="{$pathToRoot$}blog/2024-01-12"
class:active={$page.route.id?.startsWith('/blog/')}
aria-current={$page.route.id?.startsWith('/blog/') ? 'page' : undefined}>Blog</a
>
<a class="nav-link text-white ms-3" href="https://github.com/AmadeusITGroup/AgnosUI" aria-label="link to GitHub repository" target="_blank">
<a class="nav-link ms-3" href="https://github.com/AmadeusITGroup/AgnosUI" aria-label="link to GitHub repository" target="_blank">
<Svg className="icon-24 align-middle" svg={github} />
</a>
<a class="nav-link text-white ms-3" href="https://twitter.com/AgnosUI" aria-label="link to twitter / x account" target="_blank">
<a class="nav-link ms-3" href="https://twitter.com/AgnosUI" aria-label="link to twitter / x account" target="_blank">
<Svg className="icon-24 align-middle" svg={twitter} />
</a>
<span class="ms-3 text-white">v{import.meta.env.AGNOSUI_VERSION}</span>
<span class="ms-3">v{import.meta.env.AGNOSUI_VERSION}</span>
</div>
<div class="d-block d-md-none">
<MobileMenu />
Expand Down Expand Up @@ -125,6 +126,10 @@
grid-template-rows: 60px auto 1fr;
}
:global(.agnosui-logo-brand) {
width: 25px;
}
.demo-mobile-menu {
grid-area: mobileMenu;
position: sticky;
Expand Down
Loading

0 comments on commit 5dd208e

Please sign in to comment.