Fixed draft feature

This commit is contained in:
Ben Mosley
2026-04-23 11:28:18 -05:00
parent 7c9b904985
commit 199676800d
4 changed files with 12 additions and 6 deletions

Binary file not shown.

View File

@@ -6,7 +6,7 @@
<!-- Hero --> <!-- Hero -->
<section class="text-center py-20 bg-gradient-to-br from-orange-500/20 via-rose-500/10 to-fuchsia-500/10 text-white shadow-inner"> <section class="text-center py-20 bg-gradient-to-br from-orange-500/20 via-rose-500/10 to-fuchsia-500/10 text-white shadow-inner">
<h1 class="text-5xl font-extrabold mb-4">Contact Me</h1> <h1 class="text-5xl font-extrabold mb-4">Contact Me</h1>
<p class="text-lg opacity-90">Heres my professional contact card — lets connect!</p> <p class="text-lg opacity-90">Heres my contact card — lets connect!</p>
</section> </section>
<!-- vCard Section --> <!-- vCard Section -->
@@ -16,7 +16,7 @@
<!-- Avatar / Photo --> <!-- Avatar / Photo -->
<div class="flex-shrink-0"> <div class="flex-shrink-0">
<img src="{{ url_for('static', filename='Headshot.jpg') }}" alt="{{ CONTACT.name }}" <img src="{{ url_for('static', filename='Headshot.jpeg') }}" alt="{{ CONTACT.name }}"
class="w-40 h-40 rounded-full border-4 border-[rgb(var(--accent))] shadow-glass object-cover"> class="w-40 h-40 rounded-full border-4 border-[rgb(var(--accent))] shadow-glass object-cover">
</div> </div>

View File

@@ -29,7 +29,7 @@
<!-- Content --> <!-- Content -->
<div> <div>
<label for="content" class="block font-semibold mb-1">Post Content</label> <label for="content" class="block font-semibold mb-1">Post Content</label>
<textarea id="content" name="content" required <textarea id="content" name="content"
class="text-black bg-white w-full border border-gray-300 rounded px-4 py-2 leading-relaxed text-base focus:ring-2 focus:ring-orange-400 focus:outline-none resize-none overflow-hidden" class="text-black bg-white w-full border border-gray-300 rounded px-4 py-2 leading-relaxed text-base focus:ring-2 focus:ring-orange-400 focus:outline-none resize-none overflow-hidden"
rows="1"></textarea> rows="1"></textarea>
</div> </div>
@@ -77,12 +77,15 @@
<script src="https://unpkg.com/easymde/dist/easymde.min.js"></script> <script src="https://unpkg.com/easymde/dist/easymde.min.js"></script>
<script> <script>
new EasyMDE({ const easyMDE = new EasyMDE({
element: document.getElementById('content'), element: document.getElementById('content'),
spellChecker: false, spellChecker: false,
autosave: { enabled: true, uniqueId: 'new_blog' }, autosave: { enabled: true, uniqueId: 'new_blog' },
toolbar: ['bold','italic','heading','|','quote','unordered-list','ordered-list','|','link','image','|','preview','side-by-side','fullscreen','|','guide'], toolbar: ['bold','italic','heading','|','quote','unordered-list','ordered-list','|','link','image','|','preview','side-by-side','fullscreen','|','guide'],
}); });
document.querySelector('form').addEventListener('submit', function() {
easyMDE.codemirror.save();
});
</script> </script>
{% endblock %} {% endblock %}

View File

@@ -29,7 +29,7 @@
<!-- Content --> <!-- Content -->
<div> <div>
<label for="content" class="block font-semibold mb-1">Post Content</label> <label for="content" class="block font-semibold mb-1">Post Content</label>
<textarea id="content" name="content" required <textarea id="content" name="content"
class="text-black bg-white w-full border border-gray-300 rounded px-4 py-2 leading-relaxed text-base focus:ring-2 focus:ring-orange-400 focus:outline-none resize-none overflow-hidden" class="text-black bg-white w-full border border-gray-300 rounded px-4 py-2 leading-relaxed text-base focus:ring-2 focus:ring-orange-400 focus:outline-none resize-none overflow-hidden"
rows="1"></textarea> rows="1"></textarea>
</div> </div>
@@ -76,12 +76,15 @@
<script src="https://unpkg.com/easymde/dist/easymde.min.js"></script> <script src="https://unpkg.com/easymde/dist/easymde.min.js"></script>
<script> <script>
new EasyMDE({ const easyMDE = new EasyMDE({
element: document.getElementById('content'), element: document.getElementById('content'),
spellChecker: false, spellChecker: false,
autosave: { enabled: true, uniqueId: 'new_project' }, autosave: { enabled: true, uniqueId: 'new_project' },
toolbar: ['bold','italic','heading','|','quote','unordered-list','ordered-list','|','link','image','|','preview','side-by-side','fullscreen','|','guide'], toolbar: ['bold','italic','heading','|','quote','unordered-list','ordered-list','|','link','image','|','preview','side-by-side','fullscreen','|','guide'],
}); });
document.querySelector('form').addEventListener('submit', function() {
easyMDE.codemirror.save();
});
</script> </script>
{% endblock %} {% endblock %}