cb2b11c1af729686fee7d62496b0ab0e05268d5b
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;
62 background-color:#0d8921;
65 .opportunity-action:hoverĀ {
71 <nav class="menu" role="navigation">
72 <div class="container">
73 <div class="navbar-header">
74 <a class="navbar-brand" href="/" >Opportunity</a>
78 <div class="container-fluid">
84 # Footer for a Opportunity page
85 class OpportunityFooter
88 redef fun rendering
do
93 <div class="well well-sm">
94 <p class="text-muted text-center">
95 Opportunity, the meetup planner.
97 <p class="text-muted text-center">
98 Proudly powered by <a href="http://nitlanguage.org/">Nit</a>!
108 # Any Opportunity page that contains the header, body and footer.
109 class OpportunityPage
112 var header
= new OpportunityHeader
114 var body
: Streamable = "" is writable
116 var footer
= new OpportunityFooter
118 redef fun rendering
do