eaae527475c890800c8cd6d943a069b5b89dd9d2
[nit.git] / contrib / opportunity / src / templates / welcome.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
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
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
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
14
15 # Welcome page for Opportunity
16 module welcome
17
18 import boilerplate
19
20 # Welcome page for Opportunity
21 class OpportunityHomePage
22 super OpportunityPage
23
24 init do
25 body = """
26 <div class="page-header">
27 <h1 class="text-center">Welcome to opportunity !</h1>
28 </div>
29 <p class="text-center">
30 <p class="text-center">Opportunity is a free (as in free software), easy-to-use, meetup planifier.</p>
31 <p class="text-center">You can start using it right now by creating a new Meetup and sharing it with your friends!</p>
32 <p class="text-center">
33 <form action="new_meetup">
34 <button type="submit" class="btn btn-lg center-block btn-success">Create a Meetup</button>
35 </form>
36 </p>
37 </p>
38 """
39 end
40
41 end