Skip to content

Commit

Permalink
Merge branch 'master' into June-docs-report-blog
Browse files Browse the repository at this point in the history
  • Loading branch information
quetzalliwrites authored Jul 10, 2023
2 parents bdd95f7 + 4090841 commit 9eb7a2f
Show file tree
Hide file tree
Showing 23 changed files with 414 additions and 219 deletions.
4 changes: 2 additions & 2 deletions components/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Calendar({ className = '', size, text="text-left" }) {
</Heading>
<ul>
{getEvents(eventsData, size).map((event, index) => (
<li key={index}>
<li key={index} data-testid="Calendar-list-item">
<a
href={event.url}
className="flex-grow flex sm:items-center items-start flex-col sm:flex-row mb-1 mt-2"
Expand All @@ -40,7 +40,7 @@ export default function Calendar({ className = '', size, text="text-left" }) {
))}
</ul>
{eventsExist ?
<div className='pt-4'>
<div className='pt-4' data-testid="Calendar-button">
<GoogleCalendarButton
href={CALENDAR_URL}
text="View Calendar"
Expand Down
2 changes: 1 addition & 1 deletion components/Caption.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function Caption ({children}) {
return (
<p className="text-center text-xs text-gray-500 mt-2">
<p className="text-center text-xs text-gray-500 mt-2" data-testid="Caption-paragraph">
{children}
</p>
)
Expand Down
184 changes: 0 additions & 184 deletions components/Footer.js

This file was deleted.

2 changes: 1 addition & 1 deletion components/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Modal({
<div className="relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-4xl sm:p-6">
<div className="flex justify-between mb-6">
<h1 className="text-lg font-bold truncate mr-4">{title}</h1>
<button onClick={() => onModalClose()}>
<button onClick={() => onModalClose()} data-testid="Modal-close">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6">
<path strokeLinecap="round" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
Expand Down
118 changes: 118 additions & 0 deletions components/footer/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
import Link from "next/link"
import AsyncAPILogoLight from "../AsyncAPILogoLight"
import Heading from "../typography/Heading"
import { socialMediaLinks, initiativeLinks } from "./FooterList"

export default function Footer() {
return (
<footer className="bg-dark mt-12 margin: 0 auto">
<div className="max-w-screen-xl mx-auto py-4 sm:py-6 md:py-12 xl:py-16 px-3 overflow-hidden sm:px-6 lg:px-8 divide-y divide-cool-gray">
<nav className="py-4 sm:py-10 flex flex-wrap justify-between">

<div className="mr-14 w-full md:w-auto">
<div className="">
<Link href="/">
<a className="cursor-pointer" aria-label="AsyncAPI" data-testid="Footer-logo-link">
<AsyncAPILogoLight className="h-10 w-auto mt-3" />
</a>
</Link>
</div>
<div className="">
<Heading className="mt-12 mb-14 text-white" typeStyle="heading-sm-semibold">
Building the future of <br /> Event-Driven Architectures.
</Heading>
</div>
</div>

<div className="flex flex-col sm:flex-row">

<div className="flex">

<div className="px-0 lg:px-10 lg:ml-5 mb-5">
<div className="py-2">
<div className="text-white">
<Heading typeStyle="heading-sm-semibold">The Initiative</Heading>
</div>
</div>
<ul className="justify-center">
{initiativeLinks.map((link, index) => (
<li className="py-2" key={index} data-testid="Footer-initiative-links">
<Link href={link.url}>
<a className="text-base leading-6 text-cool-gray hover:text-white transition ease-in-out duration-300">{link.label}</a>
</Link>
</li>
))}
</ul>
</div>

<div className="px-14 sm:px-8 sm:ml-10 md:ml-5 mb-5">
<div className="py-2">
<div className="text-white">
<Heading typeStyle="heading-sm-semibold">News</Heading>
</div>
</div>
<ul className="justify-center">
{/* <li className="py-2">
<div className="text-base leading-6 text-cool-gray hover:text-white transition ease-in-out duration-300">
<Link href="">
<a>Press</a>
</Link>
</div>
</li> */}
<li className="py-2">
<div className="text-base leading-6 text-cool-gray hover:text-white transition ease-in-out duration-300">
<a href="mailto:[email protected]">
Email Us
</a>
</div>
</li>
</ul>
</div>

</div>

<div className="px-0 sm:px-10 sm:ml-5 mb-5" >
<div className="py-2 hidden sm:block">
<div className="mr-12 text-white">
<Heading typeStyle="heading-sm-semibold">Social</Heading>
</div>
</div>
<ul className="justify-start flex sm:flex-col" aria-label="AsyncAPI social media links">
{socialMediaLinks.map((link, index) => (
<li className="py-2 mr-3 sm:mr-0" key={index} data-testid="Footer-social-media-links">
<a href={link.url} target="_blank" rel="noopener noreferrer">
<div className="flex items-center text-cool-gray hover:text-white transition ease-in-out duration-300">
<span className="sr-only">{`Follow AsyncAPI on ${link.label}`}</span>
{link.icon}
<span className="absolute pl-8 pr-5 hidden sm:block">{link.label}</span>
</div>
</a>
</li>
))}
</ul>
</div>
</div>
</nav>

<div className="sm:flex justify-between xl:mt-20 py-8 sm:py-12" data-testid="Footer-content">
<div className="w-full sm:w-2/3">
<p className="text-left text-base leading-6 mb-3 text-cool-gray">
Made with <span className="font-mono text-secondary-500">:love:</span> by the AsyncAPI Initiative.
</p>
<p className="text-left text-sm leading-6 text-cool-gray w-full sm:w-2/3" data-testid="Footer-copyright">
Copyright &copy; AsyncAPI Project a Series of LF Projects, LLC.
For web site terms of use, trademark policy and general project policies please see <a href="https://lfprojects.org" className="text-secondary-500 hover:text-white transition ease-in-out duration-300 underline" target="_blank" rel="noopener noreferrer">https://lfprojects.org</a>
</p>
</div>
<div className="block mt-8 sm:mt-0">
<p className="block text-sm leading-6">
<a href="https://netlify.com" target="_blank" rel="noopener noreferrer">
<img src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg" className="inline" alt="Deploys by Netlify" />
</a>
</p>
</div>
</div>
</div>
</footer>
)
}
Loading

0 comments on commit 9eb7a2f

Please sign in to comment.