Skip to content

Frigade sponsorship #1087

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

Merged
merged 3 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ Please check our [troubleshooting section](https://react-tooltip.com/docs/troubl
If you can't find your problem here, make sure there isn't [an open issue](https://github.com/ReactTooltip/react-tooltip/issues) already covering it.
If there isn't, feel free to [submit a new issue](https://github.com/ReactTooltip/react-tooltip/issues/new/choose).

## Sponsors

<a href="https://frigade.com/?source=react-tooltip">
<img alt="Frigade" style="height: 250px" src="docs/static/img/sponsors/frigade.png" />
</a>

React Tooltip is proud to be sponsored by [Frigade](https://frigade.com/?source=react-tooltip), a developer tool for building better product onboarding: guided tours, getting started checklists, announcements, etc.

## Article

[How I insert sass into react component](https://medium.com/@wwayne_me/how-i-insert-sass-into-my-npm-react-component-b46b9811c226#.gi4hxu44a)
Expand Down
16 changes: 16 additions & 0 deletions docs/src/components/AdsContainer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* eslint-disable import/no-unresolved */
import React from 'react'
import AdsContainerElement from '@site/src/components/AdsContainerElement'
import BannerFrigade from '@site/src/components/BannerFrigade'
import './styles.css'

const AdsContainer = () => {
return (
<div className="fixed">
<BannerFrigade />
<AdsContainerElement />
</div>
)
}

export default AdsContainer
3 changes: 3 additions & 0 deletions docs/src/components/AdsContainer/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.fixed {
position: fixed;
}
1 change: 0 additions & 1 deletion docs/src/components/AdsContainerElement/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.carbon-ads {
position: fixed;
display: grid;
row-gap: 16px;
}
Expand Down
21 changes: 21 additions & 0 deletions docs/src/components/BannerFrigade/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* eslint-disable import/no-unresolved */
import React from 'react'
// @ts-ignore
import LogoFrigade from '@site/static/img/sponsors/frigade.png'

const BannerFrigade = () => {
return (
<div className="sponsor-frigade">
<a
href="https://frigade.com/?source=react-tooltip"
title="Frigade"
target="_blank"
rel="noreferrer"
>
<img src={LogoFrigade} alt="Frigade" />
</a>
</div>
)
}

export default BannerFrigade
28 changes: 27 additions & 1 deletion docs/src/components/HomepageSponsored/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react/require-default-props */
/* eslint-disable import/no-unresolved */
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable global-require */
Expand All @@ -7,7 +8,9 @@ import styles from './styles.module.css'

type FeatureItem = {
title: string
Svg: React.ComponentType<React.ComponentProps<'svg'>>
Svg?: React.ComponentType<React.ComponentProps<'svg'>>
// eslint-disable-next-line @typescript-eslint/no-explicit-any, react/no-unused-prop-types
src?: any
link: string
}

Expand All @@ -24,6 +27,14 @@ const FeatureList: FeatureItem[] = [
},
]

const SponsorList: FeatureItem[] = [
{
title: 'Frigade',
src: require('@site/static/img/sponsors/frigade.png').default,
link: 'https://frigade.com/?source=react-tooltip',
},
]

function Feature({ title, Svg, link }: FeatureItem) {
return (
<div className={clsx('col col--6')}>
Expand All @@ -39,6 +50,21 @@ function Feature({ title, Svg, link }: FeatureItem) {
export default function HomepageSponsored(): JSX.Element {
return (
<section className={styles.features}>
<div className="container">
<h3 className={styles.sponsoredTitle}>Sponsored by</h3>
<div className="row">
{SponsorList.map(({ link, title, src }, idx) => (
// eslint-disable-next-line react/no-array-index-key
<div key={idx} className={clsx('col col--12')}>
<div className="text--center">
<a href={link} title={title} target="_blank" rel="noreferrer">
<img src={src} alt={title} width={480} />
</a>
</div>
</div>
))}
</div>
</div>
<div className="container">
<h3 className={styles.sponsoredTitle}>Powered by</h3>
<div className="row">
Expand Down
4 changes: 2 additions & 2 deletions docs/src/theme/TOC/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* eslint-disable import/no-unresolved */
import React from 'react'
import TOC from '@theme-original/TOC'
import AdsContainerElement from '@site/src/components/AdsContainerElement'
import AdsContainer from '@site/src/components/AdsContainer'

export default function TOCWrapper(props) {
return (
<>
<TOC {...props} />
<AdsContainerElement />
<AdsContainer />
{/* <ins
className="adsbygoogle"
style={{ display: 'block', position: 'fixed', width: '300px', height: '600px' }}
Expand Down
Binary file added docs/static/img/sponsors/frigade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.