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

docs: Update how to asyncapi document tutorial #1924

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
6ab6cc6
chore: update meetings.json and newsrooom_videos.json (#1799)
asyncapi-bot Jun 17, 2023
0b0ab18
feat: adding unit tests for typography component (#1793)
reachaadrika Jun 17, 2023
0e6fcab
feat: adding unit tests for docsCards and feature folders (#1763)
reachaadrika Jun 17, 2023
e1c31b6
feat: adding unit tests for community folder (#1761)
reachaadrika Jun 17, 2023
a4006fc
chore: update meetings.json and newsrooom_videos.json (#1800)
asyncapi-bot Jun 18, 2023
8bb6f91
feat: adding stylesheets to cypress components (#1802)
reachaadrika Jun 18, 2023
ebdcd3f
chore: adjust address for reply (#1807)
jonaslagoni Jun 20, 2023
75da4fb
docs(generator): update latest generator documentation (#1816)
asyncapi-bot Jun 21, 2023
03170b2
fix: sanitize code from the TOC (#1204)
Florence-Njeri Jun 21, 2023
adbae36
docs: add Florence-Njeri as a contributor for code (#1817)
allcontributors[bot] Jun 21, 2023
39314d9
chore: update meetings.json and newsrooom_videos.json (#1819)
asyncapi-bot Jun 22, 2023
0f4dfcc
docs(cli): update latest cli documentation (#1820)
asyncapi-bot Jun 22, 2023
4c5f359
chore: rm modelina files and folders (#1739)
anshgoyalevil Jun 22, 2023
ab09813
docs: add anshgoyalevil as a contributor for code (#1821)
allcontributors[bot] Jun 22, 2023
86ffbb2
docs(cli): update latest cli documentation (#1822)
asyncapi-bot Jun 22, 2023
8e441e2
ci: set output has been updated to use GITHUB_OUTPUT #1726 (#1727)
SumantxD Jun 22, 2023
065a066
docs: add SumantxD as a contributor for infra (#1823)
allcontributors[bot] Jun 22, 2023
e17401c
docs: add anshgoyalevil as a contributor for review (#1824)
allcontributors[bot] Jun 22, 2023
70d0a02
feat: update the banner to promote London CFP on the website (#1825)
thulieblack Jun 22, 2023
2da135b
chore: update meetings.json and newsrooom_videos.json (#1828)
asyncapi-bot Jun 23, 2023
ab63922
docs(community): update latest tsc members list (#1829)
asyncapi-bot Jun 23, 2023
7e27d1e
chore(deps): bump semver, @mdx-js/loader, next-mdx-remote, react-twit…
dependabot[bot] Jun 23, 2023
41c4fed
chore: update meetings.json and newsrooom_videos.json (#1833)
asyncapi-bot Jun 24, 2023
7b65a24
chore: update meetings.json and newsrooom_videos.json (#1834)
asyncapi-bot Jun 25, 2023
78b04c1
fix: reverted the mdx-js loader to "1.6.4" (#1838)
sambhavgupta0705 Jun 26, 2023
4b6f4e8
fix: refactor 404 page to remove duplicated conference info (#1840)
aryanas159 Jun 26, 2023
7fa7114
docs: add new bundler to tooling page (#1836)
udamir Jun 26, 2023
82b1f6b
chore: update meetings.json and newsrooom_videos.json (#1844)
asyncapi-bot Jun 27, 2023
1505d9b
docs(generator): update latest generator documentation (#1845)
asyncapi-bot Jun 27, 2023
f827ead
chore: update meetings.json and newsrooom_videos.json (#1847)
asyncapi-bot Jun 28, 2023
2781946
chore: new fragment for contributor questions section (#1678)
mihrab34 Jun 28, 2023
995dd69
docs(cli): update latest cli documentation (#1849)
asyncapi-bot Jun 28, 2023
1231f00
docs(generator): update latest generator documentation (#1850)
asyncapi-bot Jun 28, 2023
e9d955b
docs(cli): update latest cli documentation (#1852)
asyncapi-bot Jun 28, 2023
8c064c7
chore: update meetings.json and newsrooom_videos.json (#1867)
asyncapi-bot Jun 29, 2023
0b4c3c1
ci: update of files from global .github repo (#1875)
asyncapi-bot Jun 29, 2023
8767958
chore: update meetings.json and newsrooom_videos.json (#1877)
asyncapi-bot Jun 30, 2023
a6835b3
chore: update meetings.json and newsrooom_videos.json (#1886)
asyncapi-bot Jul 2, 2023
8ea2fff
chore: update meetings.json and newsrooom_videos.json (#1892)
asyncapi-bot Jul 4, 2023
26f68bc
chore: update meetings.json and newsrooom_videos.json (#1893)
asyncapi-bot Jul 5, 2023
9f03e3e
docs(community): update latest tsc members list (#1895)
asyncapi-bot Jul 5, 2023
a25c3b7
docs(cli): update latest cli documentation (#1896)
asyncapi-bot Jul 5, 2023
ff50baa
refactor: update maintainers list, introduce isTscMember key, and rem…
14Richa Jul 5, 2023
d1af529
docs(community): update latest maintainers list (#1897)
asyncapi-bot Jul 5, 2023
d03d6cd
chore: update meetings.json and newsrooom_videos.json (#1898)
asyncapi-bot Jul 6, 2023
e5ec8a1
style: dynamic logo colors for brands (#1894)
Shriansh2002 Jul 6, 2023
4d7dbaa
docs: add Shriansh2002 as a contributor for code (#1902)
allcontributors[bot] Jul 6, 2023
48832ef
docs(cli): update latest cli documentation (#1903)
asyncapi-bot Jul 6, 2023
2cf4ae6
Remove mcturco from CO (#1904)
mcturco Jul 6, 2023
ee6fda9
chore: update meetings.json and newsrooom_videos.json (#1907)
asyncapi-bot Jul 7, 2023
5b7b28b
docs: Add how to create async api
Jul 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,43 @@
"contributions": [
"doc"
]
},
{
"login": "Florence-Njeri",
"name": "Florence Njeri",
"avatar_url": "https://avatars.githubusercontent.com/u/40742916?v=4",
"profile": "https://florence-njeri.github.io/NjeriPortfolio",
"contributions": [
"code"
]
},
{
"login": "anshgoyalevil",
"name": "Ansh Goyal",
"avatar_url": "https://avatars.githubusercontent.com/u/94157520?v=4",
"profile": "https://ansh.live",
"contributions": [
"code",
"review"
]
},
{
"login": "SumantxD",
"name": "Sumant.xD",
"avatar_url": "https://avatars.githubusercontent.com/u/65810424?v=4",
"profile": "https://github.com/SumantxD",
"contributions": [
"infra"
]
},
{
"login": "Shriansh2002",
"name": "Shriansh Agarwal",
"avatar_url": "https://avatars.githubusercontent.com/u/41548480?v=4",
"profile": "http://shrianshagarwal.in",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/help-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
repo: context.repo.repo,
body: `Hello, @${{ github.actor }}! 👋🏼

I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
I'm 🧞🧞🧞 Genie 🧞🧞🧞 from the magic lamp. Looks like somebody needs a hand!

At the moment the following comments are supported in pull requests:

- `/ready-to-merge` or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
- `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
- `/autoupdate` or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.`
- \`/ready-to-merge\` or \`/rtm\` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
- \`/do-not-merge\` or \`/dnm\` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
- \`/autoupdate\` or \`/au\` - This comment will add \`autoupdate\` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.`
})

create_help_comment_issue:
Expand All @@ -51,10 +51,10 @@ jobs:
repo: context.repo.repo,
body: `Hello, @${{ github.actor }}! 👋🏼

I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
I'm 🧞🧞🧞 Genie 🧞🧞🧞 from the magic lamp. Looks like somebody needs a hand!

At the moment the following comments are supported in issues:

- `/good-first-issue {js | ts | java | go | docs | design | ci-cd} ` or `/gfi {js | ts | java | go | docs | design | ci-cd} ` - label an issue as a `good first issue`.
example: `/gfi js` or `/good-first-issue ci-cd`
})
- \`/good-first-issue {js | ts | java | go | docs | design | ci-cd}\` or \`/gfi {js | ts | java | go | docs | design | ci-cd}\` - label an issue as a \`good first issue\`.
example: \`/gfi js\` or \`/good-first-issue ci-cd\``
})
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
)
id: should_run
name: Should Run
run: echo "::set-output name=shouldrun::true"
run: echo "shouldrun=true" >> $GITHUB_OUTPUT

- if: steps.should_run.outputs.shouldrun == 'true'
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
# For more details, read the following article on GitHub: https://help.github.com/articles/about-codeowners/.

# The default owners are automatically added as reviewers when you open a pull request unless different owners are specified in the file.
* @derberg @mcturco @akshatnema @magicmatatjahu @asyncapi-bot-eve
* @derberg @akshatnema @magicmatatjahu @asyncapi-bot-eve

# All .md files
*.md @alequetzalli @asyncapi-bot-eve

pages/blog/*.md @thulieblack @alequetzalli
pages/community/*.md @thulieblack @alequetzalli

README.md @alequetzalli @derberg @mcturco @akshatnema @magicmatatjahu @asyncapi-bot-eve
README.md @alequetzalli @derberg @akshatnema @magicmatatjahu @asyncapi-bot-eve
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-45-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-49-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

[![Netlify Status](https://api.netlify.com/api/v1/badges/b2137407-b765-46c4-95b5-a72d9b1592ab/deploy-status)](https://app.netlify.com/sites/asyncapi-website/deploys)
Expand Down Expand Up @@ -207,6 +207,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center" valign="top" width="14.28%"><a href="https://linkfree.eddiehub.io/rukundob451"><img src="https://avatars.githubusercontent.com/u/67878128?v=4?s=100" width="100px;" alt="Benjamin Rukundo"/><br /><sub><b>Benjamin Rukundo</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=rukundob451" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tthijm"><img src="https://avatars.githubusercontent.com/u/59415467?v=4?s=100" width="100px;" alt="tthijm"/><br /><sub><b>tthijm</b></sub></a><br /><a href="#infra-tthijm" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://cynthiapeter.com"><img src="https://avatars.githubusercontent.com/u/33583060?v=4?s=100" width="100px;" alt="Cynthia Peter"/><br /><sub><b>Cynthia Peter</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=CynthiaPeter" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://florence-njeri.github.io/NjeriPortfolio"><img src="https://avatars.githubusercontent.com/u/40742916?v=4?s=100" width="100px;" alt="Florence Njeri"/><br /><sub><b>Florence Njeri</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=Florence-Njeri" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://ansh.live"><img src="https://avatars.githubusercontent.com/u/94157520?v=4?s=100" width="100px;" alt="Ansh Goyal"/><br /><sub><b>Ansh Goyal</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=anshgoyalevil" title="Code">💻</a> <a href="https://github.com/asyncapi/website/pulls?q=is%3Apr+reviewed-by%3Aanshgoyalevil" title="Reviewed Pull Requests">👀</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SumantxD"><img src="https://avatars.githubusercontent.com/u/65810424?v=4?s=100" width="100px;" alt="Sumant.xD"/><br /><sub><b>Sumant.xD</b></sub></a><br /><a href="#infra-SumantxD" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://shrianshagarwal.in"><img src="https://avatars.githubusercontent.com/u/41548480?v=4?s=100" width="100px;" alt="Shriansh Agarwal"/><br /><sub><b>Shriansh Agarwal</b></sub></a><br /><a href="https://github.com/asyncapi/website/commits?author=Shriansh2002" title="Code">💻</a></td>
</tr>
</tbody>
</table>
Expand Down
23 changes: 23 additions & 0 deletions assets/docs/fragments/how-to-contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## How to contribute to AsyncAPI Docs

Did you know that you can contribute Docs to AsyncAPI as well? Code isn't the only way to contribute to OSS; Dev Docs are a **huge** help that benefit the entire OSS ecosystem. At AsyncAPI, we value Doc contributions as much as every other type of contribution. ❤️

To get started as a Docs contributor:

1. Familiarize yourself with our [project's Contribution Guide](https://github.com/asyncapi/community/blob/master/CONTRIBUTING.md) and our [Code of Conduct](https://github.com/asyncapi/.github/blob/master/CODE_OF_CONDUCT.md).

2. Head over to our Docs GH Board [here](https://github.com/orgs/asyncapi/projects/12).

3. Pick an issue you would like to contribute to and leave a comment introducing yourself. This is also the perfect place to leave any questions you may have on how to get started.

4. If there is no work done in that Docs issue yet, feel free to open a PR and get started!

### Tag me in your AsyncAPI Doc PRs

Do you have a documentation contributor question and you're wondering how to tag me into a GitHub discussion or PR? Never fear!

Tag me in your AsyncAPI Doc PRs or [GitHub Discussions](https://github.com/asyncapi/community/discussions/categories/docs) via my GitHub handle, [`/alequetzalli`](https://github.com/alequetzalli) 🐙.

### Talk to me

I want and need to listen 👂🏽 to all of your perspectives and ideas. Please don't be shy to express to me what you think needs to be documented first or what is missing. 📝 There's a lot of good work ahead, but **you** determine _our content roadmap_ because the OSS community needs should always come first.✨
2 changes: 1 addition & 1 deletion components/TOC.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function TOC({
href={`#${item.slug}`}
key={index}
>
{item.content}
{item.content.replaceAll('`', '')}
</a>
))
}
Expand Down
26 changes: 13 additions & 13 deletions components/campaigns/AnnoucementHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ import Heading from '../typography/Heading'
import Container from '../layout/Container'
import AnnouncementRemainingDays from './AnnouncementRamainingDays'

function shouldShowBanner() {
const month = new Date().getUTCMonth();
const year = new Date().getUTCFullYear();
//month=4 is May
if (year > 2023 || month !== 4) {
function shouldShowBanner(cfpDeadline) {
const currentDate = new Date(); // Get the current date
const deadline = new Date(cfpDeadline); // Convert the cfpDeadline string to a Date object

// Check if the current date is after the deadline
if (currentDate > deadline) {
return false;
}

return true;
}

export default function AnnouncementHero({ className = '', small = false, hideVideo = false }) {
//return null;

const showBanner = shouldShowBanner();
const cfpDeadline = '2023-07-28T06:00:00Z'
const showBanner = shouldShowBanner(cfpDeadline);
if (!showBanner) return null;

const cfpDeadline = '2023-05-31T06:00:00Z'

return (
<Container wide as="section" padding='' className='text-center'>
Expand All @@ -42,15 +42,15 @@ export default function AnnouncementHero({ className = '', small = false, hideVi
level="h3"
typeStyle="heading-sm"
>
Madrid Edition
London Edition
</Heading>
<Paragraph typeStyle="body-lg">
October, 2023 | Madrid, Spain
20th of September, 2023 | London, UK
</Paragraph>
<AnnouncementRemainingDays dateTime={cfpDeadline} eventName="the end for Call for Speakers." />
<AnnouncementRemainingDays dateTime={cfpDeadline} eventName="the end of Call for Speakers." />
<div className="mt-6 pb-2 space-x-2">
<Button
href="https://sessionize.com/aacot-madrid/"
href="https://conference.asyncapi.com/"
target="_blank"
text="Submit a session"
/>
Expand Down
10 changes: 5 additions & 5 deletions components/community/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ export default function SmallHomeCards({icon, tagline, taglineBg, type="large",
<div className="p-2 rounded-xl bg-gray-100 text-center w-min text-xs flex justify-between">
<span>{icon}</span> <span className="ml-[5px]">{tagline}</span>
</div>
<div className="mt-3">
<div className="mt-3" data-testid="Card-heading">
<Heading level="h1" typeStyle="heading-md">
{heading}
</Heading>
</div>
<div className="mt-2">
<div className="mt-2" data-testid="Card-desc">
<Paragraph
textColor={bg ? 'text-black' : 'text-gray-600'}
typeStyle="body-sm"
>
{description}
</Paragraph>
</div>
<div className="text-right w-full flex justify-end">
<div className="text-right w-full flex justify-end" data-testid="Card-icon">
<IconArrowUp className="w-[20px]" />
</div>
</div>
Expand All @@ -48,7 +48,7 @@ export default function SmallHomeCards({icon, tagline, taglineBg, type="large",
<span>{icon}</span> <span className="ml-[5px]">{tagline}</span>
</div>

<div className="mt-10">
<div className="mt-10" data-testid="Card-heading-lg">
<Heading
level="h1"
typeStyle="heading-lg"
Expand All @@ -57,7 +57,7 @@ export default function SmallHomeCards({icon, tagline, taglineBg, type="large",
{heading}
</Heading>
</div>
<div className="mt-6">
<div className="mt-6" data-testid="Card-desc-lg">
<Paragraph textColor={bg && 'text-gray-400'}>{description}</Paragraph>
</div>
<div className="mt-10">
Expand Down
9 changes: 5 additions & 4 deletions components/community/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,29 @@ import Button from '../buttons/Button';

export default function Header({className = ''}) {
return (
<div className="text-center flex justify-center flex-col items-center mt-10 md:mt-0">
<div className="text-center flex justify-center flex-col items-center mt-10 md:mt-0" data-testid="Header-hero-heading">
<Heading
className="countdown-text-gradient font-bold"
level="h6"
typeStyle="heading-xs"
>
AsyncAPI Community
</Heading>
<div className="mt-10">
<div className="mt-10" data-testid="Header-heading-1">
<Heading level="h1" typeStyle="heading-xl" className="">
<span className="title block md:-mt-1 leading-[3rem]">
Welcome to the
<br /> AsyncAPI Community
</span>
</Heading>
</div>
<div className="mt-5 w-5/6">
<div className="mt-5 w-5/6" data-testid="Header-heading-2">
<Heading
level="h2"
typeStyle="body-md"
textColor="text-gray-700"
className="text-slate-500 text-sm"

>
We're an OSS community that's passionate about AsyncAPI. Join us in
building the future of Event Driven APIs by asking questions,
Expand All @@ -39,7 +40,7 @@ export default function Header({className = ''}) {
text="AsyncAPI Discussions"
href="https://github.com/orgs/asyncapi/discussions"
target="_blank"
icon={<IconRocket className="w-5 h-5 -mb-1 ml-1" />}
icon={<IconRocket className="w-5 h-5 -mb-1 ml-1" data-testid="Header-IconRocket" />}
/>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions components/community/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ export default function Hero({ className = '' }) {
return (
<>
<div className="overflow-hidden orbits">
<div className="orbit-container">
<div id="first-orbit" className="orbit">
<div className="orbit-container" data-testid="orbit-div">
<div id="first-orbit" className="orbit" data-testid="Hero-first">
{orbitData[0].map((orbit) => (
<div key={orbit.id} className={orbit.id}>
<img src={orbit.img} alt={orbit.alt} className="orbit-img" />
<img src={orbit.img} alt={orbit.alt} className="orbit-img" data-testid="Hero-firstimg" />
</div>
))}
<div className="w-full absolute h-full flex justify-center z-40">
<Header />
</div>
</div>
<div id="second-orbit" className="orbit">
<div id="second-orbit" className="orbit" data-testid="Hero-second">
{orbitData[1].map((orbit) => (
<div key={orbit.id} className={orbit.id}>
<img src={orbit.img} alt={orbit.alt} />
<img src={orbit.img} alt={orbit.alt} data-testid="Hero-secondimg" />
</div>
))}
</div>
<div id="third-orbit" className="orbit">
<div id="third-orbit" className="orbit" data-testid="Hero-third">
{orbitData[2].map((orbit) => (
<div key={orbit.id} className={orbit.id}>
<img src={orbit.img} alt={orbit.alt} />
<img src={orbit.img} alt={orbit.alt} data-testid="Hero-thirdimg"/>
</div>
))}
</div>
Expand Down
9 changes: 5 additions & 4 deletions components/community/HomeCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ export default function HomeCards({headline, title, description, btnText, link,
return (
<div className="z-40 mt-20 bg-white w-full md:h-130 rounded-lg shadow-xl md:flex md:justify-between">
<div className="p-10 flex justify-between w-full md:w-2/5 h-auto flex-col text-center md:text-left">
<div>
<div data-testid="HomeCard-main">
<Heading
level="h2"
typeStyle="heading-md"
textColor="text-purple-300"

>
{headline}
</Heading>
</div>
<div>
<Heading level="h2" typeStyle="heading-lg" className="mt-10">
<div data-testid="HomeCard-title">
<Heading level="h2" typeStyle="heading-lg" className="mt-10" >
{title}
</Heading>
<Heading
Expand All @@ -27,7 +28,7 @@ export default function HomeCards({headline, title, description, btnText, link,
>
{description}
</Heading>
<div className="mt-10">
<div className="mt-10" data-testid="HomeCard-button">
<Button text={btnText} buttonSize="medium" href={link} />
</div>
</div>
Expand Down
12 changes: 7 additions & 5 deletions components/docs/DocsCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,30 @@ import { buckets } from '../data/buckets';

export function DocsCards() {
return (
<div className='grid gap-4 grid-cols-1 sm:grid-cols-2'>
<div className='grid gap-4 grid-cols-1 sm:grid-cols-2' data-testid="Docs-main-div" >
{buckets.map(card => (
<Card key={card.title} {...card} />

))}

</div>
);
}

function Card({ title, description, link, className, Icon }) {
return (
<Link href={link}>
<a href={link} className='cursor-pointer'>
<a href={link} className='cursor-pointer' data-testid="Docs-link">
<div className="h-full border border-gray-200 shadow-md hover:shadow-lg transition-all duration-300 ease-in-out rounded-lg p-6">
<div>
<div data-testid="Docs-div-contents">
<Heading
level="h3"
typeStyle="heading-sm-semibold"
className='pb-4 border-b border-gray-300'
>
<div className='flex flex-row items-center'>
<div className={`flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-lg ${className} text-gray-900 sm:h-12 sm:w-12`}>
<Icon className="h-6 w-6"/>
<div className={`flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-lg ${className} text-gray-900 sm:h-12 sm:w-12`} data-testid="Docs-icon">
<Icon className="h-6 w-6" />
</div>
<span className='ml-4'>{title}</span>
</div>
Expand Down
Loading