Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update Spree Guides home page

Damian Legawiec2abddf84b5ff
diff --git a/guides/src/components/Section.js b/guides/src/components/Section.js
index d33a0a891b..a9d6d183fb 100644
--- a/guides/src/components/Section.js
+++ b/guides/src/components/Section.js
@@ -12,7 +12,7 @@ import { Link } from 'gatsby'
const Section = ({ title, path, children, className }) => (
<div className={cx('pa0 pa2-ns flex w-100 mb4 mb0-ns', className)}>
- <div className="ba b--light-gray br2 pa3 w-100 bg-white">
+ <div className="ba b--light-silver br2 pa3 w-100 bg-white">
<h2 className="f3 mt0 spree-blue bb b--light-gray pb2">
{path ? (
<Link to={path} className="link spree-blue">
@@ -22,7 +22,7 @@ const Section = ({ title, path, children, className }) => (
title
)}
</h2>
- <p className="lh-copy">{children}</p>
+ <p className="lh-copy mb0">{children}</p>
</div>
</div>
)
diff --git a/guides/src/images/features/[email protected] b/guides/src/images/features/[email protected]
new file mode 100644
index 0000000000..cfb53ad25c
Binary files /dev/null and b/guides/src/images/features/[email protected] differ
diff --git a/guides/src/images/features/[email protected] b/guides/src/images/features/[email protected]
new file mode 100644
index 0000000000..857352aeab
Binary files /dev/null and b/guides/src/images/features/[email protected] differ
diff --git a/guides/src/pages/index.js b/guides/src/pages/index.js
index 537e7c76d1..630aaae6ce 100644
--- a/guides/src/pages/index.js
+++ b/guides/src/pages/index.js
@@ -1,25 +1,35 @@
// --- Dependencies
import * as React from 'react'
+import { graphql } from 'gatsby'
+import Img from 'gatsby-image'
// --- Components
import Layout from 'components/Layout'
import Section from 'components/Section'
+
/**
* Component
*/
-const IndexPage = () => (
+ export default ({ data }) => (
<Layout
title="Guides"
description="Spree Commerce API, documentation, guides & tutorials"
>
- <div className="center mw9 ph4 mt5">
- <h1 className="lh-copy f3 tc mw7 center mb3">
+ <div className="mw8 center mt4 pa2-ns">
+ <Img
+ fluid={data.file.childImageSharp.fluid}
+ alt="Spree Commerce Documentation"
+ className="br4 ba b--light-silver"
+ />
+ </div>
+
+ <div className="mw8 center mt4 pa2-ns mb3">
+ <h1 className="lh-copy f3 tc ph4 pv2">
<a href="https://spreecommerce.org" className="spree-blue fw6">
Spree Commerce
- </a> &nbsp;is a complete, modular, API-driven open source e-commerce solution
- &nbsp;built with Ruby on Rails
+ </a> is a complete, modular, API-driven open source e-commerce solution built with Ruby on Rails
</h1>
<p class="tc mb3">
@@ -37,7 +47,7 @@ const IndexPage = () => (
applications (JavaScript/Mobile/other technologies) that can talk to
your Spree store.
</p>
- <ul className="list">
+ <ul className="list ph0 mb0">
<li className="dib mr2"><a href="/api/v1/summary.html">REST API v1</a></li>
<li className="dib mr2"><a href="https://api.spreecommerce.org/docs/api-v2/api/docs/v2/storefront/index.yaml">REST API v2</a></li>
</ul>
@@ -60,10 +70,10 @@ const IndexPage = () => (
Spree. If you are working with Rails and are building a Spree store,
this is the documentation for you.
</p>
- <ul className="list">
- <li className="dib mr2"><a href="/developer/tutorials/getting_started_tutorial.html">Tutorials</a></li>
+ <ul className="list ph0 mb0">
<li className="dib mr2"><a href="/developer/customization/storefront.html">Customization</a></li>
- <li className="dib mr2"><a href="/developer/core">Core Internals</a></li>
+ <li className="dib mr2"><a href="/developer/internals">Internals</a></li>
+ <li className="dib mr2"><a href="/developer/deployment">Deployment</a></li>
<li className="dib mr2"><a href="/developer/security">Security</a></li>
<li className="dib mr2"><a href="/developer/upgrades">Upgrades</a></li>
</ul>
@@ -98,4 +108,16 @@ const IndexPage = () => (
</Layout>
)
-export default IndexPage
+export const query = graphql`
+ query {
+ file(relativePath: { eq: "features/[email protected]" }) {
+ childImageSharp {
+ # Specify the image processing specifications right in the query.
+ # Makes it trivial to update as your page's design changes.
+ fluid(quality: 80) {
+ ...GatsbyImageSharpFluid
+ }
+ }
+ }
+ }
+`