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: Restyle documentation landing page and community page #24393

Merged
merged 92 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
dfbd7dc
Restyled community page
thiagorossener May 3, 2023
904fb02
Restyled footer
thiagorossener May 3, 2023
816d3bd
Fixed sections spacing
thiagorossener May 3, 2023
7331637
Styled community page for mobile
thiagorossener May 3, 2023
3cae86d
Fixed newsletter section on large screen size
thiagorossener May 3, 2023
44ea6c0
Styled hero and overview
thiagorossener May 4, 2023
e8469ac
Styled slider section
thiagorossener May 5, 2023
9916eac
Styled mobile hero
thiagorossener May 8, 2023
0b67190
Fixed image paths
thiagorossener May 8, 2023
5d3bf38
Replaced newsletter embed URL
thiagorossener May 8, 2023
6085d04
Styled features for mobile
thiagorossener May 8, 2023
a94da29
Restyled key features section
thiagorossener May 8, 2023
a0f7d7e
Styled integrations section
thiagorossener May 8, 2023
4be1ee7
Fixed community page responsive layout
thiagorossener May 9, 2023
afa4cac
Styled navbar for desktop
thiagorossener May 9, 2023
c04779a
Styled menu for mobile
thiagorossener May 9, 2023
47b4b38
Added bugherd
thiagorossener May 10, 2023
b3e56ed
Updated feature images
thiagorossener May 16, 2023
cc38fa9
Replaced database logos
thiagorossener May 16, 2023
9c294fa
Updated copy
thiagorossener May 16, 2023
79ac5a5
Added link to community logos
thiagorossener May 16, 2023
88fd8bd
Adjusted applitools logo size
thiagorossener May 16, 2023
299133f
Fixed navbar positioning
thiagorossener May 16, 2023
5b0c1be
Added trademarks for Apache Superset
thiagorossener May 16, 2023
a279c9a
Improved new home page for mobile
thiagorossener May 16, 2023
35ada77
Improved community page for mobile
thiagorossener May 16, 2023
1872953
Added button hover
thiagorossener May 16, 2023
8693bfb
Replaced community icons
thiagorossener Jun 6, 2023
0d659ac
Replaced MySQL logo
thiagorossener Jun 6, 2023
af16de7
Added bold style to selected slider item
thiagorossener Jun 6, 2023
743ed2d
Replaced hero screenshot
thiagorossener Jun 6, 2023
1f4f14c
Added video to new home page
thiagorossener Jun 7, 2023
4dc6751
Fixed video path
thiagorossener Jun 7, 2023
2ee2960
Updated newsletter embeddable URL
thiagorossener Jun 7, 2023
38f2e6c
Replaced images
thiagorossener Jun 7, 2023
fce6a12
Replaced index with new home page
thiagorossener Jun 7, 2023
108108b
Fixed issue with light nav
thiagorossener Jun 7, 2023
0feef73
Improved carousel behavior
thiagorossener Jun 7, 2023
e2a04e1
Make video loop
thiagorossener Jun 7, 2023
c95240b
Changed carousel off state color
thiagorossener Jun 7, 2023
2ce9b26
Improved grid background quality
thiagorossener Jun 7, 2023
e131fb5
Updated embedded newsletter module URL
thiagorossener Jun 13, 2023
f94bc5d
Restyled community page
thiagorossener May 3, 2023
74374a0
Restyled footer
thiagorossener May 3, 2023
2168762
Fixed sections spacing
thiagorossener May 3, 2023
3a7b538
Styled community page for mobile
thiagorossener May 3, 2023
386b2f1
Fixed newsletter section on large screen size
thiagorossener May 3, 2023
63ce9fd
Styled hero and overview
thiagorossener May 4, 2023
574ecd7
Styled slider section
thiagorossener May 5, 2023
c1462df
Styled mobile hero
thiagorossener May 8, 2023
4522f70
Fixed image paths
thiagorossener May 8, 2023
dd0d645
Replaced newsletter embed URL
thiagorossener May 8, 2023
05237fa
Styled features for mobile
thiagorossener May 8, 2023
4c31ec3
Restyled key features section
thiagorossener May 8, 2023
5be14c1
Styled integrations section
thiagorossener May 8, 2023
cbc6088
Fixed community page responsive layout
thiagorossener May 9, 2023
b471eeb
Styled navbar for desktop
thiagorossener May 9, 2023
4af694e
Styled menu for mobile
thiagorossener May 9, 2023
4104fc5
Added bugherd
thiagorossener May 10, 2023
83174ed
Updated feature images
thiagorossener May 16, 2023
ba0d699
Replaced database logos
thiagorossener May 16, 2023
5e7cf1b
Updated copy
thiagorossener May 16, 2023
e6931b4
Added link to community logos
thiagorossener May 16, 2023
1630711
Adjusted applitools logo size
thiagorossener May 16, 2023
ed7095b
Fixed navbar positioning
thiagorossener May 16, 2023
8f25cbe
Added trademarks for Apache Superset
thiagorossener May 16, 2023
4a46519
Improved new home page for mobile
thiagorossener May 16, 2023
c1745b0
Improved community page for mobile
thiagorossener May 16, 2023
fe82e71
Added button hover
thiagorossener May 16, 2023
df32064
Replaced community icons
thiagorossener Jun 6, 2023
37c2c69
Replaced MySQL logo
thiagorossener Jun 6, 2023
c96242f
Added bold style to selected slider item
thiagorossener Jun 6, 2023
77b99d3
Replaced hero screenshot
thiagorossener Jun 6, 2023
c16c047
Added video to new home page
thiagorossener Jun 7, 2023
73c7e20
Fixed video path
thiagorossener Jun 7, 2023
5aade5a
Updated newsletter embeddable URL
thiagorossener Jun 7, 2023
aabdb90
Replaced images
thiagorossener Jun 7, 2023
f437a05
Replaced index with new home page
thiagorossener Jun 7, 2023
3490a97
Fixed issue with light nav
thiagorossener Jun 7, 2023
6702d7b
Improved carousel behavior
thiagorossener Jun 7, 2023
981136b
Make video loop
thiagorossener Jun 7, 2023
068c71a
Changed carousel off state color
thiagorossener Jun 7, 2023
86a3ba7
Improved grid background quality
thiagorossener Jun 7, 2023
8cd8b26
Updated embedded newsletter module URL
thiagorossener Jun 13, 2023
b63545a
Fixed openapi.json
thiagorossener Jun 13, 2023
7473e94
Merge branch 'preset/new-docs-design' of github.com:weareferal/supers…
thiagorossener Jun 13, 2023
bd4ebdf
Reverted Bugherd url
thiagorossener Jun 13, 2023
37e3638
Removed YugabyteDB and StarRocks logos
thiagorossener Jun 13, 2023
e07cdfd
Added aria-label to community links
thiagorossener Jun 14, 2023
e0383a7
Refactored colors to use vars
thiagorossener Jun 15, 2023
89ed30d
Added aria-label to database links
thiagorossener Jun 15, 2023
fca9c22
Fixed SVG files
thiagorossener Jun 15, 2023
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
49 changes: 30 additions & 19 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config = {
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
favicon: '/img/favicon.ico',
organizationName: 'apache', // Usually your GitHub org/user name.
projectName: 'superset', // Usually your repo name.
themes: ['@saucelabs/theme-github-codeblock'],
Expand Down Expand Up @@ -177,8 +177,8 @@ const config = {
navbar: {
logo: {
alt: 'Superset Logo',
src: 'img/superset-logo-horiz.svg',
srcDark: 'img/superset-logo-horiz-dark.svg',
src: '/img/superset-logo-horiz.svg',
srcDark: '/img/superset-logo-horiz-dark.svg',
},
items: [
{
Expand Down Expand Up @@ -219,28 +219,40 @@ const config = {
},
],
},
{
href: '/docs/intro',
position: 'right',
className: 'default-button-theme get-started-button',
label: 'Get Started',
},
{
href: 'https://github.com/apache/superset',
position: 'right',
class: 'github-logo-container',
className: 'github-button',
},
],
},
footer: {
style: 'dark',
links: [],
copyright: `Copyright © ${new Date().getFullYear()},
The <a href="https://www.apache.org/" target="_blank" rel="noreferrer">Apache Software Foundation</a>,
Licensed under the Apache <a href="https://apache.org/licenses/LICENSE-2.0" target="_blank" rel="noreferrer">License</a>. <br/>
<small>Apache Superset, Apache, Superset, the Superset logo, and the Apache feather logo are either registered trademarks or trademarks of The Apache Software Foundation. All other products or name brands are trademarks of their respective holders, including The Apache Software Foundation.
<a href="https://www.apache.org/" target="_blank">Apache Software Foundation</a> resources</small><br />
<small>
<a href="https://www.apache.org/security/" target="_blank" rel="noreferrer">Security</a>&nbsp;|&nbsp;
<a href="https://www.apache.org/foundation/sponsorship.html" target="_blank" rel="noreferrer">Donate</a>&nbsp;|&nbsp;
<a href="https://www.apache.org/foundation/thanks.html" target="_blank" rel="noreferrer">Thanks</a>&nbsp;|&nbsp;
<a href="https://apache.org/events/current-event" target="_blank" rel="noreferrer">Events</a>&nbsp;|&nbsp;
<a href="https://apache.org/licenses/" target="_blank" rel="noreferrer">License</a>
</small>`,
copyright: `
<div class="footer__applitools">
We use &nbsp;<a href="https://applitools.com/" target="_blank" rel="nofollow"><img src="/img/applitools.png" title="Applitools" /></a>
</div>
<p>Copyright © ${new Date().getFullYear()},
The <a href="https://www.apache.org/" target="_blank" rel="noreferrer">Apache Software Foundation</a>,
Licensed under the Apache <a href="https://apache.org/licenses/LICENSE-2.0" target="_blank" rel="noreferrer">License</a>.</p>
<p><small>Apache Superset, Apache, Superset, the Superset logo, and the Apache feather logo are either registered trademarks or trademarks of The Apache Software Foundation. All other products or name brands are trademarks of their respective holders, including The Apache Software Foundation.
<a href="https://www.apache.org/" target="_blank">Apache Software Foundation</a> resources</small></p>
<img class="footer__divider" src="/img/community/line.png" alt="Divider" />
<p>
<small>
<a href="https://www.apache.org/security/" target="_blank" rel="noreferrer">Security</a>&nbsp;|&nbsp;
<a href="https://www.apache.org/foundation/sponsorship.html" target="_blank" rel="noreferrer">Donate</a>&nbsp;|&nbsp;
<a href="https://www.apache.org/foundation/thanks.html" target="_blank" rel="noreferrer">Thanks</a>&nbsp;|&nbsp;
<a href="https://apache.org/events/current-event" target="_blank" rel="noreferrer">Events</a>&nbsp;|&nbsp;
<a href="https://apache.org/licenses/" target="_blank" rel="noreferrer">License</a>
</small>
</p>`,
},
prism: {
theme: lightCodeTheme,
Expand All @@ -250,8 +262,7 @@ const config = {
scripts: [
'/script/matomo.js',
{
src:
'https://www.bugherd.com/sidebarv2.js?apikey=enilpiu7bgexxsnoqfjtxa',
src: 'https://www.bugherd.com/sidebarv2.js?apikey=enilpiu7bgexxsnoqfjtxa',
async: true,
},
],
Expand Down
53 changes: 53 additions & 0 deletions docs/src/components/BlurredSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import React, { ReactNode } from 'react';
import styled from '@emotion/styled';
import { mq } from '../utils';

const StyledBlurredSection = styled('section')`
text-align: center;
border-bottom: 1px solid var(--ifm-border-color);
overflow: hidden;
.blur {
max-width: 635px;
width: 100%;
margin-top: -70px;
margin-bottom: -35px;
position: relative;
z-index: -1;
${mq[1]} {
margin-top: -40px;
}
}
`;

interface BlurredSectionProps {
children: ReactNode;
}

const BlurredSection = ({ children }: BlurredSectionProps) => {
return (
<StyledBlurredSection>
{children}
<img className="blur" src="/img/community/blur.png" alt="Blur" />
</StyledBlurredSection>
);
};

export default BlurredSection;
123 changes: 123 additions & 0 deletions docs/src/components/SectionHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import React from 'react';
import styled from '@emotion/styled';
import { mq } from '../utils';

type StyledSectionHeaderProps = {
dark: boolean;
};

const StyledSectionHeader = styled('div')<StyledSectionHeaderProps>`
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 75px 20px 0;
max-width: 720px;
margin: 0 auto;
${mq[1]} {
padding-top: 55px;
}
.title,
.subtitle {
color: ${props =>
props.dark
? 'var(--ifm-font-base-color-inverse)'
: 'var(--ifm-font-base-color)'};
}
`;

const StyledSectionHeaderH1 = styled(StyledSectionHeader)`
.title {
font-size: 96px;
${mq[1]} {
font-size: 46px;
}
}
.line {
margin-top: -45px;
margin-bottom: 15px;
${mq[1]} {
margin-top: -20px;
margin-bottom: 30px;
}
}
.subtitle {
font-size: 30px;
line-height: 40px;
${mq[1]} {
font-size: 25px;
line-height: 29px;
}
}
`;

const StyledSectionHeaderH2 = styled(StyledSectionHeader)`
.title {
font-size: 48px;
${mq[1]} {
font-size: 34px;
}
}
.line {
margin-top: -15px;
margin-bottom: 15px;
${mq[1]} {
margin-top: -5px;
}
}
.subtitle {
font-size: 24px;
line-height: 32px;
${mq[1]} {
font-size: 18px;
line-height: 26px;
}
}
`;

interface SectionHeaderProps {
level: any;
title: string;
subtitle?: string;
dark?: boolean;
}

const SectionHeader = ({
level,
title,
subtitle,
dark,
}: SectionHeaderProps) => {
const Heading = level;

const StyledRoot =
level === 'h1' ? StyledSectionHeaderH1 : StyledSectionHeaderH2;

return (
<StyledRoot dark={!!dark}>
<Heading className="title">{title}</Heading>
<img className="line" src="/img/community/line.png" alt="line" />
{subtitle && <p className="subtitle">{subtitle}</p>}
</StyledRoot>
);
};

export default SectionHeader;
Loading