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
habubey committed Oct 9, 2023
1 parent 8ba7b30 commit c73f2cb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
20 changes: 17 additions & 3 deletions components/layout/topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,36 @@ export default function Topbar(props) {
<li>
<a
href="https://github.com/primefaces/primereact"
className="flex p-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"
target="_blank"
rel="noopener noreferrer"
className="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 className="pi pi-github text-700"></i>
</a>
</li>
<li>
<a
href="https://discord.gg/gzKFYnpmCY"
className="flex p-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"
target="_blank"
rel="noopener noreferrer"
className="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 className="pi pi-discord text-700"></i>
</a>
</li>
<li>
<a
href="https://github.com/orgs/primefaces/discussions"
target="_blank"
rel="noopener noreferrer"
className="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 className="pi pi-comments text-700"></i>
</a>
</li>
<li>
<button type="button" className="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" onClick={onConfigButtonClick}>
<i className="pi pi-cog"></i>
<i class="pi pi-palette"></i>
</button>
</li>

Expand Down
17 changes: 13 additions & 4 deletions pages/landing/headersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const HeaderSection = (props) => {
</li>
<li className="mr-0 lg:mr-2">
<a href="https://blocks.primereact.org">
<img src="https://primefaces.org/cdn/primereact/images/landing-new/blocks-icon.svg" alt="primereact templates" />
<img src="https://primefaces.org/cdn/primereact/images/landing-new/blocks-icon.svg" alt="primereact blocks" />
<span>Blocks</span>
</a>
</li>
Expand All @@ -77,6 +77,12 @@ const HeaderSection = (props) => {
<span>Designer</span>
</a>
</li>
<li className="mr-0 lg:mr-2">
<a href="https://primereact.org/uikit/">
<img src="https://primefaces.org/cdn/primereact/images/landing-new/uikit-icon.svg" alt="primereact designer" />
<span>UI Kit</span>
</a>
</li>
<li className="mr-0 lg:mr-2">
<a href="https://www.primefaces.org/store/templates.xhtml">
<img src="https://primefaces.org/cdn/primereact/images/landing-new/templates-icon.svg" alt="primereact templates" />
Expand All @@ -85,16 +91,19 @@ const HeaderSection = (props) => {
</li>
</ol>
</nav>
<a href="https://github.com/primefaces/primereact" rel="noopener noreferrer" className="linkbox p-0 header-button mr-2 flex align-items-center justify-content-center flex-shrink-0">
<a href="https://github.com/primefaces/primereact" rel="noopener noreferrer" target="_blank" className="linkbox p-0 header-button mr-1 md:mr-2 flex align-items-center justify-content-center flex-shrink-0">
<i className="pi pi-github"></i>
</a>
<a href="https://discord.gg/gzKFYnpmCY" rel="noopener noreferrer" className="linkbox p-0 header-button mr-2 flex align-items-center justify-content-center flex-shrink-0">
<a href="https://discord.gg/gzKFYnpmCY" rel="noopener noreferrer" target="_blank" className="linkbox p-0 header-button mr-1 md:mr-2 flex align-items-center justify-content-center flex-shrink-0">
<i className="pi pi-discord"></i>
</a>
<a href="https://github.com/orgs/primefaces/discussions" target="_blank" rel="noopener noreferrer" className="linkbox p-0 header-button mr-1 md:mr-2 flex align-items-center justify-content-center flex-shrink-0">
<i className="pi pi-comments"></i>
</a>
<button type="button" className="linkbox header-button inline-flex align-items-center justify-content-center" onClick={changeColorScheme}>
<i className={colorSchemeIcon}></i>
</button>
<button type="button" className="linkbox header-button inline-flex align-items-center justify-content-center lg:hidden ml-2 menu-button" onClick={() => setMenuActive(!menuActive)}>
<button type="button" className="linkbox header-button inline-flex align-items-center justify-content-center lg:hidden ml-1 md:ml-2 menu-button" onClick={() => setMenuActive(!menuActive)}>
<i className="pi pi-bars"></i>
</button>
</div>
Expand Down

0 comments on commit c73f2cb

Please sign in to comment.