Skip to content

Commit

Permalink
UI Update (#2619)
Browse files Browse the repository at this point in the history
* Draft

* Update
  • Loading branch information
Shan-Weaviate authored Sep 17, 2024
1 parent 651fce9 commit 49134f8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/Blog/BacktoBlog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// src/components/Blog/BacktoBlog.js
import React from 'react';
import Link from '@docusaurus/Link';
import styles from './styles.module.scss';


const BackToBlogHub = () => (

<Link to="/blog" className={styles.blogHome}>
← Back to Blogs
</Link>

);

export default BackToBlogHub;
10 changes: 10 additions & 0 deletions src/components/Blog/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.blogHome {
text-decoration: none;
font-size: 14px;
position: absolute;
display: block;
left: 32px;

top: 140px;
color: #525860;
}
13 changes: 13 additions & 0 deletions src/theme/BlogPostPage/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// src/theme/BlogPostPage/index.js
import React from 'react';
import OriginalBlogPostPage from '@theme-original/BlogPostPage';
import BackToBlogHub from '../../components/Blog/BacktoBlog';

export default function BlogPostPageWrapper(props) {
return (
<>
<BackToBlogHub />
<OriginalBlogPostPage {...props} />
</>
);
}

0 comments on commit 49134f8

Please sign in to comment.