organiced some icons index separating gifs banners
Before Width: | Height: | Size: 125 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 7.2 MiB After Width: | Height: | Size: 7.2 MiB |
Before Width: | Height: | Size: 438 KiB After Width: | Height: | Size: 438 KiB |
Before Width: | Height: | Size: 272 KiB After Width: | Height: | Size: 272 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
@ -72,7 +72,6 @@
|
|||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="/">IDK return back</a>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -12,12 +12,22 @@
|
|||
<li><a href="about/">About me</a></li>
|
||||
<li><a href="book/">Signbook</a></li>
|
||||
</ul>
|
||||
<h2>-Banners</h2>
|
||||
<div class="img">
|
||||
{% for gif in banger_list %}
|
||||
<img
|
||||
style="max-height: 50px; width: auto"
|
||||
src="{% static "icons/banner/" %}{{gif.name}}"
|
||||
alt="{{gif.url}}"
|
||||
/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<h2>-Funni gifs</h2>
|
||||
<div class="img">
|
||||
{% for gif in gif_list %}
|
||||
<img
|
||||
style="max-height: 50px; width: auto"
|
||||
src="{% static "gif/" %}{{gif.name}}"
|
||||
src="{% static "icons/gif/" %}{{gif.name}}"
|
||||
alt="{{gif.url}}"
|
||||
/>
|
||||
{% endfor %}
|
||||
|
|
|
@ -22,7 +22,9 @@ def index(request):
|
|||
# Get list of 81x33 icons
|
||||
banner_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/88x31/")))
|
||||
# Get list of funni gifs
|
||||
gif_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/gif/")))
|
||||
gif_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/gif/")))
|
||||
# Get list of banners
|
||||
banger_list = image_dict_from_name_list(os.listdir(os.path.join(os.path.dirname(os.path.dirname(__file__)), "webpage", "static/icons/banner/")))
|
||||
if not ad or not banner_list or not gif_list:
|
||||
return HttpResponseNotFound()
|
||||
else:
|
||||
|
@ -30,7 +32,8 @@ def index(request):
|
|||
"title": "THE INDEX",
|
||||
"ad": ad,
|
||||
"banner_list": banner_list,
|
||||
"gif_list": gif_list
|
||||
"gif_list": gif_list,
|
||||
"banger_list": banger_list,
|
||||
}
|
||||
return render(request,
|
||||
"index.html", context)
|
||||
|
|