Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Add guest user info
Browse files Browse the repository at this point in the history
  • Loading branch information
jackshendrikov committed Feb 6, 2021
1 parent 68e34ec commit 7e6ea57
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
19 changes: 9 additions & 10 deletions home/templates/home/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,19 @@
{% endif %}
</div>

{% if user.is_authenticated %}
{# <form class="search-bar" action="" method="get">#}
{# <input type="text" name="q" value="" placeholder="Search" id="q">#}
{# </form>#}
{# <form class="search-bar" action="" method="get">#}
{# <input type="text" name="q" value="" placeholder="Search" id="q">#}
{# </form>#}

<div class="header-profile">
<div class="header-profile">
{% if user.is_authenticated %}
{{ user.username }}
<img class="profile-img" src="{{ user|gravatar:60 }}" alt="avatar"/>
{% endif %}
<i id="xmas-version" style="color: green; font-size: 1.75rem; margin-left: 40px; cursor: pointer;" class="fa fa-tree" onclick="snowfall()"></i>
<i id="default-version" style="color: var(--theme-color); font-size: 1.5rem; display: none; margin-left: 40px; cursor: pointer;" class="fa fa-undo"></i>
</div>

<i id="xmas-version" style="color: green; font-size: 1.75rem; margin-left: 40px; cursor: pointer;" class="fa fa-tree" onclick="snowfall()"></i>
<i id="default-version" style="color: var(--theme-color); font-size: 1.5rem; display: none; margin-left: 40px; cursor: pointer;" class="fa fa-undo"></i>

</div>
{% endif %}
</div>

<div class="wrapper">
Expand Down
9 changes: 5 additions & 4 deletions home/templates/home/main.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{% extends "home/base.html" %}

{% block content %}
<h1>Welcome to JackShen World!</h1>
<p>
Some of my old and new projects on Django, as well as web design and web animation using HTML + CSS + JS
</p>
<h1>Welcome to JackShen World!</h1>
<p style="padding-bottom: 0.5rem;">NOTE: For login use -> <b>Login:</b> <i>guest</i> &nbsp;|&nbsp; <b>Password:</b> <i>!jack$hen.guest</i></p>
<p>
Some of my old and new projects on Django, as well as web design and web animation using HTML + CSS + JS
</p>

<div class='items'>
<div class='item'>
Expand Down

0 comments on commit 7e6ea57

Please sign in to comment.