// rendering lists
// https://x.com/stevekrouse/status/1523432108693200896
Notes
- // head media queries etc // https://x.com/stevekrouse/status/1523439630271455234
- // title & welcome // https://x.com/stevekrouse/status/1523430702926090240
- projects = [ // https://x.com/stevekrouse/status/1523433306364076032 ];
- // http://stevekrouse.com v2
- // mini hypscript html dsl in js // https://x.com/stevekrouse/status/1522747880473174016
- responsiveStyles = h('style', {}, ` .date { display: none; } li { padding-bottom: 10px !important; } @media (min-width: 768px) { #page { width: 55em !important } .date { display: inline !important} li { padding: 2px !important } }`);
- bootstrap = h('link', { rel: 'stylesheet', href: "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css", integrity: "sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ", crossorigin: "anonymous" });
- head = [ h('meta', { name: "viewport", content: "width=device-width, initial-scale=1, shrink-to-fit=no" }), responsiveStyles, bootstrap ];
- head.forEach(element => document.head.appendChild(element));
- // footer // https://x.com/stevekrouse/status/1523431032019570688
- // put page together & render it // https://x.com/stevekrouse/status/1523434440382242817
- // google analytics // https://x.com/stevekrouse/status/1523425242642669569
- projects = [ // https://x.com/stevekrouse/status/1523433306364076032 ]
- essays = [ // https://x.com/stevekrouse/status/1522763581191692290 ];
- podcasts = [ // https://x.com/stevekrouse/status/1523430769107955712 ]
- // rendering lists // https://x.com/stevekrouse/status/1523432108693200896
- // http://stevekrouse.com v1
- // mini hypscript html dsl in js // https://x.com/stevekrouse/status/1522747880473174016
- // head media queries etc // https://x.com/stevekrouse/status/1523429727586775041
- // title & welcome // https://x.com/stevekrouse/status/1523430702926090240
- page = h("div", { class: "container-fluid", style: "padding: 50px; margin-right: auto; margin-left: auto; width: 100%;", id: "page", }, pageElements )
- document.body.appendChild(page);
- pageElements = [ title, welcome, h("h4", {}, "Projects"), list(projects), h("h4", {}, "Essays"), list(essays), h("h4", {}, "Podcasts"), list(podcasts), footer ]
- { date: '2022 Jan 01', href: "https://zaplib.com", title: "Zaplib" }, { date: '2021 Mar 01', href: "http://updates.compose.run", title: "Compose" }, { date: '2017 Jul 13', href: "https://futureofcoding.org/", title: "Future of Coding" },
- { date: '2015 Sep 10', href: "http://coding.space", title: "The Coding Space Curriculum" }, { date: '2015 Jul 01', href: "http://thecodingspace.com", title: "The Coding Space" },
- { date: '2014 Jan 20', element: h('span', {}, ["Software Engineer @ ", h("a", { target: "_blank", href: "https://looker.com/" }, "Looker")]) },
- { date: '2013 Jun 20', element: h('span', {}, ["Software Engineer @ ", h("a", { target: "_blank", href: "http://firstround.com/" }, "First Round Capital")]) },
- { date: '2013 Jan 01', element: h('span', {}, ["Partner @ ", h("a", { target: "_blank", href: "http://dormroomfund.com/" }, "Dorm Room Fund")]) },
- { date: '2012 Sep 20', element: h('span', {}, ["Computer Science @ ", h("a", { target: "_blank", href: "http://www.cis.upenn.edu/index.php" }, "University of Pennsylvania")]) },
- renderLi = p => h("li", {}, [ h( "span", { class: "date", style: "color: #aaa; font-size: 90%; font-family: monospace;" }, `${http://p.date} - ` ), p.element || h("a", { target: "_blank", href: p.href }, p.title) ])
- function list(data) { return h("ul", { "class": "list-unstyled" }, http://data.map(renderLi)); }
- footer = h("div", { style: "color: #666; font-size: 90%;" }, [ h("a", { target: "_blank", href: "https://github.com/stevekrouse" }, "Github"), " | ", h("a", { target: "_blank", href: "https://medium.com/@stevekrouse" }, "Medium"), " | ",
- h("a", { target: "_blank", href: "https://x.com/stevekrouse" }, "Twitter"), " | ", h("a", { target: "_blank", href: "https://linkedin.com/in/stevekrouse" }, "LinkedIn") ])
- { date: '2017 Jul 13', href: "http://futureofcoding.org", title: "Future of Coding Podcast" }, { date: '2016 Oct 09', href: "https://soundcloud.com/blakebo/steve-krouse-on-dropping-out-of-the-ivy-league-to-live-the-silicon-valley-dream", title: "Off Trail Learning - Steve Krouse on Dropping Out of College to Live the Silicon Valley Dream" }
- title = h("div", {}, [ h("h3", { style: "color: #d86502" }, "Steve Krouse") ]);
- welcome = h("div",{style:"margin-top: 20px; margin-bottom: 20px; max-width: 600px;"}, [ h("p",{},"Hello, I'm Steve. I currently live in SF. I also spend time in NY."), h("p",{},"I am passionate about the future of computing, media, effective altruism & rationalism.") ]);
- head.forEach(element => document.head.appendChild(element));
- ga('create', 'UA-101485962-1', 'auto'); ga('send', 'pageview');
- https://x.com/stevekrouse/status/1522756127158509568