Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added link to YT video to TSC page #1141

Merged
merged 10 commits into from
Dec 6, 2022
5 changes: 3 additions & 2 deletions components/typography/TextLink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from 'next/link'
import { twMerge } from 'tailwind-merge'
export default function TextLink({
href,
className,
Expand All @@ -7,7 +8,7 @@ export default function TextLink({
id
}) {

const classNames = `text-secondary-500 underline hover:text-gray-800 font-medium transition ease-in-out duration-300 ${className || ''}`
const classNames = twMerge(`text-secondary-500 underline hover:text-gray-800 font-medium transition ease-in-out duration-300 ${className || ''}`)

return (
<>
Expand All @@ -20,4 +21,4 @@ export default function TextLink({
</>
)

}
}
16 changes: 15 additions & 1 deletion pages/community/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import GenericLayout from "../../components/layout/GenericLayout";
import TSCMembersList from "../../config/TSC_MEMBERS.json";
import {sortBy} from 'lodash';
import NewsletterSubscribe from "../../components/NewsletterSubscribe";
import TextLink from '../../components/typography/TextLink';
import { twMerge } from "tailwind-merge";

function addAdditionalUserInfo(user) {
const userData = {
Expand Down Expand Up @@ -72,6 +74,11 @@ export default function TSC() {
can also build a great AsyncAPI-based project that we don't have
yet in our GitHub organization and donate it (we'll ask you to
stay as a maintainer).
Follow this
<TextLink href="https://github.com/asyncapi/community/blob/master/TSC_MEMBERSHIP.md" target="_blank" className={twMerge(`text-base font-normal text-blue-500 hover:text-sky-400 no-underline`)}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the twMerge function from file as it is not needed here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the PR according to the review

Link
</TextLink>
&nbsp;to know more!
</p>
</div>
<div>
Expand Down Expand Up @@ -225,7 +232,14 @@ function QuestionCard() {
src="/img/avatars/questionmark.webp"
className="mx-auto rounded-full h-20 w-20 xl:w-28 xl:h-28"
/>
<div className="my-4">Become a member!</div>
<div className="my-4">
Want to become a member?
Follow this
<TextLink href="https://github.com/asyncapi/community/blob/master/TSC_MEMBERSHIP.md" target="_blank" className={twMerge("text-base font-normal text-sky-600 hover:text-sky-400 no-underline")}>
Link
</TextLink>
&nbsp;to know more!
</div>
</li>
);
}
Expand Down