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(phenomic-theme-base): new default file tree
We encourage you to update to a similar structure if you were using the previous one. Main changes: - ``web_modules/layouts`` => ``src/layouts`` - ``web_modules/{Components}`` => ``src/components/*`` - ``web_modules/app/*`` => ``src/*`` - ``web_modules/LayoutContainer`` => ``src/AppContainer.js`` Closes #529 Closes #444
- Loading branch information
Showing
48 changed files
with
205 additions
and
123 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
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
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
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,6 +1,6 @@ | ||
--- | ||
layout: PageLoading | ||
--- | ||
Content here not used, see ``web_modules/layouts/PageLoading``. | ||
Content here not used, see ``src/layouts/PageLoading``. | ||
This page is a demo for loading state. | ||
You can safely delete it if you want. |
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,15 +1,18 @@ | ||
import lnfs from "lnfs" | ||
import testFolder from "./utils/test-folder.js" | ||
|
||
const target = "phenomic-theme-base" | ||
const target = "themes/phenomic-theme-base" | ||
testFolder( | ||
target, | ||
{ | ||
test: false, | ||
|
||
// phenomic-theme-base cleanup | ||
cleanup: async () => Promise.all([ | ||
await lnfs("docs/package.json", "phenomic-theme-base/package.json"), | ||
await lnfs( | ||
"docs/package.json", | ||
"themes/phenomic-theme-base/package.json" | ||
), | ||
]), | ||
} | ||
) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
layout: PageLoading | ||
--- | ||
Content here not used, see ``web_modules/layouts/PageLoading``. | ||
Content here not used, see ``src/layouts/PageLoading``. | ||
This page is a demo for loading state. | ||
You can safely delete if you want. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React, { Component, PropTypes } from "react" | ||
|
||
import "./index.global.css" | ||
|
||
import Container from "./components/Container" | ||
import DefaultHeadMeta from "./components/DefaultHeadMeta" | ||
import Header from "./components/Header" | ||
import Content from "./components/Content" | ||
import Footer from "./components/Footer" | ||
|
||
export default class AppContainer extends Component { | ||
|
||
static propTypes = { | ||
children: PropTypes.oneOfType([ PropTypes.array, PropTypes.object ]), | ||
}; | ||
|
||
render() { | ||
return ( | ||
<Container> | ||
<DefaultHeadMeta /> | ||
<Header /> | ||
<Content> | ||
{ this.props.children } | ||
</Content> | ||
<Footer /> | ||
</Container> | ||
) | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
themes/phenomic-theme-base/src/components/Container/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,5 @@ | ||
.container { | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
} |
18 changes: 18 additions & 0 deletions
18
themes/phenomic-theme-base/src/components/Container/index.js
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,18 @@ | ||
import React, { Component, PropTypes } from "react" | ||
|
||
import styles from "./index.css" | ||
|
||
export default class Container extends Component { | ||
|
||
static propTypes = { | ||
children: PropTypes.oneOfType([ PropTypes.array, PropTypes.object ]), | ||
}; | ||
|
||
render() { | ||
return ( | ||
<div className={ styles.container }> | ||
{ this.props.children } | ||
</div> | ||
) | ||
} | ||
} |
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,6 @@ | ||
.content { | ||
flex: 1; | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
} |
18 changes: 18 additions & 0 deletions
18
themes/phenomic-theme-base/src/components/Content/index.js
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,18 @@ | ||
import React, { Component, PropTypes } from "react" | ||
|
||
import styles from "./index.css" | ||
|
||
export default class Content extends Component { | ||
|
||
static propTypes = { | ||
children: PropTypes.oneOfType([ PropTypes.array, PropTypes.object ]), | ||
}; | ||
|
||
render() { | ||
return ( | ||
<div className={ styles.content }> | ||
{ this.props.children } | ||
</div> | ||
) | ||
} | ||
} |
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
10 changes: 5 additions & 5 deletions
10
...c-theme-base/web_modules/Footer/index.css → ...heme-base/src/components/Footer/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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
.footer { | ||
margin-top: 1rem; | ||
padding: 1rem; | ||
font-size: 0.75rem; | ||
background: #000; | ||
color: #fff; | ||
text-align: center; | ||
} | ||
|
||
.link { | ||
.phenomicReference { | ||
font-size: 0.75rem; | ||
opacity: 0.4; | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
|
||
.reference { | ||
.phenomicReferenceName { | ||
font-weight: 100; | ||
} |
Oops, something went wrong.