Skip to content

Commit

Permalink
Update website adding 'ready to start?' section
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Oct 31, 2020
1 parent 5aa861a commit b63d791
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 26 deletions.
27 changes: 27 additions & 0 deletions packages/website/images/shell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion packages/website/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ pre[class*=language-] {
text-align: center;
margin-bottom: 25px;

&:last-child {
margin-bottom: 0;
}

.title, section {
font-weight: 300;
margin: 0 auto;
Expand All @@ -90,6 +94,7 @@ pre[class*=language-] {

.title {
font-size: 2.6em;
padding: 0;
}

@include for-desktop-up {
Expand Down Expand Up @@ -278,7 +283,9 @@ h2 {
text-align: right;

@include for-desktop-up {
position: absolute;
@at-root .hero:first-child + .github-link {
position: absolute;
}
}

a {
Expand Down Expand Up @@ -326,3 +333,10 @@ h2 {
}
}
}

.shell-image {
width: 100vw;
max-width: 700px;
display: block;
margin: 0 -15px;
}
14 changes: 14 additions & 0 deletions packages/website/src/ReadyToStart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import shellImage from '../images/shell.svg';
import GitHubLink from './GitHubLink';

const ReadyToStart = () => (
<div class="container hero figma-gradient with-opacity-05">
<section>
<h2 class="figma-gradient text title">ready to start?</h2>
<img className="shell-image" src={shellImage} alt="Shell - npm install figma-export" />
<GitHubLink />
</section>
</div>
);

export default ReadyToStart;
18 changes: 18 additions & 0 deletions packages/website/src/Title.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import SvgOcticons from './SvgOcticons';

const Title = () => (
<div class="container hero figma-gradient with-opacity-05">
<section>
<h1 class="figma-gradient text title">@figma-export</h1>
<p>Export tool for Figma</p>
<p>
You can easily and automatically export your
figma <code class="figma-gradient with-opacity-10">components</code> and <code class="figma-gradient with-opacity-10">styles</code> and
use them directly into your website
</p>
</section>
<SvgOcticons />
</div>
);

export default Title;
File renamed without changes.
File renamed without changes.
19 changes: 5 additions & 14 deletions packages/website/src/index.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
import { render, Fragment, hydrate } from 'preact';

import SvgOcticons from './SvgOcticons';
import GitHubLink from './GitHubLink';
import Title from './Title';
import ReadyToStart from './ReadyToStart';

import OutputComponents from './output-components';
import OutputStyles from './output-styles';

const App = () => (
<Fragment>
<div class="container hero figma-gradient with-opacity-05">
<section>
<h1 class="figma-gradient text title">@figma-export</h1>
<p>Export tool for Figma</p>
<p>
You can easily and automatically export your
figma <code class="figma-gradient with-opacity-10">components</code> and <code class="figma-gradient with-opacity-10">styles</code> and
use them directly into your website
</p>
</section>
<SvgOcticons />
</div>

<Title />
<GitHubLink />

<OutputComponents />
<OutputStyles />

<ReadyToStart />
</Fragment>
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment } from 'preact';

import CodeBlock from '../CodeBlock';
import CodeBlock from '../components/CodeBlock';

// eslint-disable-next-line import/no-unresolved, import/extensions
import { figmaExport, figmaLogo } from '../../output/es6-base64/icons';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment } from 'preact';

import CodeBlock from '../CodeBlock';
import CodeBlock from '../components/CodeBlock';

// eslint-disable-next-line import/no-unresolved, import/extensions
import { figmaExport, figmaLogo } from '../../output/es6-dataurl/icons';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable react/no-danger */
import { Fragment } from 'preact';

import CodeBlock from '../CodeBlock';
import CodeBlock from '../components/CodeBlock';

// eslint-disable-next-line import/no-unresolved, import/extensions
import * as FigmaIcons from '../../output/svgr/icons';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable react/no-danger */
import { Fragment } from 'preact';

import CodeBlock from '../CodeBlock';
import CodeBlock from '../components/CodeBlock';

const fs = require('fs');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable react/no-danger */
import { Fragment } from 'preact';

import CodeBlock from '../CodeBlock';
import CodeBlock from '../components/CodeBlock';

const fs = require('fs');

Expand Down
4 changes: 2 additions & 2 deletions packages/website/src/output-styles/AsCss.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment } from 'preact';
import Code from '../Code';
import CodeBlock from '../CodeBlock';
import Code from '../components/Code';
import CodeBlock from '../components/CodeBlock';

const props = {
title: (
Expand Down
4 changes: 2 additions & 2 deletions packages/website/src/output-styles/AsLess.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment } from 'preact';
import Code from '../Code';
import CodeBlock from '../CodeBlock';
import Code from '../components/Code';
import CodeBlock from '../components/CodeBlock';

const props = {
title: (
Expand Down
4 changes: 2 additions & 2 deletions packages/website/src/output-styles/AsSass.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment } from 'preact';
import Code from '../Code';
import CodeBlock from '../CodeBlock';
import Code from '../components/Code';
import CodeBlock from '../components/CodeBlock';

const props = {
title: (
Expand Down

0 comments on commit b63d791

Please sign in to comment.