Created
April 2, 2016 16:11
-
-
Save aeris/22d33a36637e046df7b7cfa95d3098d2 to your computer and use it in GitHub Desktop.
Calendrier révolutionnaire français 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'cgi' | |
require 'date' | |
cgi = CGI.new 'html5' | |
cgi.out { | |
cgi.html { | |
cgi.head { | |
cgi.meta(charset: 'utf-8') + | |
cgi.title { '#NuitDebout' } + | |
cgi.style { 'body { font-size: 30pt; } p { margin: auto; width: 75%; background-color: #eee; text-align: center; padding: 50px; border-radius: 20px; }'} | |
} + | |
cgi.body { | |
cgi.p { | |
"Aujourd’hui, nous sommes le #{31+(Date.today - Date.new(2016, 3, 31)).to_i} mars 2016" + | |
cgi.br + | |
cgi.br + | |
cgi.a(href: 'https://twitter.com/nuitdebout') { '@NuitDebout' } | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment