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 |
|
@ -1,6 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
{% include "head.html" %}
|
{% include "head.html" %}
|
||||||
<body id="about">
|
<body id="about">
|
||||||
<div class="centercubeplease">
|
<div class="centercubeplease">
|
||||||
<h1>So hey, you want to know more about me. Here u have!</h1>
|
<h1>So hey, you want to know more about me. Here u have!</h1>
|
||||||
|
@ -72,7 +72,6 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="/">IDK return back</a>
|
<a href="/">IDK return back</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -12,12 +12,22 @@
|
||||||
<li><a href="about/">About me</a></li>
|
<li><a href="about/">About me</a></li>
|
||||||
<li><a href="book/">Signbook</a></li>
|
<li><a href="book/">Signbook</a></li>
|
||||||
</ul>
|
</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>
|
<h2>-Funni gifs</h2>
|
||||||
<div class="img">
|
<div class="img">
|
||||||
{% for gif in gif_list %}
|
{% for gif in gif_list %}
|
||||||
<img
|
<img
|
||||||
style="max-height: 50px; width: auto"
|
style="max-height: 50px; width: auto"
|
||||||
src="{% static "gif/" %}{{gif.name}}"
|
src="{% static "icons/gif/" %}{{gif.name}}"
|
||||||
alt="{{gif.url}}"
|
alt="{{gif.url}}"
|
||||||
/>
|
/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -22,7 +22,9 @@ def index(request):
|
||||||
# Get list of 81x33 icons
|
# 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/")))
|
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
|
# 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:
|
if not ad or not banner_list or not gif_list:
|
||||||
return HttpResponseNotFound()
|
return HttpResponseNotFound()
|
||||||
else:
|
else:
|
||||||
|
@ -30,7 +32,8 @@ def index(request):
|
||||||
"title": "THE INDEX",
|
"title": "THE INDEX",
|
||||||
"ad": ad,
|
"ad": ad,
|
||||||
"banner_list": banner_list,
|
"banner_list": banner_list,
|
||||||
"gif_list": gif_list
|
"gif_list": gif_list,
|
||||||
|
"banger_list": banger_list,
|
||||||
}
|
}
|
||||||
return render(request,
|
return render(request,
|
||||||
"index.html", context)
|
"index.html", context)
|
||||||
|
|