Skip to content

Commit 157b826

Browse files
fix reloading issue and kanvas twitter link and heading missing and format issues
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent f75ad16 commit 157b826

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/collections/handbook/connect-with-us/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Join us on our cloud native community's <a href="https://discuss.layer5.io">Disc
9797
Layer5 is dedicated to empowering engineers and supporting the open source community that create them. Learn more about Layer5 and connect with the community by following and engaging with us on our social media accounts.
9898

9999
<div>
100-
<p className="channels-para"><img className="channels-img" src={twitter_icon} alt="twitter" />&nbsp;&nbsp;<a href="https://x.com/layer5">@layer5</a>,&nbsp;<a href="https://x.com/mesheryio">@mesheryio</a>&nbsp;and&nbsp;<a href="https://x.com/kanvas-new">@kanvas-new</a></p>
100+
<p className="channels-para"><img className="channels-img" src={twitter_icon} alt="twitter" />&nbsp;&nbsp;<a href="https://x.com/layer5">@layer5</a>,&nbsp;<a href="https://x.com/mesheryio">@mesheryio</a>&nbsp;and&nbsp;<a href="https://x.com/kanvas_new">@kanvas_new</a></p>
101101
<p className="channels-para"><img className="channels-img" src={mail_icon} alt="mail" />&nbsp;&nbsp;<a href="mailto:community-managers@layer5.io">Connect with our community managers for any inquiries or support!</a></p>
102102
<p className="channels-para"><img className="channels-img" src={youtube_icon} alt="youtube" />&nbsp;&nbsp;<a href="https://www.youtube.com/Layer5io?sub_confirmation=1">Subscribe to Layer5 Youtube</a>,&nbsp;<a href="https://www.youtube.com/@mesheryio?sub_confirmation=1">Subscribe to Meshery Youtube</a></p>
103103
<p className="channels-para"><img className="channels-img" src={github_icon} alt="github" />&nbsp;&nbsp;<a href="https://github.com/layer5io">Discover our projects on GitHub</a></p>

src/collections/handbook/designer/index.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import Button from "../../../reusecore/Button";
1111
<h2 className="heading-top">UI/UX</h2>
1212

1313
The UI/UX badge is given to community members who contribute towards creating or improving the visual design or user flow of various aspects such as websites, flyers, promotions, Meshery UI, and more. This recognition is awarded as an appreciation of their efforts in enhancing the user experience. The badge serves as a symbol of their expertise in UI/UX design and acknowledges their valuable contribution to the community.
14-
We are always looking for ways to improve the user experience of our projects. If you have ideas for how to improve
15-
16-
the user experience of any of our projects, please share them with us.
14+
We are always looking for ways to improve the user experience of our projects. If you have ideas for how to improve the user experience of any of our projects, please share them with us.
1715

1816
## Where can you contribute?
1917

src/collections/handbook/github -organization/index.mdx renamed to src/collections/handbook/github-organization/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "GitHub Organization"
2+
title: "GitHub Organization Membership"
33
description: "Recognition of consistent contributors through GitHub organization invitations, outlining membership requirements, invitation process, and responsibilities."
44
type: Handbook
55
contents:

src/components/handbook-navigation/intra-page.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useEffect, useState } from "react";
2-
import { Link } from "gatsby";
32
import styled from "styled-components";
43

54
const JoinCommunityWrapper = styled.div`
@@ -54,25 +53,28 @@ const JoinCommunityWrapper = styled.div`
5453
`;
5554

5655
function IntraPage({ contents }) {
57-
const [intapath, setIntapath] = useState(null);
58-
useEffect(() => {
59-
const path = window.location.pathname;
60-
setIntapath(path);
61-
}, []);
56+
const handleClick = (e, link) => {
57+
e.preventDefault();
58+
const id = link.startsWith('#') ? link.substring(1) : link;
59+
const element = document.getElementById(id);
60+
61+
if (element) {
62+
element.scrollIntoView({ behavior: "smooth" });
63+
}
64+
};
6265

6366
return (
6467
<JoinCommunityWrapper>
6568
<div className="intra-page">
6669
<ul>
6770
{contents.map((x) => (
6871
<li key={x.id} className="list">
69-
<Link
70-
to={`${intapath}${x.link}`}
71-
key={x.id}
72-
activeClassName="active"
72+
<a
73+
href={x.link}
74+
onClick={(e) => handleClick(e, x.link)}
7375
>
7476
{x.text}
75-
</Link>
77+
</a>
7678
</li>
7779
))}
7880
</ul>

0 commit comments

Comments
 (0)