Skip to content

Commit

Permalink
refactor: frontend improvements (#655)
Browse files Browse the repository at this point in the history
* new commit for footer and navbar

* new commit for footer and navbar

* new commit for footer and navbar

* new commit for footer and navbar

* Update docusaurus.config.js

* new commit for navbar

* new commit for navbar

* new commit for navbar

* new updates

* new commit for navbar

* new for responsive navbar

* new for responsive navbar

* new for responsive navbar

* new for responsive navbar

* new for responsive navbar
  • Loading branch information
ajay-dhangar authored Oct 8, 2023
1 parent 5cbb85c commit e8c72d9
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 71 deletions.
136 changes: 68 additions & 68 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const config = {
},
gtag: {
trackingID: 'G-NY80BVQV8L',
},
},
googleAnalytics: {
trackingID: 'UA-119822493-4',
},
Expand Down Expand Up @@ -86,27 +86,27 @@ const config = {
// },
items: [
{
label: '📚 Tutorials',
html: '<span class="nav-emoji">📚</span> Tutorials',
to: '/tutorials/category/basic-topics',
activeBaseRegex: `/tutorials/`,
},
{
label: '📖 Solutions',
html: '<span class="nav-emoji">📖</span> Solutions',
to: '/solutions/category/0000---0099',
activeBaseRegex: `/solutions/`,
},
{
label: '🏷️ Tags',
html: '<span class="nav-emoji">🏷️</span> Tags',
to: '/solutions/tags/',
activeBaseRegex: `/solutions/tags/`,
},
{
label: '🏛️ Roadmap',
html: '<span class="nav-emoji">🏛️</span> Roadmap',
to: '/roadmap/',
activeBaseRegex: `/roadmap/`,
},
{
label: '🖥️ Templates',
html: '<span class="nav-emoji">🖥️</span> Templates',
to: '/templates/',
activeBaseRegex: `/templates/`,
},
Expand Down Expand Up @@ -211,70 +211,70 @@ const config = {
},
}),

plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'solutions',
path: 'solutions',
routeBasePath: 'solutions',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'tutorials',
path: 'tutorials',
routeBasePath: 'tutorials',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'roadmap',
path: 'roadmap',
routeBasePath: 'roadmap',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'solutions',
path: 'solutions',
routeBasePath: 'solutions',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'tutorials',
path: 'tutorials',
routeBasePath: 'tutorials',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'roadmap',
path: 'roadmap',
routeBasePath: 'roadmap',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],

[
'@docusaurus/plugin-content-docs',
{
id: 'templates',
path: 'templates',
routeBasePath: 'templates',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'templates',
path: 'templates',
routeBasePath: 'templates',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [math],
rehypePlugins: [katex],
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
editUrl:
'https://github.com/wingkwong/leetcode-the-hard-way/tree/main/',
},
],
],

};

module.exports = config;
12 changes: 10 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
background: var(--ifm-color-emphasis-200);
color: inherit;
}
.nav-emoji{
display: none;
}
}

.header-github-link:hover {
Expand All @@ -99,8 +102,7 @@ div[class^='announcementBar_'] {
border-bottom: 1px dotted #eeeeee;
font-weight: bold;
font-size: 18px;
height: 35px;
padding: 10px;
height: auto;
}

div[class^='announcementBar_'] a {
Expand Down Expand Up @@ -225,4 +227,10 @@ table, tr, td, th {

.hard {
color: rgb(255 45 85);
}

@media screen and (min-width: 1120px) {
.nav-emoji {
display: inline-block;
}
}
3 changes: 2 additions & 1 deletion src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@
.gitHubButtonWrapper {
display: none;
}
}
}

0 comments on commit e8c72d9

Please sign in to comment.