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] Add monday.com to in-house ads #18598

Merged
merged 5 commits into from
Nov 27, 2019
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
14 changes: 10 additions & 4 deletions docs/src/modules/components/Ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getAdblock(classes, t) {

const disable = process.env.NODE_ENV !== 'production' && process.env.ENABLE_AD !== 'true';

const inHouses = [
const inHouseAds = [
{
name: 'scaffoldhub',
link: 'https://scaffoldhub.io/?partner=1',
Expand All @@ -69,6 +69,12 @@ const inHouses = [
description:
'<b>Material-UI for enterprise</b><br />Available in the Tidelift Subscription. Reduce risk, and improve code health.',
},
{
name: 'monday',
link: 'https://monday.com/partners/status-video?&utm_source=Partner&utm_campaign=MaterialUI',
img: '/static/in-house/monday.jpg',
description: 'Why use multiple tools to manage your projects? Meet monday.com',
},
];

function Ad(props) {
Expand Down Expand Up @@ -148,16 +154,16 @@ function Ad(props) {
if (adblock) {
minHeight = 'auto';

if (random >= 0.8) {
if (Math.random() >= 0.8) {
children = getAdblock(classes, t);
} else {
children = <AdInHouse ad={inHouses[Math.round((inHouses.length - 1) * random)]} />;
children = <AdInHouse ad={inHouseAds[Math.floor(inHouseAds.length * random)]} />;
}
}

if (!children) {
if (carbonOut || codeFundOut) {
children = <AdInHouse ad={inHouses[Math.round((inHouses.length - 1) * random)]} />;
children = <AdInHouse ad={inHouseAds[Math.floor(inHouseAds.length * random)]} />;
minHeight = 'auto';
} else if (random >= 0.55) {
children = <AdCodeFund />;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/HomeQuickWord.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const styles = theme => ({
function HomeQuickWord(props) {
const { classes } = props;
const t = useSelector(state => state.options.t);
const backer = backers[Math.round((backers.length - 1) * Math.random())];
const backer = backers[Math.floor(backers.length * Math.random())];

return (
<div className={classes.root}>
Expand Down
Binary file modified docs/static/blog/april-2019-update/responsive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/august-2019-update/typescript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/july-2019-update/vertical-tabs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/june-2019-update/rating.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/material-ui-v4-is-out/cookbook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/material-ui-v4-is-out/demo3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/material-ui-v4-is-out/font-size.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/material-ui-v4-is-out/layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/material-ui-v4-is-out/switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/may-2019-update/slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/blog/september-2019-update/multiselect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/brand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/images/showcase/quintoandar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/images/templates/blog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/images/templates/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/images/templates/sign-in-side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/in-house/monday.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/in-house/tidelift.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/static/themes/paperbase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.