Skip to content

Commit

Permalink
page html tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancrneto committed Mar 15, 2024
1 parent 7792bf2 commit 898bb38
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 10 deletions.
54 changes: 51 additions & 3 deletions core/templates/core/home.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,58 @@
<!DOCTYPE html>
<html>
<body>

<h1>Adicione os jogos do seu time</h1>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">

<!DOCTYPE html>
{% load static %}
<html>
<head>
<title>BaheaCal - Adicione Jogos do Seu Time Favorito</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
padding-top: 20px;
}
h1 {
text-align: center;
margin-bottom: 30px;
font-size: 2.5rem; /* Responsive font size */
color: #007bff; /* Bootstrap primary color */
}
</style>
</head>
<body>
<div class="container">
<h1>Adicione Jogos do Seu Time</h1>
<div class="row mt-5">
<h2 class="col text-center">no calendário do seu celular</h2>
</div>
<div class="row mt-5">
<div class="col text-center">
<!-- Bahia Button -->
<a href="/calendar/init" class="btn btn-primary">
<img src="{% static 'icons/bahia.png' %}" alt="Bahia" style="height: 50px;"> Bahia
</a>
</div>
</div>
<div class="row mt-3">
<span class="col text-center">Em breve:</span>
</div>
<div class="row mt-3">
<!-- Disabled Buttons for Other Teams -->
<div class="col text-center">
<button class="btn btn-secondary disabled" disabled><img src="{% static 'icons/flamengo.png' %}" alt="Team 2" style="height: 20px;"> Flamengo</button>
<button class="btn btn-secondary disabled" disabled><img src="{% static 'icons/palmeiras.png' %}" alt="Team 3" style="height: 20px;"> Palmeiras</button>
<button class="btn btn-secondary disabled" disabled><img src="{% static 'icons/corinthians.png' %}" alt="Team 4" style="height: 20px;"> Corinthians</button>
<button class="btn btn-secondary disabled" disabled><img src="{% static 'icons/fluminense.png' %}" alt="Team 1" style="height: 20px;"> Fluminense</button>
<button class="btn btn-secondary disabled" disabled><img src="{% static 'icons/atletico.png' %}" alt="Team 5" style="height: 20px;"> Atlético</button>
</div>
</div>
</div>

<a href="/calendar/init/">Adicione os jogos do Bahia</a>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>

</body>
</html>
40 changes: 33 additions & 7 deletions core/templates/core/success.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
<!DOCTYPE html>
<html>

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">

<!DOCTYPE html>
{% load static %}
<html>
<head>
<title>BaheaCal - Adicione Jogos do Seu Time Favorito</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
padding-top: 20px;
}
h1 {
text-align: center;
margin-bottom: 30px;
font-size: 2.5rem; /* Responsive font size */
color: #007bff; /* Bootstrap primary color */
}
</style>
</head>
<body>
<div class="container">
<h1>Calendário Conectado!</h1>
{% if user.is_authenticated %}
<p class="col text-center">Obrigado, {{ user.username }}!</p>
{% else %}
<p class="col text-center">Obrigado, visitante!</p>
{% endif %}

{% if user.is_authenticated %}
<p>Obrigado, {{ user.username }}!</p>
{% else %}
<p>Obrigado, visitante!</p>
{% endif %}
<p class="col text-center">Os eventos começarão a aparecer em breve.</p>
</div>

<h1>Calendário Conectado!</h1>
<p>Os eventos começarão a aparecer em breve.</p>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>

</body>
</html>
Binary file added staticfiles/icons/atletico.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added staticfiles/icons/bahia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added staticfiles/icons/corinthians.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added staticfiles/icons/flamengo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added staticfiles/icons/fluminense.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added staticfiles/icons/palmeiras.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions webapp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.0/howto/static-files/

STATICFILES_DIRS = [
BASE_DIR / "staticfiles",
]

STATIC_URL = "static/"
STATIC_ROOT = "static"

Expand Down

0 comments on commit 898bb38

Please sign in to comment.