Skip to content

Commit

Permalink
feat: cleanup hero (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts committed Mar 13, 2020
1 parent 838440b commit d0f40bc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
20 changes: 2 additions & 18 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ module.exports = {
{
docs: {
path: '../docs',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: require.resolve('./sidebars.js')
},
theme: {
Expand All @@ -23,21 +21,7 @@ module.exports = {
themeConfig: {
footer: {
copyright: 'Copyright © 2018 The Manael Authors.',
links: [
{
items: [
{
label: 'Introduction',
to: 'docs/introduction'
},
{
label: 'Installation',
to: 'docs/installation'
}
],
title: 'Docs'
}
],
links: [],
style: 'dark'
},
navbar: {
Expand All @@ -56,7 +40,7 @@ module.exports = {
}
],
logo: {
alt: '',
alt: 'Manael Logo',
src: 'img/manael.png'
},
title: 'Manael'
Expand Down
16 changes: 12 additions & 4 deletions website/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,22 @@ function Home() {
const { siteConfig = {} } = context
return (
<Layout description="Manael is a simple HTTP proxy for processing images.">
<header className={classnames('hero hero--primary', styles.heroBanner)}>
<header className={classnames('hero hero--dark', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<h1 className="hero__title">
<img
alt={siteConfig.title}
className={classnames('margin-vert--md', styles.heroBannerLogo)}
height={128}
src={useBaseUrl('img/logo.png')}
width={128}
/>
</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className={classnames(
'button button--secondary button--lg',
'button button--primary button--lg',
styles.getStarted
)}
to={useBaseUrl('docs/introduction')}
Expand All @@ -62,7 +70,7 @@ function Home() {
</header>
<main>
{features && features.length && (
<section className={styles.features}>
<section className={classnames('padding-vert--xl', styles.features)}>
<div className="container">
<div className="row">
{features.map((props, idx) => (
Expand Down
8 changes: 6 additions & 2 deletions website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
.heroBanner {
padding: 4rem 0;
padding: 6rem 0;
text-align: center;
position: relative;
overflow: hidden;
}

@media screen and (max-width: 966px) {
.heroBanner {
padding: 2rem;
padding: 4rem 2rem;
}
}

.heroBannerLogo {
border-radius: 6px;
}

.buttons {
display: flex;
align-items: center;
Expand Down
Binary file added website/static/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit d0f40bc

@vercel
Copy link

@vercel vercel bot commented on d0f40bc Mar 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.