Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/accounts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


</head>
<body>
<body style="background-color: black; color: whitesmoke;">

<nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top">
<a class="navbar-brand" href="{% url 'index' %}">ByteNet</a>
Expand Down
9 changes: 7 additions & 2 deletions templates/accounts/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{% extends "accounts/base.html" %}
{% block body_block %}
<div class="container">
<div class="jumbotron">
<div class="jumbotron bg-dark" style="text-align: center; ">
<div>
<img src="https://i.imgur.com/tojPIIH.gif" style="height: 30%;width: 30%; float: left; border-radius: 60%;">
<h1>Welcome to the ByteNet!</h1>
</div>

<p>An amazing social networking web-app</p>
{% if user.is_authenticated %}
<h2>Hello {{ user.username }}</h2>
Expand All @@ -12,13 +16,14 @@ <h2>Hello {{ user.username }}</h2>
{% block feed %}
{% endblock %}
{% else %}
<br>
<br>
<h2>Register or Login if you'd like to</h2>
<a class="btn btn-primary btn-block" href="{% url 'accounts:register' %}">Register</a>
<a class="btn btn-success btn-block" href="{% url 'accounts:user_login' %}">Login</a>
{% endif %}
</div>
<div class="jumbotron">
<div class="jumbotron bg-dark">
<h2>
About
</h2>
Expand Down
2 changes: 1 addition & 1 deletion templates/accounts/login.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends 'accounts/base.html' %}
{% block body_block %}
<div class="container">
<div class="jumbotron">
<div class="jumbotron bg-dark">
<h1>Login:</h1>
<br>
{% if error %}
Expand Down
4 changes: 2 additions & 2 deletions templates/accounts/register.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "accounts/base.html" %}
{% block body_block %}
<div class="container">
<div class="jumbotron">
<div class="jumbotron bg-dark">
{% if registered %}
<h1>Thank you for registering!</h1>
<br>
Expand All @@ -13,7 +13,7 @@ <h3>Just fill out the form.</h3>
{% csrf_token %}
{{ user_form.as_p }}
{{ profile_form.as_p }}
<input type="submit" name="" onclick="return IsEmptyOrDot();" value="Register">
<input type="submit" class="btn btn-success" name="" onclick="return IsEmptyOrDot();" value="Register">
</form>

{% include "accounts/username_script.html" %}
Expand Down
2 changes: 1 addition & 1 deletion templates/post/posts_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2>Bytes</h2>
<div class="container">
{% if posts_exist %}
{% for post in posts %}
<div class="container">
<div class="container" style="color: black;">
<div class="card">
<a href="{% url 'feed:profile_info' profile_username=author %}" class="text-dark"
style="text-decoration:none">
Expand Down
2 changes: 1 addition & 1 deletion templates/post/view_post.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2>Your post</h2>
<br>

<div class="container">
<div class="card rounded border border-dark bg-light">
<div class="card rounded border border-dark bg-light text-dark">

<h4 class="card-header h4 text-light bg-dark ">
<a href="{% url 'feed:profile_info' profile_username=post.author__username %}"
Expand Down