2020-07-15 08:18:13 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-08-08 06:12:33 +00:00
|
|
|
|
|
|
|
<div class="container" style="width:40%;">
|
2021-04-30 02:27:21 +00:00
|
|
|
<div class="submit content">
|
2020-08-08 06:12:33 +00:00
|
|
|
<h1>Submit A Meme</h1>
|
2021-04-25 20:13:02 +00:00
|
|
|
<h2>Rules</h2>
|
|
|
|
<ol>
|
2021-04-30 02:27:21 +00:00
|
|
|
<li>no super low effort memes</li>
|
2021-04-25 20:13:02 +00:00
|
|
|
<li>no nsfl and nsfw</li>
|
2022-09-01 06:02:31 +00:00
|
|
|
<!-- <li>must pertain to wownero or crypto in general</li> -->
|
2021-04-25 20:13:02 +00:00
|
|
|
</ol>
|
2021-04-30 02:27:21 +00:00
|
|
|
|
2020-08-08 06:12:33 +00:00
|
|
|
<form method=post enctype=multipart/form-data class="form-horizontal">
|
2022-09-01 06:02:31 +00:00
|
|
|
<div class="field">
|
|
|
|
<label class="label">Title</label>
|
|
|
|
<div class="control">
|
|
|
|
<input class="input" type="text" placeholder="So there I was..." name="title">
|
|
|
|
</div>
|
2020-08-08 06:12:33 +00:00
|
|
|
</div>
|
2022-09-01 06:02:31 +00:00
|
|
|
<div class="field">
|
|
|
|
<label class="label">Text</label>
|
|
|
|
<div class="control">
|
|
|
|
<textarea class="textarea" placeholder="balls deep in a jar of mayonnaise" name="text"></textarea>
|
|
|
|
</div>
|
2020-08-08 06:12:33 +00:00
|
|
|
</div>
|
2022-09-01 06:02:31 +00:00
|
|
|
<div id="file-js-example" class="file has-name">
|
|
|
|
<label class="file-label">
|
|
|
|
<input class="file-input" type="file" name="file">
|
|
|
|
<span class="file-cta">
|
|
|
|
<span class="file-icon">
|
|
|
|
<i class="fas fa-upload"></i>
|
|
|
|
</span>
|
|
|
|
<span class="file-label">
|
|
|
|
Upload a spicy meme
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="file-name">
|
|
|
|
No file uploaded
|
|
|
|
</span>
|
|
|
|
</label>
|
2020-08-08 06:12:33 +00:00
|
|
|
</div>
|
2022-09-01 06:02:31 +00:00
|
|
|
<div class="field mt-4">
|
|
|
|
<div class="control">
|
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox">
|
|
|
|
I agree to be hella based
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field is-grouped">
|
|
|
|
<div class="control">
|
|
|
|
<button class="button is-link">Submit</button>
|
|
|
|
</div>
|
2020-08-08 06:12:33 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-01 06:02:31 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
const fileInput = document.querySelector('#file-js-example input[type=file]');
|
|
|
|
fileInput.onchange = () => {
|
|
|
|
if (fileInput.files.length > 0) {
|
|
|
|
const fileName = document.querySelector('#file-js-example .file-name');
|
|
|
|
fileName.textContent = fileInput.files[0].name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2020-07-15 08:18:13 +00:00
|
|
|
{% endblock %}
|
2022-09-01 06:02:31 +00:00
|
|
|
|