@@ -27,118 +27,88 @@ interface Adopter {
27
27
* @description Renders the Case Studies page.
28
28
*/
29
29
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.' ;
32
31
const image : string = '/img/social/case-studies.webp' ;
33
32
const title : string = 'Case Studies' ;
34
33
35
34
return (
36
35
< GenericLayout title = { title } description = { description } image = { image } wide >
37
36
< 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'
40
39
>
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' >
43
42
< Heading level = { HeadingLevel . h1 } typeStyle = { HeadingTypeStyle . lg } >
44
43
{ title }
45
44
</ 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.
55
49
</ 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' >
66
53
read our FAQ
67
54
</ TextLink >
68
55
.
69
56
</ Paragraph >
70
57
</ div >
71
58
</ div >
72
- < div data-testid = " CaseStudy-card" >
59
+ < div data-testid = ' CaseStudy-card' >
73
60
< CaseStudyCard
74
61
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'
76
63
/>
77
64
</ div >
78
65
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' >
82
69
< Heading level = { HeadingLevel . h1 } typeStyle = { HeadingTypeStyle . lg } >
83
70
Adopters
84
71
</ 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.
91
74
</ 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' >
96
76
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' >
101
78
submit a pull request
102
79
</ 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'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's make sure we can at least
82
+ capture a use case that is already a great learning information for the community.
108
83
</ Paragraph >
109
84
</ div >
110
85
</ div >
111
86
</ div >
112
87
113
88
< 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' >
116
91
< thead >
117
92
< 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 >
121
96
</ tr >
122
97
</ thead >
123
98
< tbody >
124
99
{ 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' >
129
104
< 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
+ ) ) }
142
112
</ ul >
143
113
</ td >
144
114
</ tr >
0 commit comments