design and authors
parent
081eb0459c
commit
bf3e214513
@ -0,0 +1,43 @@
|
|||||||
|
header {
|
||||||
|
text-align: center;
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
header object {
|
||||||
|
width: 100vmin;
|
||||||
|
height: auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
object svg {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
margin-top: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main > * + * {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767.98px) {
|
||||||
|
header object {
|
||||||
|
width: 75vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
:root {
|
:root {
|
||||||
--background: #ddd;
|
--background: #edd;
|
||||||
|
--color: black;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.8 KiB |
@ -0,0 +1,22 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Exquisite Branch</title>
|
||||||
|
<link rel="stylesheet" href="{{url_for('static', filename='css/variables.css')}}" />
|
||||||
|
<link rel="stylesheet" href="{{url_for('static', filename='css/global.css')}}" />
|
||||||
|
|
||||||
|
{%block head %}{%endblock%}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<nav>
|
||||||
|
{%block nav %}
|
||||||
|
<a href="{{url_for('home.home')}}">Home</a>
|
||||||
|
<a href="{{url_for('display.display')}}">Results</a>
|
||||||
|
{% endblock %}
|
||||||
|
</nav>
|
||||||
|
{%block contents %} {%endblock%}
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,37 +1,49 @@
|
|||||||
<!DOCTYPE html>
|
{%extends 'base.html' %} {%block head %}
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Display</title>
|
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/variables.css')}}" />
|
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/global.css')}}" />
|
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/display.css')}}" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Exquisite Branch</h1>
|
|
||||||
|
|
||||||
<div class="streams">
|
<link rel="stylesheet" href="{{url_for('static', filename='css/display.css')}}" />
|
||||||
{% for stream in streams %}
|
<title>Display</title>
|
||||||
<div
|
{%endblock%} {%block nav%}
|
||||||
class="stream"
|
<a href="{{url_for('home.home')}}">Home</a>
|
||||||
style="color: rgb({{ range(0, 255) | random }},{{ range(0, 255) | random }},{{ range(0, 255) | random }}); transform: translate({{ range(-5, 5) | random }}px, {{ range(-5, 5) | random }}px)"
|
<a href="{{url_for('draw.last')}}">Draw</a>
|
||||||
|
|
||||||
|
{%endblock%} {%block contents%}
|
||||||
|
|
||||||
|
<h1>Exquisite Branch</h1>
|
||||||
|
|
||||||
|
<div class="streams">
|
||||||
|
{% for stream in streams %}
|
||||||
|
<div
|
||||||
|
class="stream"
|
||||||
|
style="color: rgb({{ range(0, 255) | random }},{{ range(0, 255) | random }},{{ range(0, 255) | random }}); transform: translate({{ range(-5, 5) | random }}px, {{ range(-5, 5) | random }}px)"
|
||||||
|
>
|
||||||
|
{% for branch in stream %}
|
||||||
|
<div class="svg-container">
|
||||||
|
{{branch['content'] | safe}}
|
||||||
|
<span
|
||||||
|
class="author"
|
||||||
|
style="transform: translate({{ range(-50, 50) | random }}px, {{ range(-10, 10) | random }}px"
|
||||||
>
|
>
|
||||||
{% for branch in stream %} {{branch['content'] | safe}} {%endfor%}
|
{{ branch['username']}}
|
||||||
</div>
|
</span>
|
||||||
{%endfor%}
|
|
||||||
</div>
|
</div>
|
||||||
|
{%endfor%}
|
||||||
|
</div>
|
||||||
|
{%endfor%}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{colors}}
|
{{colors}}
|
||||||
|
|
||||||
<h2>Branches</h2>
|
<h2>Branches</h2>
|
||||||
<div class="branches">
|
<div class="branches">
|
||||||
{% for stream in streams %}
|
{% for stream in streams %}
|
||||||
<div class="branch">
|
<div class="branch">
|
||||||
{% for branch in stream %} {{branch['content'] | safe}} {%endfor%}
|
{% for branch in stream %}
|
||||||
</div>
|
<div class="svg-container">
|
||||||
{%endfor%}
|
{{branch['content'] | safe}}
|
||||||
|
<span class="author"> {{ branch['username']}} </span>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
{%endfor%}
|
||||||
</html>
|
</div>
|
||||||
|
{%endfor%}
|
||||||
|
</div>
|
||||||
|
{%endblock%}
|
||||||
|
@ -1,54 +1,51 @@
|
|||||||
<!DOCTYPE html>
|
{%extends 'base.html' %} {%block head %}
|
||||||
<html lang="en">
|
<title>Draw</title>
|
||||||
<head>
|
<link rel="stylesheet" href="{{url_for('static', filename='css/draw.css')}}" />
|
||||||
<meta charset="UTF-8" />
|
<script src="{{url_for('static', filename='js/draw.js')}}" defer></script>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Draw</title>
|
|
||||||
|
|
||||||
<script src="{{url_for('static', filename='js/draw.js')}}" defer></script>
|
{%endblock%} {%block nav%}
|
||||||
|
<a href="{{url_for('home.home')}}">Home</a>
|
||||||
|
<a href="{{url_for('display.display')}}">Results</a>
|
||||||
|
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/variables.css')}}" />
|
{%endblock%} {%block contents%}
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/global.css')}}" />
|
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/draw.css')}}" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Draw</h1>
|
|
||||||
<div id="divSmoothingFactor">
|
|
||||||
<label for="cmbBufferSize">Buffer size:</label>
|
|
||||||
<select id="cmbBufferSize">
|
|
||||||
<option value="1">1 - No smoothing</option>
|
|
||||||
<option value="4">4 - Sharp curves</option>
|
|
||||||
<option value="8" selected="selected">8 - Smooth curves</option>
|
|
||||||
<option value="12">12 - Very smooth curves</option>
|
|
||||||
<option value="16">16 - Super smooth curves</option>
|
|
||||||
<option value="20">20 - Hyper smooth curves</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="svg-container">
|
<h1>Draw</h1>
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
version="1.1"
|
|
||||||
id="svgElement"
|
|
||||||
x="0px"
|
|
||||||
y="0px"
|
|
||||||
width="500px"
|
|
||||||
height="500px"
|
|
||||||
viewBox="0 0 500 500"
|
|
||||||
enable-background="new 0 0 500 500"
|
|
||||||
xml:space="preserve"
|
|
||||||
data-parent="{{parent or None}}"
|
|
||||||
data-branch="{{branch}}"
|
|
||||||
></svg>
|
|
||||||
<div id="previous">{% if content %} {{content|safe}} {% endif %}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<form method="POST">
|
<div id="divSmoothingFactor">
|
||||||
<input type="hidden" name="branch" value="{{branch}}" />
|
<label for="cmbBufferSize">Smoothing</label>
|
||||||
<input type="hidden" name="content" />
|
<select id="cmbBufferSize">
|
||||||
<input type="submit" />
|
<option value="1">1 - No smoothing</option>
|
||||||
</form>
|
<option value="4">4 - Sharp curves</option>
|
||||||
</body>
|
<option value="8" selected="selected">8 - Smooth curves</option>
|
||||||
</html>
|
<option value="12">12 - Very smooth curves</option>
|
||||||
|
<option value="16">16 - Super smooth curves</option>
|
||||||
|
<option value="20">20 - Hyper smooth curves</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="svg-container">
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
version="1.1"
|
||||||
|
id="svgElement"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="500px"
|
||||||
|
height="500px"
|
||||||
|
viewBox="0 0 500 500"
|
||||||
|
enable-background="new 0 0 500 500"
|
||||||
|
xml:space="preserve"
|
||||||
|
data-parent="{{parent or None}}"
|
||||||
|
data-branch="{{branch}}"
|
||||||
|
></svg>
|
||||||
|
<div id="previous">{% if content %} {{content|safe}} {% endif %}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form method="POST">
|
||||||
|
<input type="hidden" name="branch" value="{{branch}}" />
|
||||||
|
<input type="hidden" name="content" />
|
||||||
|
<input type="text" name="username" placeholder="Name" />
|
||||||
|
<input type="submit" />
|
||||||
|
</form>
|
||||||
|
{%endblock%}
|
||||||
|
@ -1,24 +1,20 @@
|
|||||||
<!DOCTYPE html>
|
{%extends 'base.html' %} {%block head %}
|
||||||
<html lang="en">
|
<title>Share</title>
|
||||||
<head>
|
<link rel="stylesheet" href="{{url_for('static', filename='css/share.css')}}" />
|
||||||
<meta charset="UTF-8" />
|
<script src="{{url_for('static', filename='js/copy.js')}}" defer></script>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<title>Share</title>
|
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/variables.css')}}" />
|
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/global.css')}}" />
|
|
||||||
<link rel="stylesheet" href="{{url_for('static', filename='css/share.css')}}" />
|
|
||||||
|
|
||||||
<script src="{{url_for('static', filename='js/copy.js')}}" defer></script>
|
{%endblock%} {%block nav %}
|
||||||
</head>
|
<a href="{{url_for('home.home')}}">Home</a>
|
||||||
<body>
|
<a href="{{url_for('display.display')}}">Results</a>
|
||||||
<div class="share">
|
{% endblock %} {%block contents %}
|
||||||
Send this link to your friends:
|
|
||||||
<a
|
<div class="share">
|
||||||
href="{{url_for('draw.draw', parent=branch)}}"
|
Send this link to your friends:
|
||||||
data-copy="{{ url_for('draw.draw', parent=branch, _external=True, _scheme='https')}}"
|
<a
|
||||||
>{{ url_for('draw.draw', parent=branch, _external=True, _scheme='https')}}</a
|
href="{{url_for('draw.draw', parent=branch)}}"
|
||||||
>
|
data-copy="{{ url_for('draw.draw', parent=branch, _external=True, _scheme='https')}}"
|
||||||
</div>
|
>{{ url_for('draw.draw', parent=branch, _external=True, _scheme='https')}}</a
|
||||||
</body>
|
>
|
||||||
</html>
|
</div>
|
||||||
|
|
||||||
|
{%endblock%}
|
||||||
|
Loading…
Reference in New Issue