Skip to content

Commit

Permalink
Merge pull request #749 from appwrite/chore-remove-init-banner
Browse files Browse the repository at this point in the history
Remove the init banner and add discord banner
  • Loading branch information
christyjacob4 authored Mar 4, 2024
2 parents e1f42de + 2412e7a commit 3fe0e65
Showing 1 changed file with 18 additions and 54 deletions.
72 changes: 18 additions & 54 deletions src/lib/layouts/Main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -174,65 +174,29 @@
</button>
</div>
</section>
{#if !$page.route.id?.startsWith('/init')}
<div class="aw-top-banner-2 is-special-padding">
<a href="/init" class="u-block aw-top-banner-2-wrapper">
<div class="u-flex u-main-space-between u-cross-center u-gap-16">
<div class="u-flex-vertical u-gap-2">
<div class="u-flex u-cross-end u-gap-8">
<svg
role="img" aria-label="init"
xmlns="http://www.w3.org/2000/svg" width="37" height="16" viewBox="0 0 37 16" fill="none">
<g clip-path="url(#clip0_1872_66496)">
<path d="M27.5078 15.5355V13.7305H37.0764V15.5355H27.5078Z" fill="#FD366E"/>
<path d="M24.807 13.2219C23.0162 13.2219 21.8399 12.4158 21.8399 10.4705V5.86156H20.2422V4.039H21.9628V1.46289H23.9292V4.039H26.5276V5.86156H23.9292V10.453C23.9292 11.1014 24.1925 11.3818 24.8246 11.3818H26.4223V13.2219H24.807Z" fill="white"/>
<path d="M17.7937 2.61713C17.0387 2.61713 16.4769 2.05634 16.4769 1.32031C16.4769 0.601802 17.0387 0.0410156 17.7937 0.0410156C18.5486 0.0410156 19.1104 0.601802 19.1104 1.32031C19.1104 2.05634 18.5486 2.61713 17.7937 2.61713ZM16.7402 13.2195V5.85917H15.125V4.03662H18.812V13.2195H16.7402Z" fill="white"/>
<path d="M5.89844 13.2193V4.03641H7.97016V5.08789H8.12818C8.53199 4.3869 9.37472 3.80859 10.6037 3.80859C12.6228 3.80859 13.9044 5.31571 13.9044 7.20836V13.2193H11.8327V7.69905C11.8327 6.55995 11.0251 5.77135 9.97166 5.77135C8.83046 5.77135 7.97016 6.64758 7.97016 7.8042V13.2193H5.89844Z" fill="white"/>
<path d="M2.73507 2.61713C1.98012 2.61713 1.4183 2.05634 1.4183 1.32031C1.4183 0.601802 1.98012 0.0410156 2.73507 0.0410156C3.49002 0.0410156 4.05185 0.601802 4.05185 1.32031C4.05185 2.05634 3.49002 2.61713 2.73507 2.61713ZM1.68165 13.2195V5.85917H0.0664062V4.03662H3.75338V13.2195H1.68165Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_1872_66496">
<rect width="37" height="15.5789" fill="white"/>
</clipPath>
</defs>
</svg>
<h6 class="aw-sub-body-500 aw-u-color-text-accent-click" style="line-height:15px">join us for Day 4</h6>
</div>
<p class="aw-caption-500">New and updated runtimes announced</p>
</div>
<div class="u-flex-vertical u-gap-2">
<div class="aw-link u-flex u-cross-center">
<span class="aw-sub-body-400">Go to Init</span>
<span class="aw-icon-arrow-right" aria-hidden="true"></span>
</div>
</div>
</div>
</a>
</div>
{/if}
<header
class="aw-main-header is-special-padding theme-{resolvedTheme} is-transparent"
class:is-hidden={$isHeaderHidden}
>

<!-- <div class="aw-top-banner">-->
<!-- <div class="aw-top-banner-content aw-u-color-text-primary">-->
<!-- <a href="/discord" target="_blank" rel="noopener noreferrer">-->
<!-- <span class="aw-caption-500">We are having lots of fun on</span>-->
<!-- <span class="aw-icon-discord" aria-hidden="true" />-->
<!-- <span class="aw-caption-500">Discord. Come and join us!</span>-->
<!-- </a>-->
<!-- {#if browser}-->
<!-- <button-->
<!-- class="aw-top-banner-button"-->
<!-- aria-label="close discord message"-->
<!-- on:click={hideTopBanner}-->
<!-- >-->
<!-- <span class="aw-icon-close" aria-hidden="true" />-->
<!-- </button>-->
<!-- {/if}-->
<!-- </div>-->
<!-- </div>-->
<div class="aw-top-banner">
<div class="aw-top-banner-content aw-u-color-text-primary">
<a href="/discord" target="_blank" rel="noopener noreferrer">
<span class="aw-caption-500">We are having lots of fun on</span>
<span class="aw-icon-discord" aria-hidden="true" />
<span class="aw-caption-500">Discord. Come and join us!</span>
</a>
{#if browser}
<button
class="aw-top-banner-button"
aria-label="close discord message"
on:click={hideTopBanner}
>
<span class="aw-icon-close" aria-hidden="true" />
</button>
{/if}
</div>
</div>

<div class="aw-main-header-wrapper">
<div class="aw-main-header-start">
Expand Down

0 comments on commit 3fe0e65

Please sign in to comment.