Skip to content

Commit

Permalink
feat: Add link to YouTube in navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbienias committed Jul 5, 2023
1 parent c1b6be4 commit 8860216
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ const config = {
navbar: {
logo: {
alt: "Logo",
src: "images/logo-black.svg",
srcDark: "images/logo-white.svg",
src: "images/codisity-logo-light.svg",
srcDark: "images/codisity-logo-dark.svg",
className: "navbar-logo",
},
items: [
Expand All @@ -93,6 +93,11 @@ const config = {
position: "left",
label: "100 Bugów JS",
},
{
href: "https://www.youtube.com/@codisity-pl?sub_confirmation=1",
position: "right",
html: "<div class='navbar-youtube-logo'>YouTube</div>",
},
{
to: "docs/tags",
position: "right",
Expand All @@ -102,8 +107,7 @@ const config = {
},
footer: {
style: "light",
links: [],
copyright: `Codisity © ${new Date().getFullYear()}, by <a href="https://bienias.dev" target="_blank" rel="noopener">Adrian Bienias</a>`,
copyright: `<div class="text-base">Codisity © ${new Date().getFullYear()}, by <a href="https://bienias.dev" target="_blank" rel="noopener">Adrian Bienias</a></div>`,
},
prism: {
theme: lightCodeTheme,
Expand Down
4 changes: 4 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
@apply w-28 ml-2;
}

.navbar-youtube-logo {
@apply w-20 text-transparent bg-contain bg-no-repeat bg-center bg-[url('/images/youtube-logo-light.svg')] dark:bg-[url('/images/youtube-logo-dark.svg')];
}

.video iframe {
@apply aspect-video w-full;
}
13 changes: 13 additions & 0 deletions static/images/codisity-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions static/images/codisity-logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8860216

Please sign in to comment.