Skip to content

Commit 125fda7

Browse files
committed
docs: add Vercel attribution [ci skip]
1 parent 694e399 commit 125fda7

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ Created by [@levithomason][26] and an amazing community of [contributors][20].
122122

123123
Made possible only by [@jlukic][32] authoring [Semantic UI][5].
124124

125+
Blazing deployments by <a href="https://vercel.com/?utm_source=semantic-ui-react"><img height="12" width="14" src="https://github.com/Semantic-Org/Semantic-UI-React/raw/master/docs/public/vercel-logo.svg" /> Vercel</a>.
126+
125127
[1]: https://github.com/Semantic-Org/Semantic-UI-React/blob/master/.github/CONTRIBUTING.md
126128
[2]: https://react.semantic-ui.com/
127129
[3]: https://facebook.github.io/react/

docs/public/vercel-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/src/components/DocsLayout.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import AnchorJS from 'anchor-js'
22
import PropTypes from 'prop-types'
33
import React, { Component } from 'react'
44
import { Head, withRouter } from 'react-static'
5+
import { Grid } from 'semantic-ui-react'
56

67
import style from 'docs/src/Style'
78
import { scrollToAnchor } from 'docs/src/utils'
@@ -43,6 +44,10 @@ class DocsLayout extends Component {
4344

4445
render() {
4546
const { additionalTitle, children, sidebar, title } = this.props
47+
48+
const bottomColumnWidth = sidebar
49+
? { computer: 11, largeScreen: 12, widescreen: 12 }
50+
: { width: 16 }
4651
const mainStyle = sidebar ? style.sidebarMain : style.main
4752

4853
return (
@@ -53,7 +58,18 @@ class DocsLayout extends Component {
5358
{title}
5459
</title>
5560
</Head>
56-
<div style={mainStyle}>{children}</div>
61+
<div style={mainStyle}>
62+
{children}
63+
<Grid>
64+
<Grid.Column {...bottomColumnWidth} textAlign='center'>
65+
Blazing deployments by{' '}
66+
<a href='https://vercel.com/?utm_source=semantic-ui-react'>
67+
<img height='12' width='14' src='/vercel-logo.svg' /> Vercel
68+
</a>
69+
.
70+
</Grid.Column>
71+
</Grid>
72+
</div>
5773
</>
5874
)
5975
}

0 commit comments

Comments
 (0)