mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-10 15:43:09 +00:00
publish v1
This commit is contained in:
commit
761e6d810a
21 changed files with 526 additions and 0 deletions
10
templates/editor/demo.html
Normal file
10
templates/editor/demo.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title>Demo</title>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{{ written }}
|
||||
{% endblock %}
|
18
templates/editor/editor.html
Normal file
18
templates/editor/editor.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Code Editor</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='editor.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="code" spellcheck="false" placeholder="<!DOCTYPE html>"></textarea>
|
||||
<iframe id="preview" width="100%" height="100%"></iframe>
|
||||
<div class="switch-container">
|
||||
<label for="previewSwitch">Preview</label>
|
||||
<input type="checkbox" id="previewSwitch">
|
||||
</div>
|
||||
<script src="{{ url_for('static', filename='editor.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
15
templates/editor/preview.html
Normal file
15
templates/editor/preview.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='typography.css') }}">
|
||||
<link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon.png') }}" />
|
||||
<title>Preview</title>
|
||||
</head>
|
||||
<body>
|
||||
<main id="main">
|
||||
{{ content }}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue