competition page
|
@ -2,7 +2,7 @@
|
|||
page_menu = [
|
||||
('Home', '/'),
|
||||
#('About', '#about'),
|
||||
#('Competition', '/competition'),
|
||||
('Competition', '/competition'),
|
||||
('Contact', '#mailing-list-signup')]
|
||||
|
||||
banner_images = [
|
||||
|
|
|
@ -41,12 +41,8 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="headerstrip"><nav class="navstrip"><div class="left mini-logo">Maidstone Hackspace</div><div class="social"><div class="btn"><a href="https://twitter.com/share" class="twitter-share-button" data-via="MHackspace">Tweet</a></div><div class="btn"><script type="IN/Share" data-url="http://maidstone-hackspace.org.uk/" data-counter="right"></script></div><div class="btn"><div size="standard" class="g-plusone" data-href="http://maidstone-hackspace.org.uk/" data-size="medium" data-annotation="bubble" count="true"></div></div></div></nav></div>
|
||||
<nav id="leftNav" class="menu" ><ul><li class="active mi0"><a href="/" >Home</a></li><li class="mi1"><a href="#mailing-list-signup" >Contact</a></li></ul><div style="clear:both;"></div></nav>
|
||||
<div class="page" ><header class="pageHeader"><img src="/static/images/competitions/screw_sorting_competition_banner.jpg" alt="Screw sorting competition banner" align="middle" style="margin:auto;display:block;width:500px;" /></header><section class="pageSection"><p>Welcome to the first ever maidstone hackspace competition, we are a new hackspace, so we are looking to get the word out and get some collaberation going.The First cometition will be to design a device which can sort a jar of screws by size, the winning entry we will attempt to build.</p></section><section class="pageSection"><ul class="bullet-list" >
|
||||
<li>Submit designs by 31st of July</li>
|
||||
<li>Images can be design in any software or drawn on a piece of paper but must be submitted as a jpg on the mailing list.</li>
|
||||
<li>Stick figures and crude line drawing are fine, we are not judge your artistic ability.</li>
|
||||
</ul></section><section class="pageSection"><h2>Win a UNO Basic Starter Kit</h2></section><section class="pageSection"><p><img src="http://imgapp.banggood.com/thumb/large/2014/xiemeijuan/03/SKU208787/SKU208787a.jpg" alt="Arduino starter kit" align="middle" style="margin:auto;display:block;width:500px;" />This kit comes with an arduino board and various sensors and components, list below of every thing in the kit.<ul class="bullet-list" >
|
||||
<nav id="leftNav" class="menu" ><ul><li class="active mi0"><a href="/" >Home</a></li><li class="mi1"><a href="/competition" >Competition</a></li><li class="mi2"><a href="#mailing-list-signup" >Contact</a></li></ul><div style="clear:both;"></div></nav>
|
||||
<div class="page" ><header class="pageHeader"><img src="/static/images/competitions/screw_sorting_competition_banner.jpg" alt="Screw sorting competition banner" align="middle" style="margin:auto;display:block;width:500px;" /></header><section class="pageSection"><p>Welcome to the first Maidstone Hackspace challenge! A great opportunity for all to show off their creative flair and to join our community of makers, tinkerers, artists and more.</p><h2>The Challenge:</h2></section><section class="pageSection"><p>Design a device which can sort a jar of screws by size, the winning entry will be built by Maidstone Hackspace.</p></section><section class="pageSection"><p>Concepts can be designed in any software as long as the finished product is viewable without any specialist software e.g.JPG images. If you prefer to paint or draw we accept that too.</p></section><section class="pageSection"><p>Submissions must be via our mailing list. The closing date is the 31st of July, submissions after this date will not be entered.</p></section><section class="pageSection"><p><a title="Submit your image here." href="https://groups.google.com/forum/#!forum/maidstone-hackspace" >Submit your image here.</a></p></section><section class="pageSection"><h2>Win a UNO Basic Starter Kit</h2></section><section class="pageSection"><p><img src="http://imgapp.banggood.com/thumb/large/2014/xiemeijuan/03/SKU208787/SKU208787a.jpg" alt="Arduino starter kit" align="middle" style="margin:auto;display:block;width:500px;" />This kit comes with an arduino board and various sensors and components, list below of every thing in the kit.<ul class="bullet-list" >
|
||||
<li>1 x Arduino UNO R3 development board</li>
|
||||
<li>1 x USB cable</li>
|
||||
<li>1 x Prototype extension board</li>
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="headerstrip"><nav class="navstrip"><div class="left mini-logo">Maidstone Hackspace</div><div class="social"><div class="btn"><a href="https://twitter.com/share" class="twitter-share-button" data-via="MHackspace">Tweet</a></div><div class="btn"><script type="IN/Share" data-url="http://maidstone-hackspace.org.uk/" data-counter="right"></script></div><div class="btn"><div size="standard" class="g-plusone" data-href="http://maidstone-hackspace.org.uk/" data-size="medium" data-annotation="bubble" count="true"></div></div></div></nav></div>
|
||||
<nav id="leftNav" class="menu" ><ul><li class="active mi0"><a href="/" >Home</a></li><li class="mi1"><a href="#mailing-list-signup" >Contact</a></li></ul><div style="clear:both;"></div></nav>
|
||||
<nav id="leftNav" class="menu" ><ul><li class="active mi0"><a href="/" >Home</a></li><li class="mi1"><a href="/competition" >Competition</a></li><li class="mi2"><a href="#mailing-list-signup" >Contact</a></li></ul><div style="clear:both;"></div></nav>
|
||||
<div id="headerstrip"><nav class="navstrip"><div class="left mini-logo">Maidstone Hackspace</div><div class="social"></div></nav></div>
|
||||
<nav id="leftNav" class="menu" ><ul><li class="active mi0"><a href="/" >Home</a></li><li class="mi1"><a href="#mailing-list-signup" >Contact</a></li></ul><div style="clear:both;"></div></nav>
|
||||
<nav id="leftNav" class="menu" ><ul><li class="active mi0"><a href="/" >Home</a></li><li class="mi1"><a href="/competition" >Competition</a></li><li class="mi2"><a href="#mailing-list-signup" >Contact</a></li></ul><div style="clear:both;"></div></nav>
|
||||
<div class="page" ><header class="pageHeader"></header><section class="pageSection"><img src="/static/template/images/tile-01.jpg" alt="" class="tile-right" />
|
||||
<img src="/static/template/images/tile-01.jpg" alt="" class="tile-right" /><div class="banner-slide" ng-app="myApp" ng-controller="sliderController"><ul ng-switch on="currentSlide" ng-init="length=3;"><li class="slide" ng-switch-when="0"><img src="/static/template/images/hackspace-banner.png" /><div class="content">title<br />intro text</div></li><li class="slide" ng-switch-when="1"><img src="/static/template/images/example-01.jpg" /><div class="content">title<br />intro text</div></li><li class="slide" ng-switch-when="2"><img src="/static/template/images/example-02.jpg" /><div class="content">title<br />intro text</div></li><li style="clear:both;"></li></ul><div ng-click="prev()" title="Previous" role="button" class="slide-button left"><</div><div ng-click="next()" title="Next" role="button" class="slide-button right">></div></div><div class="clear"></div></section><section class="pageSection"><h2>Introduction</h2></section><section class="pageSection"><p>Hackspaces are a shared space where artists, designers, makers, hackers, programmers, tinkerers, professionals and hobbyists
|
||||
can work on their projects, share knowledge and collaborate.We are in the process of developing Maidstone Hackspace. We're previous members of <span class="info" title="Innovation center medway prototype">(ICMP)</span> and looking to form a new space in the future.
|
||||
|
|
|
@ -29,7 +29,7 @@ def header():
|
|||
|
||||
#web.header_strip.social(web.google_plus.create(web.template.domain, plus=True, share=False, comments=False).render())
|
||||
|
||||
web.header_strip.social(web.like.create(url=web.template.domain, plus=True, linkedin=True, twitter='MHackspace').render())
|
||||
web.header_strip.social(web.like.create(url=web.template.domain, plus=True, linkedin=True, facebook=True, twitter='MHackspace').render())
|
||||
web.template.body.append(web.header_strip.render())
|
||||
|
||||
# navigation
|
||||
|
@ -50,3 +50,10 @@ def footer():
|
|||
web.google_analytics.create('maidstone-hackspace.org.uk', 'UA-63373181-1')
|
||||
web.template.body.append(web.google_analytics.render())
|
||||
return web.render()
|
||||
|
||||
|
||||
class default_page:
|
||||
|
||||
def __enter__(self):
|
||||
header()
|
||||
return self
|
||||
|
|
|
@ -11,7 +11,7 @@ def index():
|
|||
web.template.body.append(web.header_strip.create({}).render())
|
||||
web.template.body.append(web.menu.render())
|
||||
web.page.create(web.title.create('IRC Chat Room').render())
|
||||
web.page.create(web.paragraph.create('Pop in and say hi, please be patient users tend to idle and will respond when they get a chance.').render())
|
||||
web.page.create(web.paragraph.create('Pop in and say hi, please be patient users tend to idle, but will like respond if given a chance.').render())
|
||||
web.page.section(web.chat.create('maidstone-hackspace').render())
|
||||
web.template.body.append(web.page.render())
|
||||
return footer()
|
||||
|
|
|
@ -44,6 +44,7 @@ features = [
|
|||
('1 x 9V battery',),
|
||||
('1 x 2.54mm 40pin pin header',)]
|
||||
|
||||
|
||||
def index():
|
||||
""" page for testing new components"""
|
||||
header()
|
||||
|
@ -57,19 +58,24 @@ def index():
|
|||
).render())
|
||||
|
||||
web.paragraph.create(
|
||||
"""Welcome to the first ever maidstone hackspace competition, we are a new hackspace, so we are looking to get the word out and get some collaberation going.""")
|
||||
web.paragraph.append(
|
||||
"""The First cometition will be to design a device which can sort a jar of screws by size, the winning entry we will attempt to build.""")
|
||||
"""Welcome to the first Maidstone Hackspace challenge! A great opportunity for all to show off their creative flair and to join our community of makers, tinkerers, artists and more.""")
|
||||
web.page.section(web.paragraph.render())
|
||||
|
||||
bullet_list = [
|
||||
("Submit designs by 31st of July", ),
|
||||
("Images can be design in any software or drawn on a piece of paper but must be submitted as a jpg on the mailing list.", ),
|
||||
("Stick figures and crude line drawing are fine, we are not judge your artistic ability.",)]
|
||||
web.page.append(web.title.create('The Challenge:').render())
|
||||
web.paragraph.create(
|
||||
"""Design a device which can sort a jar of screws by size, the winning entry will be built by Maidstone Hackspace.""").render()
|
||||
web.page.section(web.paragraph.render())
|
||||
web.paragraph.create(
|
||||
"""Concepts can be designed in any software as long as the finished product is viewable without any specialist software e.g.JPG images. If you prefer to paint or draw we accept that too.""")
|
||||
web.page.section(web.paragraph.render())
|
||||
web.paragraph.create(
|
||||
"""Submissions must be via our mailing list. The closing date is the 31st of July, submissions after this date will not be entered.""")
|
||||
web.page.section(web.paragraph.render())
|
||||
|
||||
web.paragraph.create(
|
||||
web.link.create('Submit your image here.', 'Submit your image here.', 'https://groups.google.com/forum/#!forum/maidstone-hackspace').render())
|
||||
web.page.section(web.paragraph.render())
|
||||
|
||||
web.list.create(ordered=False).set_classes('bullet-list')
|
||||
web.list * bullet_list
|
||||
web.page.section(web.list.render())
|
||||
|
||||
web.page.section(web.title.create('Win a UNO Basic Starter Kit', 2).render())
|
||||
|
||||
|
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
|
@ -23,29 +23,30 @@ class control(base_widget):
|
|||
self.facebook = facebook
|
||||
self.linkedin = linkedin
|
||||
|
||||
if plus:
|
||||
if plus is not None:
|
||||
if self.plus_script is False:
|
||||
self.plus_script = True
|
||||
if int(plus) > 0:
|
||||
self.includes.append("""<script type="text/javascript" async="true" defer="defer" src="https://apis.google.com/js/platform.js?publisherid=%s"></script>""" % self.plus)
|
||||
else:
|
||||
self.includes.append("""<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>""")
|
||||
|
||||
if twitter:
|
||||
if twitter is not None:
|
||||
if self.twitter_script is False:
|
||||
self.twitter_script = True
|
||||
self.footer.append("""
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>""")
|
||||
<script><!--//--><![CDATA[//><!--!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');\n//]]></script>""")
|
||||
|
||||
if linkedin:
|
||||
if linkedin is not None:
|
||||
if self.linkedin_script is False:
|
||||
self.linkedin_script = True
|
||||
self.footer.append("""
|
||||
<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>""")
|
||||
|
||||
if facebook:
|
||||
if facebook is not None:
|
||||
if self.facebook_script is False:
|
||||
self.facebook_script = True
|
||||
self.footer.append("""
|
||||
<div id="fb-root"></div><script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.3";fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script>""")
|
||||
|
||||
<div id="fb-root"></div><script><!--//--><![CDATA[//><!--(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.3";fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));\n//]]></script>""")
|
||||
return self
|
||||
|
||||
def render(self):
|
||||
|
|