1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

chore: add suvery link to docs

This commit is contained in:
Ivar Conradi Østhus 2021-01-26 09:46:56 +01:00
parent 9e31800bf4
commit da049865ee
5 changed files with 702 additions and 702 deletions

View File

@ -26,6 +26,9 @@
"api/admin/strategies": { "api/admin/strategies": {
"title": "/api/admin/strategies" "title": "/api/admin/strategies"
}, },
"api/admin/tags": {
"title": "/api/admin/tags"
},
"api/client/features": { "api/client/features": {
"title": "/api/client/features" "title": "/api/client/features"
}, },
@ -95,6 +98,9 @@
"securing_unleash": { "securing_unleash": {
"title": "Securing Unleash" "title": "Securing Unleash"
}, },
"tags": {
"title": "Tagging Features"
},
"unleash_context": { "unleash_context": {
"title": "Unleash Context" "title": "Unleash Context"
} }

View File

@ -18,5 +18,8 @@
"kind-of": "6.0.3", "kind-of": "6.0.3",
"highlight.js": "^10.4.1" "highlight.js": "^10.4.1"
}, },
"license": "Apache-2.0" "license": "Apache-2.0",
"dependencies": {
"highlight.js": "^10.4.1"
}
} }

View File

@ -27,17 +27,13 @@ function pageUrl(page, language) {
return siteConfig.baseUrl + (language ? `${language}/` : '') + page; return siteConfig.baseUrl + (language ? `${language}/` : '') + page;
} }
class Button extends React.Component { const Button = ({className = '', href, target, children}) => (
render() {
return (
<div className="pluginWrapper buttonWrapper"> <div className="pluginWrapper buttonWrapper">
<a className="button" href={this.props.href} target={this.props.target}> <a className={["button", className].join(' ')} href={href} target={target}>
{this.props.children} {children}
</a> </a>
</div> </div>
); );
}
}
Button.defaultProps = { Button.defaultProps = {
target: '_self', target: '_self',
@ -78,6 +74,7 @@ class HomeSplash extends React.Component {
return ( return (
<SplashContainer> <SplashContainer>
<div className="inner"> <div className="inner">
<Survey />
<ProjectTitle /> <ProjectTitle />
<a <a
className="github-button" className="github-button"
@ -89,8 +86,9 @@ class HomeSplash extends React.Component {
aria-label="Star this project on GitHub"> aria-label="Star this project on GitHub">
Star Star
</a> </a>
<FeatureCallout />
<PromoSection> <PromoSection>
<Button href={docUrl('getting_started.html', language)}>Getting Started</Button> <Button className="primary" href={docUrl('getting_started.html', language)}>Getting Started</Button>
<Button href="#try">Try It Out</Button> <Button href="#try">Try It Out</Button>
<Button href={siteConfig.repoUrl}>GitHub</Button> <Button href={siteConfig.repoUrl}>GitHub</Button>
</PromoSection> </PromoSection>
@ -112,7 +110,7 @@ const Block = props => (
); );
const FeatureCallout = () => ( const FeatureCallout = () => (
<div className="productShowcaseSection paddingBottom" style={{textAlign: 'center'}}> <div className="productShowcaseSection" style={{textAlign: 'center'}}>
<p> <p>
Unleash is a feature toggle system, that gives you a great overview of all feature toggles across Unleash is a feature toggle system, that gives you a great overview of all feature toggles across
all your applications and services. It comes with official client implementations for Java, Node.js, Go, Ruby, Python and .Net. all your applications and services. It comes with official client implementations for Java, Node.js, Go, Ruby, Python and .Net.
@ -124,10 +122,23 @@ const FeatureCallout = () => (
</div> </div>
); );
const Survey = () => (
<div className="productShowcaseSection">
<p className="alert alert-warning">
Support us in making Unleash even better by participating in this&nbsp;
<a href="https://docs.google.com/forms/d/e/1FAIpQLSeCM5RUG-r8x4iynYNAlge_RCI77NDg61t28rixV3BBgVra0w/viewform" target="_blank">
Unleash Open-Source survey.
</a>&nbsp;
By participating you will also have the chance to win a $25 Amazon gift card.
</p>
</div>
);
const SASSOffering = () => ( const SASSOffering = () => (
<div className="productShowcaseSection"> <div className="productShowcaseSection">
<p className="sassOffering"> <p className="alert alert-primary">
Unleash also comes in a enterprise edition with additional features and a hosted option (SaaS). Check out&nbsp; Unleash also comes in a enterprise edition with additional features and a hosted option. <br />
Check out&nbsp;
<a href="https://www.unleash-hosted.com/open-source">unleash-hosted.com</a> <a href="https://www.unleash-hosted.com/open-source">unleash-hosted.com</a>
</p> </p>
</div> </div>
@ -239,7 +250,6 @@ class Index extends React.Component {
<HomeSplash language={language} config={this.props.config} /> <HomeSplash language={language} config={this.props.config} />
<div className="mainContainer" style={{ paddingTop: 0 }}> <div className="mainContainer" style={{ paddingTop: 0 }}>
<FeatureCallout />
<UnleashClient /> <UnleashClient />
<TryOut /> <TryOut />
<ActivationStrategies /> <ActivationStrategies />

View File

@ -29,3 +29,50 @@ h2.projectTitle {
border-radius: 10px; border-radius: 10px;
border: 1px solid #21612e; border: 1px solid #21612e;
} }
.alert {
position: relative;
padding: 0.75rem 1.25rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: 0.25rem;
}
.alert-success {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
}
.alert-primary {
color: #004085;
background-color: #cce5ff;
border-color: #b8daff;
}
.alert-dark {
color: #1b1e21;
background-color: #d6d8d9;
border-color: #c6c8ca;
}
.alert-light {
color: #818182;
background-color: #fefefe;
border-color: #fdfdfe;
}
.alert-warning {
color: #856404;
background-color: #fff3cd;
border-color: #ffeeba;
}
.button.primary {
background: #3f51b5;
color: #fff;
}
.productShowcaseSection p {
max-width: 700px;
}

File diff suppressed because it is too large Load Diff