Skip to content

Commit

Permalink
Web Groups Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed Sep 26, 2014
1 parent f3f7328 commit 6477a6b
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 29 deletions.
7 changes: 3 additions & 4 deletions LICENCE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the <ORGANIZATION> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the <ORGANIZATION> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Brython - Python in the browser
www.brython.info
www.brython.info
6 changes: 6 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
#


"""Simple HTTP Server for Brython Development."""


import sys
import os
from webbrowser import open_new_tab


try:
Expand All @@ -20,5 +24,7 @@

server_address, handler = ('', 8000), CGIHTTPRequestHandler
httpd = server.HTTPServer(server_address, handler)
print(__doc__)
print(("Server running on port http://localhost:{}.".format(server_address[1])))
open_new_tab("http://localhost:{}/site/".format(server_address[1]))
httpd.serve_forever()
98 changes: 74 additions & 24 deletions site/groups.html
Original file line number Diff line number Diff line change
@@ -1,35 +1,85 @@
<!doctype html>
<html>
<head>
<meta name="description" content="Brython">
<meta name="keywords" content="Python,Brython">
<meta name="author" content="Pierre Quentel">
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Brython</title>
<link rel="stylesheet" href="doc/doc_brython.css">
<script src="../src/brython.js"></script>

<script type="text/python3">
import header
<head>
<title>Brython</title>
<meta charset="UTF-8">
<meta name="description" content="Brython">
<meta name="author" content="Pierre Quentel">
<meta name="keywords" content="Python, Brython">
<meta http-equiv="content-type" content="text/html">
<link rel="stylesheet" href="doc/doc_brython.css">
<link rel="shortcut icon" href="brython.png" type="image/x-icon">
<style>
.letter {
background-color: #fff;
background-image:
linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
linear-gradient(#eee .1em, transparent .1em);
background-size: 100% 1.2em;
box-shadow:0 0 10px rgba(0,0,0,.3);
margin:26px auto 0;
max-width:666px;
min-height:100px;
padding:24px;
position:relative;
width:80%;
font-family:Helvetica, sans-serif;
text-align:center
}
.letter:before, .letter:after {
content:"";
height:98%;
position:absolute;
width:99%;
z-index:-1
}
.letter:before {
background:#fafafa;
box-shadow:0 0 9px rgba(0,0,0,.5);
left:-9px;
top:9px;
transform:rotate(-5deg)
}
.letter:after {
background:#f6f6f6;
box-shadow:0 0 9px rgba(0,0,0,.5);
right:-5px;
top:5px;
transform:rotate(5deg)
}
.letter > ul {
line-height:2em;
list-style-type:none;
font-size: 20px
}
</style>
<script src="../src/brython.js"></script>
<script type="text/python3">
import header
qs_lang, language = header.show()
</script>

qs_lang,language = header.show()
</script>
</head>

<body onload="brython(1)">

<table id="banner" cellpadding=0 cellspacing=0>
<tr id="banner_row">
</tr>
</table>
<table id="banner" cellpadding=0 cellspacing=0>
<tr id="banner_row">
</table>

<div style="text-align:center">
<H2 id="groups">Groups</H2>
<div class="letter">
<h1 id="groups">Groups</h1>
<hr>
<ul>
<li><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython" target=_blank >Group (English)</a>
<li><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython-fr" target=_blank >Groupe (français)</a>
<li><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython-es" target=_blank >Grupo (español)</a>
<li><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython-pt" target=_blank >Grupo (português)</a>
<li><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython-it" target=_blank >Gruppo (italiano)</a>
</ul>
</div>

<p><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython" target="_blank">Group (English)</a>
<br><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython-fr" target="_blank">Groupe (français)</a>
<br><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython-es" target="_blank">Grupo (español)</a>
<br><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython-pt" target="_blank">Grupo (português)</a>
<br><a href="https://groups.google.com/forum/?fromgroups=#!forum/brython-it" target="_blank">Gruppo (italiano)</a>
</div>
</body>

</html>

0 comments on commit 6477a6b

Please sign in to comment.