Skip to content

Commit 1fe4ce4

Browse files
committed
Remove header and move media area to top
1 parent 20c23bb commit 1fe4ce4

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

templates/exercise.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "default.html" %}
1+
{% extends "noheader.html" %}
22
{% block title %}{{ question.data.name }} - Lisp Tutor{% endblock %}
33
{% block head %}
44
<link rel="stylesheet" href="/static/codemirror.css">
@@ -42,16 +42,16 @@
4242
</div>
4343
<button class="modal-close is-large" aria-label="close"></button>
4444
</div>
45+
<style>
46+
#media-area{position:relative;padding-top:56.25%;margin-bottom:24px;}
47+
#media-area .media{position:absolute;top:0;right:0;width:100% !important;height:100% !important;}
48+
</style>
4549
<section class="section" style="flex: 1;">
4650
<div class="columns is-centered">
4751
<div class="column is-8">
52+
<div id="media-area"></div>
4853
<div id="desc-area" class="box">
49-
<style>
50-
#media-area{position:relative;width:100%;padding-top:56.25%;}
51-
#media-area .media{position:absolute;top:0;right:0;width:100% !important;height:100% !important;}
52-
</style>
5354
<div id="title" class="content"></div>
54-
<div id="media-area"></div>
5555
<div id="description" class="content"></div>
5656
</div>
5757
<div id="quest-area" class="box">

templates/noheader.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>{% block title %}{% endblock %}</title>
7+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
8+
<link rel="stylesheet" href="/static/bulma.css">
9+
{% block head %}{% endblock %}
10+
</head>
11+
<body style="display: flex; flex-direction: column; min-height: 100vh;">
12+
{% block content %}{% endblock%}
13+
<footer class="footer">
14+
<div class="container">
15+
<div class="content has-text-centered">
16+
<p>
17+
<strong>Lisp Tutor</strong> by <a href="https://github.com/tamamu">Eddie</a>. The source code is licensed
18+
<a href="http://opensource.org/licenses/mit-license.php">MIT</a>.
19+
</p>
20+
<p>
21+
<a class="icon" href="https://github.com/tamamu/cl-exercise">
22+
<i class="fa fa-github"></i>
23+
</a>
24+
</p>
25+
</div>
26+
</div>
27+
</footer>
28+
</body>
29+
</html>

0 commit comments

Comments
 (0)