This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate theme stuff into own folder.
- Loading branch information
Andreas Eldh
committed
Feb 27, 2015
1 parent
10baff3
commit 180faf8
Showing
51 changed files
with
65 additions
and
105 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,7 +1,7 @@ | ||
React = require 'react' | ||
Router = require 'react-router' | ||
Routes = require '../elements/Routes.coffee' | ||
require '../scss/main.scss' | ||
require '../theme/scss/main.scss' | ||
|
||
Router.run Routes, Router.HistoryLocation, (Handler) -> | ||
React.render React.createElement(Handler, {}), document.body | ||
React.render React.createElement(Handler, {}), document.body |
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,9 @@ | ||
React = require 'react' | ||
Router = require 'react-router' | ||
Routes = require '../elements/Routes.coffee' | ||
|
||
module.exports = (req) -> | ||
html = undefined | ||
Router.run Routes, req.url, (Handler) -> | ||
html = React.renderToString(React.createElement(Handler, null)) | ||
html |
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
React = require 'react' | ||
Router = require 'react-router' | ||
css = require '../theme/scss/main.scss' | ||
Routes = require '../elements/Routes.coffee' | ||
|
||
module.exports = (url) -> | ||
html = undefined | ||
Router.run Routes, url, (Handler) -> | ||
html = React.renderToStaticMarkup(React.createElement(Handler, null)) | ||
html |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
React = require('react') | ||
_ = require('lodash') | ||
|
||
{ div, p, h1 } = require 'react-coffee-elements' | ||
|
||
module.exports = React.createClass | ||
|
||
displayName: 'Theming' | ||
|
||
render: -> | ||
div {}, | ||
h1 'Theming' | ||
p 'Theming in antwar is pretty simple. Three files are required: main.scss, ThemeBody and Post.' | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,14 @@ | ||
React = require 'react' | ||
Nav = React.createFactory require './Nav' | ||
|
||
{ div, main } = require 'react-coffee-elements' | ||
|
||
module.exports = React.createClass | ||
|
||
displayName: 'ThemeBody' | ||
|
||
|
||
render: -> | ||
div { }, | ||
Nav() | ||
main { role: 'main' }, @props.children |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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