adjusting some static

pull/3/head
lalanza808 5 years ago
parent ba4e8894ff
commit 9499902c59

@ -6,6 +6,9 @@ from . import views
urlpatterns = [
path('', views.home, name='home'),
path('robots.txt', lambda x: HttpResponse("User-Agent: *\nDisallow: /", content_type="text/plain"), name="robots_file"),
path('faqs/', views.get_faqs, name='get_faqs'),
path('privacy/', views.get_privacy, name='get_privacy'),
path('terms/', views.get_terms, name='get_terms'),
path('health/', views.health, name='health'),
path('shipping/edit/', views.edit_shipping, name='edit_shipping'),
]

@ -29,6 +29,16 @@ def health(request):
return JsonResponse(context)
def get_faqs(request):
return render(request, 'core/faqs.html')
def get_privacy(request):
return render(request, 'core/privacy.html')
def get_terms(request):
return render(request, 'core/terms.html')
@login_required
def edit_shipping(request):
profile = UserShippingAddress.objects.filter(user=request.user).first()

@ -1160,6 +1160,15 @@ New color: fd4e05
list-style: none;
}
#donation-address {
text-align: center;
width: 50%;
overflow-wrap: break-word;
display: block;
margin: auto;
color: grey;
}
html {
height: 100%;
}

@ -1 +0,0 @@
nobody has asked me anything yet :(

@ -1,3 +0,0 @@
Privacy Policy
I'll do my best, dawg.

@ -1,3 +0,0 @@
Terms and Conditions
You agree to not be an asshole and that nothing that happens on this site is my fault in any way.

@ -103,7 +103,15 @@
<header id="header">
<h1><a href="{% url 'home' %}">{{ site_meta.name }}</a></h1>
<nav id="nav"></nav>
<nav id="nav">
<ul>
{% if user.is_authenticated %}
<li><a href="{% url 'logout' %}">Logout ({{ request.user }})</a></li>
{% else %}
<li><a href="{% url 'login' %}">Login</a></li>
{% endif %}
</ul>
</nav>
</header>
{% if messages %}
@ -139,15 +147,12 @@
<footer id="footer">
<div class="container">
<ul class="copyright">
<!-- <li>&copy; {{ site_meta.name }} 2019. All Rights Reserved.</li> -->
</ul>
<ul class="copyright">
<li><a href="{% static 'privacy.txt' %}">Privacy</a></li>
<li><a href="{% static 'terms.txt' %}">Terms</a></li>
<li><a href="{% static 'faq.txt' %}">FAQ</a></li>
<li><a href="{% url 'get_faqs' %}">Privacy</a></li>
<li><a href="{% url 'get_privacy' %}">Terms</a></li>
<li><a href="{% url 'get_terms' %}">FAQ</a></li>
</ul>
<br>
<p class="text-muted" style="text-align:center;">Donations Accepted:<br> {{ site_meta.donation_address }}</p>
<p id="donation-address"><strong>Donation Address</strong>:<br> {{ site_meta.donation_address }}</p>
</div>
</footer>

@ -0,0 +1,16 @@
{% extends 'base.html' %}
{% block content %}
<section id="main" class="wrapper">
<div class="container">
<header class="minor">
<h2>Frequently Asked Questions</h2>
</header>
<section>
<p class="sale-info">nobody has asked me anything yet :(</p>
</section>
</div>
</section>
{% endblock %}

@ -0,0 +1,16 @@
{% extends 'base.html' %}
{% block content %}
<section id="main" class="wrapper">
<div class="container">
<header class="minor">
<h2>Privacy Policy</h2>
</header>
<section>
<p class="sale-info">I'll do my best, dawg.</p>
</section>
</div>
</section>
{% endblock %}

@ -0,0 +1,16 @@
{% extends 'base.html' %}
{% block content %}
<section id="main" class="wrapper">
<div class="container">
<header class="minor">
<h2>Terms and Conditions</h2>
</header>
<section>
<p class="sale-info">You agree to not be an asshole and that nothing that happens on this site is my fault in any way.</p>
</section>
</div>
</section>
{% endblock %}

@ -63,6 +63,7 @@
{% elif sale.item_received %}
<p class="sale-info">Hey {{ sale.bid.bidder.username }},</p>
<p class="sale-info">It sounds like your order was successful. The seller will be sent their funds from the transaction out of the escrow wallet. You are good to go!</p>
<p class="sale-info">If you found the site useful and had a good experience, please consider donating to the developer address provided on the home page.</p>
<p class="sale-info">Thanks for using {{ site_meta.name }}!</p>
<hr>
<p class="sale-info">Please provide me with any feedback so I can make the process better in the future.</p>
@ -120,6 +121,8 @@
<p class="sale-info"><strong>Platform Fee (XMR)</strong>: {{ sale.platform_fee_xmr }}</p>
<p class="sale-info"><strong>Total Payout (XMR)</strong>: {{ total_seller_payout }}</p>
<p class="sale-info"><strong>Payout Address</strong>: {{ sale.item.payout_address }}</p>
<br>
<p class="sale-info">If you found the site useful and had a good experience, please consider donating to the developer address provided on the home page.</p>
<p class="sale-info">Thanks for using {{ site_meta.name }}!</p>
<hr>
<p class="sale-info">Please provide me with any feedback so I can make the process better in the future.</p>