ee64f2102c1cb678a14ac51c302d3de8da3723e6
1 # This file is part of NIT ( http://www.nitlanguage.org ).
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License
15 # Contains the main components of a webpage for Opportunity
20 # Header for a Opportunity page
21 class OpportunityHeader
24 # Javascript code that is included in the `OpportunityPage`
25 var page_js
= "" is writable
27 redef fun rendering
do
32 <title>Opportunity - The meetup planner</title>
33 <meta charset="utf-8">
34 <meta name="viewport" content="width=device-width, initial-scale=1">
35 <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
36 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
37 <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
43 background-color: #0d8921;
44 background-repeat: repeat-x;
57 background-color: #0d8921;
63 .opportunity-action:hoverĀ {
69 <nav class="menu" role="navigation">
70 <div class="container">
71 <div class="navbar-header">
72 <a class="navbar-brand" href="./" >Opportunity</a>
76 <div class="container">
82 # Footer for a Opportunity page
83 class OpportunityFooter
86 redef fun rendering
do
91 <div class="well well-sm">
92 <p class="text-muted text-center">
93 Opportunity, the meetup planner.
95 <p class="text-muted text-center">
96 Proudly powered by <a href="http://nitlanguage.org/">Nit</a>!
106 # Any Opportunity page that contains the header, body and footer.
107 class OpportunityPage
110 var header
= new OpportunityHeader
112 var body
: Streamable = "" is writable
114 var footer
= new OpportunityFooter
116 redef fun rendering
do