Skip to content

Commit 1c54c67

Browse files
committed
Removed all linting error
1 parent 9a8e679 commit 1c54c67

File tree

4 files changed

+92
-133
lines changed

4 files changed

+92
-133
lines changed

components/CommunityEvents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const CommunityEvents = () => {
2828
</div>
2929
<div className='mt-10'>
3030
{!events || events.length === 0 ? (
31-
<div className='flex content-center justify-center'>
31+
<div className='flex place-content-center'>
3232
<Paragraph typeStyle={ParagraphTypeStyle.md} className='mx-auto mt-5 max-w-2xl'>
3333
No Events. Check back later!
3434
</Paragraph>

components/icons/Slack.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ export default function IconSlack({ className = '' }) {
88
return (
99
<svg
1010
className={className}
11-
stroke="currentColor"
12-
fill="none"
13-
viewBox="0 0 30 30"
14-
width="30px"
15-
height="30px"
16-
strokeWidth="2"
17-
xmlns="http://www.w3.org/2000/svg"
11+
stroke='currentColor'
12+
fill='none'
13+
viewBox='0 0 30 30'
14+
width='30px'
15+
height='30px'
16+
strokeWidth='2'
17+
xmlns='http://www.w3.org/2000/svg'
1818
>
19-
<path d="M11.5 3A2.5 2.5 0 0 0 9 5.5a2.5 2.5 0 0 0 2.5 2.5H14V5.5A2.5 2.5 0 0 0 11.5 3Z" />
20-
<path d="M17.5 3A2.5 2.5 0 0 0 15 5.5v6a2.5 2.5 0 0 0 5 0v-6A2.5 2.5 0 0 0 17.5 3Z" />
21-
<path d="M5.5 9A2.5 2.5 0 0 0 3 11.5a2.5 2.5 0 0 0 2.5 2.5h6a2.5 2.5 0 0 0 0-5h-6Z" />
22-
<path d="M23.5 9A2.5 2.5 0 0 0 21 11.5V14h2.5a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 23.5 9Z" />
23-
<path d="M5.5 15A2.5 2.5 0 0 0 3 17.5a2.5 2.5 0 0 0 2.5 2.5A2.5 2.5 0 0 0 8 17.5V15H5.5Z" />
24-
<path d="M11.5 15A2.5 2.5 0 0 0 9 17.5v6a2.5 2.5 0 0 0 5 0v-6A2.5 2.5 0 0 0 11.5 15Z" />
25-
<path d="M17.5 15A2.5 2.5 0 0 0 15 17.5a2.5 2.5 0 0 0 2.5 2.5h6a2.5 2.5 0 0 0 0-5h-6Z" />
26-
<path d="M15 21v2.5a2.5 2.5 0 0 0 5 0 2.5 2.5 0 0 0-2.5-2.5H15Z" />
19+
<path d='M11.5 3A2.5 2.5 0 0 0 9 5.5a2.5 2.5 0 0 0 2.5 2.5H14V5.5A2.5 2.5 0 0 0 11.5 3Z' />
20+
<path d='M17.5 3A2.5 2.5 0 0 0 15 5.5v6a2.5 2.5 0 0 0 5 0v-6A2.5 2.5 0 0 0 17.5 3Z' />
21+
<path d='M5.5 9A2.5 2.5 0 0 0 3 11.5a2.5 2.5 0 0 0 2.5 2.5h6a2.5 2.5 0 0 0 0-5h-6Z' />
22+
<path d='M23.5 9A2.5 2.5 0 0 0 21 11.5V14h2.5a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 23.5 9Z' />
23+
<path d='M5.5 15A2.5 2.5 0 0 0 3 17.5a2.5 2.5 0 0 0 2.5 2.5A2.5 2.5 0 0 0 8 17.5V15H5.5Z' />
24+
<path d='M11.5 15A2.5 2.5 0 0 0 9 17.5v6a2.5 2.5 0 0 0 5 0v-6A2.5 2.5 0 0 0 11.5 15Z' />
25+
<path d='M17.5 15A2.5 2.5 0 0 0 15 17.5a2.5 2.5 0 0 0 2.5 2.5h6a2.5 2.5 0 0 0 0-5h-6Z' />
26+
<path d='M15 21v2.5a2.5 2.5 0 0 0 5 0 2.5 2.5 0 0 0-2.5-2.5H15Z' />
2727
</svg>
2828
);
2929
}

pages/casestudies/index.tsx

Lines changed: 40 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -27,118 +27,88 @@ interface Adopter {
2727
* @description Renders the Case Studies page.
2828
*/
2929
export default function Casestudies() {
30-
const description: string =
31-
'Learn about different case studies based on AsyncAPI spec and related tools.';
30+
const description: string = 'Learn about different case studies based on AsyncAPI spec and related tools.';
3231
const image: string = '/img/social/case-studies.webp';
3332
const title: string = 'Case Studies';
3433

3534
return (
3635
<GenericLayout title={title} description={description} image={image} wide>
3736
<div
38-
className="relative py-10 px-4 mx-auto max-w-xl sm:px-6 lg:px-8 lg:max-w-screen-xl"
39-
data-testid="CaseStudy-main"
37+
className='relative mx-auto max-w-xl px-4 py-10 sm:px-6 lg:max-w-screen-xl lg:px-8'
38+
data-testid='CaseStudy-main'
4039
>
41-
<div className="grid lg:grid-cols-9 lg:gap-8 lg:text-center">
42-
<div className="col-span-5 col-start-3">
40+
<div className='grid lg:grid-cols-9 lg:gap-8 lg:text-center'>
41+
<div className='col-span-5 col-start-3'>
4342
<Heading level={HeadingLevel.h1} typeStyle={HeadingTypeStyle.lg}>
4443
{title}
4544
</Heading>
46-
<Paragraph
47-
typeStyle={ParagraphTypeStyle.md}
48-
className="my-4 max-w-4xl"
49-
>
50-
The best way to learn how to use AsyncAPI is not only through
51-
documentation that usually is focused on recommendations and best
52-
practices. It is also good to confront with real-life case studies
53-
that explain how people really use AsyncAPI and what are their
54-
flows.
45+
<Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4 max-w-4xl'>
46+
The best way to learn how to use AsyncAPI is not only through documentation that usually is focused on
47+
recommendations and best practices. It is also good to confront with real-life case studies that explain
48+
how people really use AsyncAPI and what are their flows.
5549
</Paragraph>
56-
<Paragraph
57-
typeStyle={ParagraphTypeStyle.md}
58-
className="my-4 max-w-4xl"
59-
>
60-
Feel free to submit your case study. We have a template for you.
61-
For more details
62-
<TextLink
63-
href="https://github.com/asyncapi/website/blob/master/README.md#case-studies"
64-
target="_blank"
65-
>
50+
<Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4 max-w-4xl'>
51+
Feel free to submit your case study. We have a template for you. For more details
52+
<TextLink href='https://github.com/asyncapi/website/blob/master/README.md#case-studies' target='_blank'>
6653
read our FAQ
6754
</TextLink>
6855
.
6956
</Paragraph>
7057
</div>
7158
</div>
72-
<div data-testid="CaseStudy-card">
59+
<div data-testid='CaseStudy-card'>
7360
<CaseStudyCard
7461
studies={CaseStudiesList as ICaseStudies}
75-
className="p-4 bg-white rounded-lg border border-gray-200 shadow-md transition-transform hover:shadow-lg hover:scale-105"
62+
className='rounded-lg border border-gray-200 bg-white p-4 shadow-md transition-transform hover:scale-105 hover:shadow-lg'
7663
/>
7764
</div>
7865

79-
<div className="adopters">
80-
<div className="grid mt-8 lg:grid-cols-9 lg:gap-8 lg:text-center">
81-
<div className="col-span-5 col-start-3">
66+
<div className='adopters'>
67+
<div className='mt-8 grid lg:grid-cols-9 lg:gap-8 lg:text-center'>
68+
<div className='col-span-5 col-start-3'>
8269
<Heading level={HeadingLevel.h1} typeStyle={HeadingTypeStyle.lg}>
8370
Adopters
8471
</Heading>
85-
<Paragraph
86-
typeStyle={ParagraphTypeStyle.md}
87-
className="my-4 max-w-4xl"
88-
>
89-
Check out how different companies use AsyncAPI and what problems
90-
they solve.
72+
<Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4 max-w-4xl'>
73+
Check out how different companies use AsyncAPI and what problems they solve.
9174
</Paragraph>
92-
<Paragraph
93-
typeStyle={ParagraphTypeStyle.md}
94-
className="my-4 max-w-4xl"
95-
>
75+
<Paragraph typeStyle={ParagraphTypeStyle.md} className='my-4 max-w-4xl'>
9676
Feel free to{' '}
97-
<a
98-
className="underline"
99-
href="https://github.com/asyncapi/website/blob/master/config/adopters.yml"
100-
>
77+
<a className='underline' href='https://github.com/asyncapi/website/blob/master/config/adopters.yml'>
10178
submit a pull request
10279
</a>{' '}
103-
with information about how your company uses AsyncAPI. We know
104-
that writing an official case study might be time consuming and
105-
requires too much internal paper work. Let&apos;s make sure we
106-
can at least capture a use case that is already a great learning
107-
information for the community.
80+
with information about how your company uses AsyncAPI. We know that writing an official case study might
81+
be time consuming and requires too much internal paper work. Let&apos;s make sure we can at least
82+
capture a use case that is already a great learning information for the community.
10883
</Paragraph>
10984
</div>
11085
</div>
11186
</div>
11287

11388
<center>
114-
<div className="overflow-x-auto">
115-
<table className="my-8 w-full max-w-full border border-collapse">
89+
<div className='overflow-x-auto'>
90+
<table className='my-8 w-full max-w-full border-collapse border'>
11691
<thead>
11792
<tr>
118-
<th className="p-2 font-bold border">Company name</th>
119-
<th className="p-2 font-bold border-2">Use Case</th>
120-
<th className="p-2 font-bold border-2">Resources</th>
93+
<th className='border p-2 font-bold'>Company name</th>
94+
<th className='border-2 p-2 font-bold'>Use Case</th>
95+
<th className='border-2 p-2 font-bold'>Resources</th>
12196
</tr>
12297
</thead>
12398
<tbody>
12499
{AdoptersList.map((entry: Adopter, index: number) => (
125-
<tr key={index} data-testid="Adopters">
126-
<td className="p-2 border-2">{entry.companyName}</td>
127-
<td className="p-2 border-2">{entry.useCase}</td>
128-
<td className="p-2 border-2">
100+
<tr key={index} data-testid='Adopters'>
101+
<td className='border-2 p-2'>{entry.companyName}</td>
102+
<td className='border-2 p-2'>{entry.useCase}</td>
103+
<td className='border-2 p-2'>
129104
<ul>
130-
{entry.resources.map(
131-
(resource: Resource, resourceIndex: number) => (
132-
<li className="p-2" key={resourceIndex}>
133-
<a
134-
className="text-cyan-500 underline"
135-
href={resource.link}
136-
>
137-
{resource.title}
138-
</a>
139-
</li>
140-
),
141-
)}
105+
{entry.resources.map((resource: Resource, resourceIndex: number) => (
106+
<li className='p-2' key={resourceIndex}>
107+
<a className='text-cyan-500 underline' href={resource.link}>
108+
{resource.title}
109+
</a>
110+
</li>
111+
))}
142112
</ul>
143113
</td>
144114
</tr>

pages/community/index.tsx

Lines changed: 36 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,86 @@
1-
import type moment from 'moment';
21
import React from 'react';
32

43
import { CardType } from '@/types/components/community/CardPropsType';
5-
import { HeadingLevel, HeadingTypeStyle } from '@/types/typography/Heading';
64

75
import Card from '../../components/community/Card';
86
import Header from '../../components/community/Header';
97
import Hero from '../../components/community/Hero';
108
import HomeCards from '../../components/community/HomeCard';
119
import GenericLayout from '../../components/layout/GenericLayout';
1210
import NewsletterSubscribe from '../../components/NewsletterSubscribe';
13-
import Heading from '../../components/typography/Heading';
14-
import eventsData from '../../config/meetings.json';
15-
import { getEvents } from '../../utils/staticHelpers';
16-
17-
interface Event {
18-
title: string;
19-
date: moment.Moment;
20-
url: string;
21-
}
2211

12+
/**
13+
* @description This component displays the Community Index Page.
14+
*/
2315
export default function CommunityIndexPage() {
2416
const image = '/img/social/community.webp';
2517

2618
return (
2719
<GenericLayout
28-
title="AsyncAPI Community"
29-
description="Join 10k+ developers, designers, and technical writers from all over the world."
20+
title='AsyncAPI Community'
21+
description='Join 10k+ developers, designers, and technical writers from all over the world.'
3022
image={image}
3123
wide
3224
>
33-
<div className="md:hidden mt-15">
25+
<div className='mt-15 md:hidden'>
3426
<Header />
3527
</div>
3628
<Hero />
3729

3830
{/* AsyncAPI Slack Section */}
39-
<div className="relative mt-16 size-full">
31+
<div className='relative mt-16 size-full'>
4032
<HomeCards
41-
headline="Join the Community"
42-
title="AsyncAPI Slack"
43-
description="AsyncAPI’s incredible community spans over 83 countries, where developers, designers, and technical writers collaborate and mentor others."
44-
btnText="Join AsyncAPI Slack"
45-
link="https://asyncapi.com/slack-invite"
46-
className="bg-channelCover"
33+
headline='Join the Community'
34+
title='AsyncAPI Slack'
35+
description='AsyncAPI’s incredible community spans over 83 countries, where developers, designers, and technical writers collaborate and mentor others.'
36+
btnText='Join AsyncAPI Slack'
37+
link='https://asyncapi.com/slack-invite'
38+
className='bg-channelCover'
4739
/>
4840
</div>
4941

5042
{/* Community Goals Section */}
51-
<div className="flex flex-col justify-center mt-20 sm:flex-row">
43+
<div className='mt-20 flex flex-col justify-center sm:flex-row'>
5244
<Card
5345
type={CardType.SMALL}
54-
tagline="Goals"
55-
icon="🎯"
56-
heading="2024 AsyncAPI Community Goals"
57-
description="See what we’ve achieved so far and what’s next for the community."
58-
bg="bg-white"
59-
link="https://github.com/orgs/asyncapi/discussions/948"
46+
tagline='Goals'
47+
icon='🎯'
48+
heading='2024 AsyncAPI Community Goals'
49+
description='See what we’ve achieved so far and what’s next for the community.'
50+
bg='bg-white'
51+
link='https://github.com/orgs/asyncapi/discussions/948'
6052
/>
6153
</div>
6254

6355
{/* TSC Members Section */}
64-
<div className="flex justify-center mt-10">
56+
<div className='mt-10 flex justify-center'>
6557
<Card
6658
type={CardType.SMALL}
67-
tagline="TSC"
68-
icon="🚀"
69-
heading="Meet the TSC Members"
70-
description="Get to know the people redefining AsyncAPI’s future."
71-
bg="bg-white"
72-
link="/community/tsc"
59+
tagline='TSC'
60+
icon='🚀'
61+
heading='Meet the TSC Members'
62+
description='Get to know the people redefining AsyncAPI’s future.'
63+
bg='bg-white'
64+
link='/community/tsc'
7365
/>
7466
</div>
7567

7668
{/* Finance Section */}
77-
<div className="flex justify-center mt-10">
78-
<div className="p-8 m-5 w-full max-w-6xl bg-gray-100 rounded-lg shadow-md">
69+
<div className='mt-10 flex justify-center'>
70+
<div className='m-5 w-full max-w-6xl rounded-lg bg-gray-100 p-8 shadow-md'>
7971
<Card
8072
type={CardType.SMALL}
81-
tagline="Finance"
82-
icon="💰"
83-
heading="Track Initiative Spending"
84-
description="See our budget breakdown and financial transparency report."
85-
bg="bg-white"
86-
link="/finance"
73+
tagline='Finance'
74+
icon='💰'
75+
heading='Track Initiative Spending'
76+
description='See our budget breakdown and financial transparency report.'
77+
bg='bg-white'
78+
link='/finance'
8779
/>
8880
</div>
8981
</div>
9082

91-
<div
92-
className="py-12 mt-8 rounded-lg md:mt-20 bg-dark"
93-
data-testid="CommunityCard-subscribe"
94-
>
83+
<div className='mt-8 rounded-lg bg-dark py-12 md:mt-20' data-testid='CommunityCard-subscribe'>
9584
<NewsletterSubscribe dark />
9685
</div>
9786
</GenericLayout>

0 commit comments

Comments
 (0)