gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 227Rust 7TOML 3CSS 1307 Definiciones

⎇ 94847fa590b5218a5d79c3a8c287ba16f68ba011 docs/src/components/docs.js JavaScript · 34 líneas · 1.4 KB Historia Quién tocó qué crudo

Basic docs setup 94847fa59 · Emil Sjölander ·

1import React from "react";
2import {Link} from "gatsby";
3import {MDXProvider} from '@mdx-js/react'
4
5import Layout from "../components/layout"
6import SEO from "../components/seo"
7import './docs.css'
8
9export default ({children, location}) => (
10  <MDXProvider>
11    <Layout>
12        <SEO title="Stretch" keywords={[`rust`, `android`, `ios`, `web`, `flexbox`]} />
13        <section>
14          <div className="section-inner">
15            <h2>Documentation</h2>
16            <p>
17              Stretch is available for Rust, Kotlin, Swift, and JavaScript. We will be adding more language bindings over time.
18            </p>
19            <div className="doc-pills">
20              <Link to="/docs/rust" className={`doc-pill ${location.pathname.endsWith("rust") ? "active" : ""}`}>Rust</Link>
21              <Link to="/docs/kotlin" className={`doc-pill ${location.pathname.endsWith("kotlin") ? "active" : ""}`}>Kotlin</Link>
22              <Link to="/docs/swift" className={`doc-pill ${location.pathname.endsWith("swift") ? "active" : ""}`}>Swift</Link>
23              <Link to="/docs/javascript" className={`doc-pill ${location.pathname.endsWith("javascript") ? "active" : ""}`}>JavaScript</Link>
24            </div>
25          </div>
26        </section>
27        <section className="mdx-content">
28          <div className="section-inner">
29            {children}
30          </div>
31        </section>
32      </Layout>
33  </MDXProvider>
34);