Skip to content

Commit

Permalink
[docs] Add monday.com to in-house ads (mui#18598)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes authored and oliviertassinari committed Nov 27, 2019
1 parent 84ac5d1 commit 7a329c5
Show file tree
Hide file tree
Showing 21 changed files with 11 additions and 5 deletions.
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.

0 comments on commit 7a329c5

Please sign in to comment.