Skip to content

Commit

Permalink
Refactor topbar and add discussions link
Browse files Browse the repository at this point in the history
  • Loading branch information
gucal committed Oct 9, 2023
1 parent 2821c97 commit 4d96f63
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
20 changes: 14 additions & 6 deletions src/app/showcase/layout/topbar/app.topbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,29 @@

<ul class="flex list-none m-0 p-0 gap-2 align-items-center ">
<li>
<a
href="http://github.com/primefaces/primeng"
class="flex p-link border-1 w-2rem h-2rem surface-border border-round surface-card align-items-center justify-content-center transition-all transition-duration-300 hover:border-primary"
>
<a href="https://github.com/primefaces/primeng" target="_blank" rel="noopener noreferrer"
class="flex px-link border-1 border-solid w-2rem h-2rem surface-border border-round surface-card align-items-center justify-content-center transition-all transition-duration-300 hover:border-primary"
>
<i class="pi pi-github text-700"></i>
</a>
</li>
<li>
<a href="https://discord.gg/gzKFYnpmCY" class="flex p-link border-1 w-2rem h-2rem surface-border border-round surface-card align-items-center justify-content-center transition-all transition-duration-300 hover:border-primary">
<a href="https://discord.gg/gzKFYnpmCY" target="_blank" rel="noopener noreferrer"
class="flex px-link border-1 border-solid w-2rem h-2rem surface-border border-round surface-card align-items-center justify-content-center transition-all transition-duration-300 hover:border-primary"
>
<i class="pi pi-discord text-700"></i>
</a>
</li>
<li>
<a href="https://github.com/orgs/primefaces/discussions" target="_blank" rel="noopener noreferrer"
class="flex px-link border-1 border-solid w-2rem h-2rem surface-border border-round surface-card align-items-center justify-content-center transition-all transition-duration-300 hover:border-primary"
>
<i class="pi pi-comments text-700"></i>
</a>
</li>
<li>
<button type="button" class="p-button flex border-1 w-2rem h-2rem p-0 align-items-center justify-content-center transition-all transition-duration-300 min-w-0" (click)="onConfigButtonClick($event)">
<i class="pi pi-cog"></i>
<i class="pi pi-palette"></i>
</button>
</li>
<li class="relative">
Expand Down
17 changes: 12 additions & 5 deletions src/app/showcase/pages/landing/landing.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<span>Designer</span>
</a>
</li>
<li class="mr-0 lg:mr-2">
<a href="/uikit">
<img src="https://primefaces.org/cdn/primeng/images/landing/uikit-icon.svg" alt="primevue designer" width="30" />
<span>UI Kit</span>
</a>
</li>
<li class="mr-0 lg:mr-2">
<a href="https://www.primefaces.org/store/templates.xhtml" target="_blank">
<img src="https://primefaces.org/cdn/primeng/images/landing/templates-icon.svg" width="34" height="30" alt="Primeng templates" />
Expand All @@ -43,21 +49,22 @@
</li>
</ol>
</nav>
<a href="https://github.com/primefaces/primeng" target="_blank" rel="noopener noreferrer"
class="linkbox p-0 header-button mr-2 flex align-items-center justify-content-center flex-shrink-0">
<a href="https://github.com/primefaces/primeng" target="_blank" rel="noopener noreferrer" class="linkbox p-0 header-button mr-1 md:mr-2 flex align-items-center justify-content-center flex-shrink-0">
<i class="pi pi-github"></i>
</a>
<a href="https://discord.gg/gzKFYnpmCY" target="_blank" rel="noopener noreferrer"
class="linkbox p-0 header-button mr-2 flex align-items-center justify-content-center flex-shrink-0">
<a href="https://discord.gg/gzKFYnpmCY" target="_blank" rel="noopener noreferrer" class="linkbox p-0 header-button mr-1 md:mr-2 flex align-items-center justify-content-center flex-shrink-0">
<i class="pi pi-discord"></i>
</a>
<a href="https://github.com/orgs/primefaces/discussions" target="_blank" rel="noopener noreferrer" class="linkbox p-0 header-button mr-1 md:mr-2 flex align-items-center justify-content-center flex-shrink-0">
<i class="pi pi-comments"></i>
</a>
<button type="button"
class="linkbox header-button inline-flex align-items-center justify-content-center"
(click)="toggleDarkMode()">
<i class="pi pi-{{ config.dark ? 'sun' : 'moon' }}"></i>
</button>
<button
class="linkbox header-button inline-flex align-items-center justify-content-center lg:hidden ml-2 menu-button"
class="linkbox header-button inline-flex align-items-center justify-content-center lg:hidden ml-1 md:ml-2 menu-button"
(click)="menuActive = !menuActive">
<i class="pi pi-bars"></i>
</button>
Expand Down

0 comments on commit 4d96f63

Please sign in to comment.