Created
October 29, 2015 09:29
-
-
Save hellyeah/8f4f65572eed83ddbd8d to your computer and use it in GitHub Desktop.
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
import Romans from "roman-numerals" | |
var toRoman = Romans.toRoman | |
console.log(toRoman(5)) | |
hackathons = [{title: "MHacks", organizer: "Dave Font", img: 'http://mhacks.com/images/mhacksIV.svg'}, | |
{title: "HackDuke", organizer: "Ashley Qian", img: 'http://mhacks.com/images/mhacksIV.svg'}, | |
{title: "HackHolyoke", organizer: "Eva Snyder", img: 'http://mhacks.com/images/mhacksV.svg'}, | |
{title: "Cal Hacks", organizer: "Evadora", img: 'http://mhacks.com/images/mhacksVI.svg'}] | |
cover = romanNumeral => `http://mhacks.com/images/mhacks${toRoman(romanNumeral+1)}.svg` | |
//hackathons = [{title: 'blah', author:'blahblah'}] | |
//books = [{title: 'Infinite Jest'}, {title: 'Sing with me'}] | |
view Main { | |
<h1>Peruse!</h1> | |
<h2>What would you like to read?</h2> | |
<hackathons repeat={hackathons}> | |
<h3>{_.title} by {_.organizer}</h3> | |
<img src={cover(_index)}/> | |
</hackathons> | |
// <Info hackathon={hackathons[0]} | |
$img = { | |
height: 100 | |
} | |
$h1 = { | |
color: 'blue', | |
fontSize: 25 | |
} | |
$h2 = { | |
fontSize: 18 | |
} | |
// $ = { | |
// color: 'lavender', | |
// alignItems: 'center', | |
// justifyContent: 'center' | |
// } | |
} | |
view Info { | |
<h3>{^hackathons.title}</h3> | |
<h4>{^hackathons.organizer}</h4> | |
<p>{^hackathons.img}</p> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment