Skip to content

Commit

Permalink
[Docs] Rebrand (#4727)
Browse files Browse the repository at this point in the history
* Adding new logo and new hero illustration

* Adding Figma community file for Amsterdam

* Replacing favicon

* Adding elastic logo and link into the footer

* Adding react helmet. Favicons for dev and prod.

* social media thumbnail

* Social media tags

* Footer elastic logo

* Moving react-helmet to devDependencies

* Reconciling meta tags

* Adding title and description meta tags into index.html
  • Loading branch information
elizabetdev authored Apr 22, 2021
1 parent 47b1dc0 commit 8a40079
Show file tree
Hide file tree
Showing 24 changed files with 342 additions and 456 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
"react": "^16.12.0",
"react-docgen-typescript": "^1.20.5",
"react-dom": "^16.12.0",
"react-helmet": "^6.1.0",
"react-redux": "^7.2.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
Expand Down
91 changes: 43 additions & 48 deletions src-docs/src/components/guide_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

$guideSideNavWidth: 240px;
$guideZLevelHighest: $euiZLevel9 + 1000;
$elasticLogoTextLight: #FFF;
$elasticLogoTextDark: #1C1E23;

#guide { // sass-lint:disable-line no-ids
display: flex;
Expand Down Expand Up @@ -361,33 +363,26 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
}
}

.guideHomePage__illustrationLightShade {
fill: $euiColorLightShade;
}

.guideHomePage__illustrationEmptyShade {
fill: $euiColorEmptyShade;
}
.guideHomePage__illustration {
@include euiBreakpoint('s', 'm') {
justify-content: center;
}

.guideHomePage__illustrationDots,
.guideHomePage__illustrationComponents {
position: absolute;
top: 0;
right: 0;
position: relative;
display: flex;
justify-content: flex-end;
}

.guideHomePage__illustrationEffect {
display: block;
height: auto;
position: relative;
width: auto;

.guideHomePage__illustrationEffectParts {
height: auto;
.guideHomePage__illustrationEffectSVG {
transform: perspective(1600px);
transform-style: preserve-3d;
transition: all .3s ease-in-out;
width: 100%;
height: auto;

&:before {
content: '';
Expand All @@ -400,18 +395,6 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
}
}

.guideHomePage__illustrationEffectPartsDots,
.guideHomePage__illustrationEffectPartsComps {
position: absolute;
left: 0;
top: 0;
transform: translateZ(16px) scale(.9);
transition: all .4s ease;
width: 100%;
height: 100%;
z-index: 1;
}

.guideHomePage__illustrationTopLeftCorner {
height: 50%;
left: 0;
Expand All @@ -420,12 +403,9 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
width: 50%;
z-index: 300;

&:hover ~ .guideHomePage__illustrationEffectParts {
&:hover ~ .guideHomePage__illustrationEffectSVG {
transform: perspective(1600px) rotateX(-5deg) rotateY(5deg);

.guideHomePage__illustrationEffectPartsDots {
transform: translate3d(-.1px, -.1px, 16px) scale(.9);
}
}
}

Expand All @@ -437,12 +417,8 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
width: 50%;
z-index: 300;

&:hover ~ .guideHomePage__illustrationEffectParts {
&:hover ~ .guideHomePage__illustrationEffectSVG {
transform: perspective(1600px) rotateX(-5deg) rotateY(-5deg);

.guideHomePage__illustrationEffectPartsDots {
transform: translate3d(.1px, -.1px, 16px) scale(.9);
}
}
}

Expand All @@ -454,12 +430,8 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
width: 50%;
z-index: 300;

&:hover ~ .guideHomePage__illustrationEffectParts {
&:hover ~ .guideHomePage__illustrationEffectSVG {
transform: perspective(1600px) rotateX(5deg) rotateY(5deg);

.guideHomePage__illustrationEffectPartsDots {
transform: translate3d(-.1px, .1px, 1px) scale(.9);
}
}
}

Expand All @@ -471,13 +443,36 @@ $guideZLevelHighest: $euiZLevel9 + 1000;
width: 50%;
z-index: 300;

&:hover ~ .guideHomePage__illustrationEffectParts {
&:hover ~ .guideHomePage__illustrationEffectSVG {
transform: perspective(1600px) rotateX(5deg) rotateY(-5deg);


.guideHomePage__illustrationEffectPartsDots {
transform: translate3d(.1px, .1px, 1px) scale(.9);
}
}
}
}

.guideHome__footer {
display: flex;
align-items: center;
}

.guideHome__footerHeart {
color: $euiColorAccentText;
}

.guideHome__footerLogo {
// sass-lint:disable-block no-important
vertical-align: middle;
display: inline-block !important;
margin-bottom: 0 !important;
position: relative;
top: -1px;
}

.guideHome__footerLogoText {
fill: lightOrDarkTheme($elasticLogoTextDark, $elasticLogoTextLight);
}

.guideHome__hero {
> * {
padding: $euiSizeL;
}
}
3 changes: 2 additions & 1 deletion src-docs/src/components/guide_page/guide_page_header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { EuiButtonEmpty } from '../../../../src/components/button';

// @ts-ignore Not TS
import { CodeSandboxLink } from '../../components/codesandbox/link';
import logoEUI from '../../images/logo-eui.svg';
import {
GuideThemeSelector,
GuideSketchLink,
Expand All @@ -35,7 +36,7 @@ export const GuidePageHeader: React.FunctionComponent<GuidePageHeaderProps> = ({

function renderLogo() {
return (
<EuiHeaderLogo iconType="logoElastic" href="#/" aria-label="EUI home">
<EuiHeaderLogo iconType={logoEUI} href="#/" aria-label="EUI home">
Elastic UI
</EuiHeaderLogo>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ const GuideFigmaLinkComponent: React.FunctionComponent<GuideFigmaLinkProps> = ({
const isAmsterdam = context.theme.includes('amsterdam');

let href = 'https://www.figma.com/community/file/809845546262698150';
let label = 'EUI Figma Design Library';
const label = 'EUI Figma Design Library';

if (isAmsterdam) {
href =
'https://www.figma.com/file/RzfYLj2xmH9K7gQtbSKygn/BETA-EUI-Amsterdam';
label = `${label} (private beta)`;
href = 'https://www.figma.com/community/file/964536385682658129';
}

return isMobileSize ? (
Expand All @@ -48,7 +46,6 @@ const GuideFigmaLinkComponent: React.FunctionComponent<GuideFigmaLinkProps> = ({
title={label}
content="The Figma Elastic UI framework (EUI) is a design library in use at Elastic to build internal products that need to share our aesthetics.">
<EuiHeaderSectionItemButton
notification={isAmsterdam && 'B'}
notificationColor="subdued"
aria-label={label}
// @ts-ignore TODO: FIX
Expand Down
Binary file removed src-docs/src/favicon.ico
Binary file not shown.
Binary file added src-docs/src/images/favicon/dev/favicon-16x16.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 src-docs/src/images/favicon/dev/favicon-32x32.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 src-docs/src/images/favicon/dev/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8a40079

Please sign in to comment.