publish v1

This commit is contained in:
Mathias DUPEUX 2025-03-05 15:41:26 +01:00
commit 761e6d810a
21 changed files with 526 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{% extends 'base.html' %}
{% block head %}
<title>Demo</title>
{% endblock %}
{% block content %}
{{ written }}
{% endblock %}

View 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>

View 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>