Skip to content

Commit

Permalink
fix: Move all components into their own directories (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraider authored and Adam Raider committed Feb 27, 2019
1 parent e544707 commit 0adb7c1
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 121 deletions.
23 changes: 0 additions & 23 deletions packages/ray/lib/_responsive.scss

This file was deleted.

6 changes: 0 additions & 6 deletions packages/ray/lib/_section.scss

This file was deleted.

12 changes: 6 additions & 6 deletions packages/ray/lib/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
@import './components/card/card';
@import './components/button/button';
@import './components/radio-checkbox/radio-checkbox';
@import 'responsive';
@import 'forms';
@import 'image';
@import 'table';
@import 'section';
@import 'tabs';
@import './components/text-field/text-field';
@import './components/image/image';
@import './components/table/table';
@import './components/tabs/tabs';

// @import 'section';
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
}
}

// @Todo: Move this into its own file
.#{$prefix}field__textarea {
height: auto;
min-height: $field-height;
Expand Down
172 changes: 86 additions & 86 deletions packages/ray/stories/section.stories.js
Original file line number Diff line number Diff line change
@@ -1,91 +1,91 @@
import React from 'react';
import { storiesOf } from '@storybook/react';

storiesOf('Content Section', module).addWithJSX('stacked', () => (
<React.Fragment>
<div className="ray-section ray-section--with-padding">
<div className="ray-grid">
<div className="ray-grid__inner">
<div
className="ray-grid__cell--span-10"
style={{
gridColumnStart: 2
}}
>
<h2 className="ray-h3">Make a life not just a living</h2>
<p className="ray-p3">
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quasi
vero doloribus quis accusamus consequatur, voluptatem,
reprehenderit pariatur libero qui expedita placeat? Officia,
impedit libero. Rerum cumque assumenda ipsum molestias explicabo!
</p>
</div>
</div>
</div>
</div>
// storiesOf('Content Section', module).addWithJSX('stacked', () => (
// <React.Fragment>
// <div className="ray-section ray-section--with-padding">
// <div className="ray-grid">
// <div className="ray-grid__inner">
// <div
// className="ray-grid__cell--span-10"
// style={{
// gridColumnStart: 2
// }}
// >
// <h2 className="ray-h3">Make a life not just a living</h2>
// <p className="ray-p3">
// Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quasi
// vero doloribus quis accusamus consequatur, voluptatem,
// reprehenderit pariatur libero qui expedita placeat? Officia,
// impedit libero. Rerum cumque assumenda ipsum molestias explicabo!
// </p>
// </div>
// </div>
// </div>
// </div>

<div className="ray-grid">
<div className="ray-grid__inner">
<div className="ray-grid__cell--span-12">
<div
className="ray-section ray-section--with-padding"
style={{
backgroundColor: '#FFF7F5'
}}
>
<div className="ray-grid__inner">
<div
className="ray-grid__cell--span-5 ray-grid__cell--align-middle"
style={{
gridColumnStart: 2
}}
>
<h2 className="ray-h3">
Space for the world’s largest companies
</h2>
<p className="ray-p3">
The world’s most innovative companies are using WeWork to
think differently about workspace.
</p>
</div>
<div
className="ray-grid__cell--span-4"
style={{
gridColumnStart: 8
}}
>
<div
className="ray-bg ray-bg--4by3"
style={{
backgroundImage: `url(https://source.unsplash.com/random/800x800)`
}}
/>
</div>
</div>
</div>
</div>
</div>
</div>
// <div className="ray-grid">
// <div className="ray-grid__inner">
// <div className="ray-grid__cell--span-12">
// <div
// className="ray-section ray-section--with-padding"
// style={{
// backgroundColor: '#FFF7F5'
// }}
// >
// <div className="ray-grid__inner">
// <div
// className="ray-grid__cell--span-5 ray-grid__cell--align-middle"
// style={{
// gridColumnStart: 2
// }}
// >
// <h2 className="ray-h3">
// Space for the world’s largest companies
// </h2>
// <p className="ray-p3">
// The world’s most innovative companies are using WeWork to
// think differently about workspace.
// </p>
// </div>
// <div
// className="ray-grid__cell--span-4"
// style={{
// gridColumnStart: 8
// }}
// >
// <div
// className="ray-bg ray-bg--4by3"
// style={{
// backgroundImage: `url(https://source.unsplash.com/random/800x800)`
// }}
// />
// </div>
// </div>
// </div>
// </div>
// </div>
// </div>

<div className="ray-section ray-section--with-padding">
<div className="ray-grid">
<div className="ray-grid__inner">
<div
className="ray-grid__cell--span-10"
style={{
gridColumnStart: 2
}}
>
<h2 className="ray-h3">Space for the world’s largest companies</h2>
<p className="ray-p3">
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quasi
vero doloribus quis accusamus consequatur, voluptatem,
reprehenderit pariatur libero qui expedita placeat? Officia,
impedit libero. Rerum cumque assumenda ipsum molestias explicabo!
</p>
</div>
</div>
</div>
</div>
</React.Fragment>
));
// <div className="ray-section ray-section--with-padding">
// <div className="ray-grid">
// <div className="ray-grid__inner">
// <div
// className="ray-grid__cell--span-10"
// style={{
// gridColumnStart: 2
// }}
// >
// <h2 className="ray-h3">Space for the world’s largest companies</h2>
// <p className="ray-p3">
// Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quasi
// vero doloribus quis accusamus consequatur, voluptatem,
// reprehenderit pariatur libero qui expedita placeat? Officia,
// impedit libero. Rerum cumque assumenda ipsum molestias explicabo!
// </p>
// </div>
// </div>
// </div>
// </div>
// </React.Fragment>
// ));

0 comments on commit 0adb7c1

Please sign in to comment.