This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed: base theme has been completely redesigned.
Now includes more components and examples of how you can leverage Phenomic.
- Loading branch information
Showing
29 changed files
with
490 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: How to setup Phenomic | ||
title: How to setup a new project with Phenomic | ||
--- | ||
|
||
Phenomic require at least | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
--- | ||
layout: PageError | ||
route: 404.html | ||
# hero credit: https://www.flickr.com/photos/mypubliclands/16101654539/ | ||
hero: https://farm8.staticflickr.com/7559/16101654539_bee5151340_k.jpg | ||
--- | ||
Content here not used, see ``src/layouts/PageError`` | ||
<!--- | ||
Content here not used, see ``src/layouts/PageError`` | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: About Phenomic base theme | ||
hero: https://farm4.staticflickr.com/3949/15589950511_3675b15e59_k.jpg | ||
# hero credit: https://www.flickr.com/photos/pslee999/15589950511/ | ||
cta: | ||
label: Discover Phenomic now | ||
link: "https://phenomic.io/" | ||
props: | ||
big: true | ||
--- | ||
|
||
You are currently viewing Phenomic base theme. | ||
|
||
For now [Phenomic does not provide a native way to extend themes](https://github.com/MoOx/phenomic/issues/508) but since it's based on | ||
React and use a component approach, it's pretty easy to make your own collection | ||
of layouts and components and reuse those. | ||
|
||
--- | ||
|
||
This website is made with [Phenomic](https://phenomic.io/). | ||
|
||
If you are curious about it, you can take a look to | ||
[existing websites that use Phenomic](https://phenomic.io/showcase/), | ||
some projects share their source code! | ||
|
||
<!-- demo to show you that you can use "assets" folder --> | ||
<small> | ||
Built with | ||
<a href="https://facebook.github.io/react/"> | ||
<img alt="" src="../assets/react.svg" width="16" height="16" /> | ||
React | ||
</a>. | ||
</small> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,43 @@ | ||
--- | ||
title: Phenomic base theme | ||
layout: Homepage | ||
hero: https://farm4.staticflickr.com/3949/15589950511_3675b15e59_k.jpg | ||
# hero credit: https://www.flickr.com/photos/pslee999/15589950511/ | ||
cta: | ||
label: About this theme | ||
link: "about" | ||
--- | ||
|
||
Hi there. | ||
Hi there. Before having fun with Phenomic, be sure to read the documentation : | ||
|
||
Before having fun with Phenomic, be sure to read (or at least pretend to) | ||
the documentation : | ||
|
||
* [Setup](https://phenomic.io/docs/setup/) | ||
* [Getting Started](https://phenomic.io/docs/getting-started/) | ||
* [Usage](https://phenomic.io/docs/usage/) | ||
* [How to setup a new project with Phenomic](https://phenomic.io/docs/setup/) | ||
* [Getting Started with Phenomic](https://phenomic.io/docs/getting-started/) | ||
* [Usage & APIs](https://phenomic.io/docs/usage/) | ||
* [FAQ](https://phenomic.io/docs/faq/) | ||
|
||
Also take a look to | ||
[existing websites that use Phenomic](https://phenomic.io/showcase/), | ||
some projects share their source code! | ||
|
||
Built with | ||
<a href="https://facebook.github.io/react/"> | ||
<img alt="" src="assets/react.svg" width="16" height="16" /> | ||
React | ||
</a>. | ||
<!-- demo to show you that you can use "assets" folder --> | ||
<small> | ||
Built with | ||
<a href="https://facebook.github.io/react/"> | ||
<img alt="" src="assets/react.svg" width="16" height="16" /> | ||
React | ||
</a>. | ||
</small> | ||
|
||
--- | ||
|
||
You may want to take a look to the <a href="/404.html">404.html</a>. | ||
You may want to take a look to the [404.html](/404.html) and tweak the render. | ||
|
||
If you want to adjust page layouts, directly adjust them in ``src/layouts/``. | ||
If you want to adjust small parts like header, footer, buttons, etc, you will | ||
find those in ``src/components/``. | ||
For colors and common CSS variables, you will find stuff to adjust in ``postcss.plugins.js``. | ||
|
||
If you want to adjust those, directly adjust them in ``src/layouts/``. | ||
_You feel like the base theme is not enough or you just saw something wrong?_ | ||
[Please help us make Phenomic better!](https://phenomic.io/contributing/) | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
--- | ||
title: Hello World! | ||
title: Welcome back to the future of static website! | ||
date: 2016-02-14 | ||
layout: Post | ||
# hero credit: https://www.flickr.com/photos/igotz/15669216853/ | ||
hero: https://farm8.staticflickr.com/7479/15669216853_aa8e70eae1_o.jpg | ||
--- | ||
|
||
Hello there. Here is another dumb post. | ||
<!-- start lipsum code --> | ||
<!-- http://www.deloreanipsum.com/ --> | ||
|
||
Ahh. Hey, Doc, we better back up, we don't have enough roads to get up to 88. Hi. Where were we. In that case, I'll tell you strait out. | ||
|
||
Thank you, don't forget to take a flyer. Look, I'm just not ready to ask Lorraine out to the dance, and not you, nor anybody else on this planet is gonna make me change my mind. Over there, on my hope chest. I've never seen purple underwear before, Calvin. What's with the life preserver? Working. | ||
|
||
I still don't understand, how am I supposed to go to the dance with her, if she's already going to the dance with you. Our first television set, Dad just picked it up today. Do you have a television? I hope so. Uh, look me up when you get there. Stand tall, boy, have some respect for yourself. Don't you know that if you let people walk all over you know, they'll be walking all over you for the rest of your life? Listen to me, do you think I'm gonna spend the rest of my life in this slop house? | ||
|
||
Where were we. That's for messing up my hair. I'm sure that in 1985, plutonium is available at every corner drug store, but in 1955, it's a little hard to come by. Marty, I'm sorry, but I'm afraid you're stuck here. Where's Einstein, is he with you? Listen, this is very important, I forgot my video camera, could you stop by my place and pick it up on your way to the mall? | ||
|
||
Hi. Now Biff, don't con me. Of course I do. Just a second, let's see if I could find it. George, buddy. remember that girl I introduced you to, Lorraine. What are you writing? Let's go. | ||
|
||
|
||
<!-- end lipsum code --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
themes/phenomic-theme-base/src/components/Button/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.button { | ||
display: inline-flex; | ||
padding: 0 1rem; | ||
line-height: 2rem; | ||
font-weight: 100; | ||
text-align: center; | ||
border-radius: 3px; | ||
|
||
transition: .2s all; | ||
|
||
color: var(--colorPrimary); | ||
border: 1px solid var(--colorPrimary); | ||
background: color(var(--colorNeutralLight) a(0.2)); | ||
|
||
&:hover { | ||
text-decoration: none; | ||
color: var(--colorPrimaryDark); | ||
border: 1px solid var(--colorPrimaryDark); | ||
} | ||
} | ||
|
||
.secondary { | ||
color: var(--colorSecondary); | ||
border: 1px solid var(--colorSecondary); | ||
|
||
&:hover { | ||
color: var(--colorSecondaryDark); | ||
border: 1px solid var(--colorSecondaryDark); | ||
} | ||
} | ||
|
||
.light { | ||
color: var(--colorNeutralLight); | ||
border: 1px solid var(--colorNeutralLight); | ||
|
||
&:hover { | ||
color: var(--colorNeutralLight); | ||
border: 1px solid var(--colorNeutralLight); | ||
background: color(var(--colorNeutralLight) a(0.3)); | ||
} | ||
} | ||
|
||
|
||
.big { | ||
font-size: 1.5rem; | ||
padding: 0 2rem; | ||
line-height: 3rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React, { PropTypes } from "react" | ||
import cx from "classnames" | ||
|
||
import styles from "./index.css" | ||
|
||
const Button = ({ className, secondary, light, big, ...otherProps }) => ( | ||
<span | ||
role="button" | ||
{ ...otherProps } | ||
className={ cx({ | ||
[className]: className, | ||
[styles.button]: true, | ||
[styles.secondary]: secondary, | ||
[styles.light]: light, | ||
[styles.big]: big, | ||
}) } | ||
/> | ||
) | ||
|
||
Button.propTypes = { | ||
children: PropTypes.node, | ||
className: PropTypes.string, | ||
secondary: PropTypes.bool, | ||
light: PropTypes.bool, | ||
big: PropTypes.bool, | ||
} | ||
|
||
Button.displayName = "Button" | ||
|
||
export default Button |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
themes/phenomic-theme-base/src/components/LatestPosts/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.latestPosts { | ||
text-align: center; | ||
} |
Oops, something went wrong.