Browse Source

add styling!

Gesche 2 years ago
parent
commit
c8f8073904

+ 46
- 1
accounts/static/css/styles.css View File

@@ -1,5 +1,50 @@
1
+
2
+@font-face {
3
+  font-family: Martel;
4
+    src: url('../fonts/martel.eot');
5
+    src: local("Martel"), url('../fonts/martel.ttf');
6
+}
7
+
1 8
 .sidebar-nav {
2 9
     margin-top: 20px;
3 10
     padding: 0;
4 11
     list-style: none;
5
-}
12
+}
13
+
14
+.tibia-headline {
15
+  font-family: "Martel", Georgia, "Times New Roman", serif;
16
+  color: gold;
17
+  text-shadow: 2px 2px black;
18
+}
19
+
20
+.blog-header-logo {
21
+  font-family: "Martel", Georgia, "Times New Roman", serif;
22
+  font-size: 2.25rem;
23
+  color: gold;
24
+  text-shadow: 2px 2px black;
25
+}
26
+
27
+.text-gold {
28
+    color: gold;
29
+}
30
+
31
+body { background: lightgray !important; }
32
+
33
+a:visited {
34
+    color: darkgoldenrod !important;
35
+    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
36
+
37
+}
38
+
39
+
40
+a {
41
+      color: gold !important;
42
+    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
43
+
44
+}
45
+
46
+a:hover {
47
+    color: lightgoldenrodyellow !important;
48
+    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
49
+}
50
+

BIN
accounts/static/fonts/martel.eot View File


BIN
accounts/static/fonts/martel.ttf View File


+ 1
- 1
accounts/templates/add_character.html View File

@@ -1,7 +1,7 @@
1 1
 {% extends "base_generic.html" %}
2 2
 
3 3
 {% block content %}
4
-<h1>Add Character</h1>
4
+<h2 class="tibia-headline">Add Character</h2>
5 5
     <form method="post">{% csrf_token %}
6 6
     {{ form.as_p }}
7 7
     <input type="submit" value="Save">

+ 25
- 5
accounts/templates/base_generic.html View File

@@ -1,17 +1,33 @@
1 1
 <!DOCTYPE html>
2 2
 <html lang="en">
3 3
 <head>
4
-  {% block title %}<title>Ambitious Server</title>{% endblock %}
5
-  <meta name="viewport" content="width=device-width, initial-scale=1">
4
+  {% block title %}<title>SomeTibia</title>{% endblock %}
5
+  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6 6
   <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
7 7
   <!-- Add additional CSS in static file -->
8 8
   {% load static %}
9 9
   <link rel="stylesheet" href="{% static 'css/styles.css' %}">
10 10
 </head>
11 11
 <body>
12
+ <div class="container">
13
+  <header class="blog-header py-3">
14
+    <div class="row flex-nowrap justify-content-between align-items-center">
15
+      <div class="col-4 pt-1">
16
+
17
+      </div>
18
+      <div class="col-4 text-center">
19
+        <a class="blog-header-logo" href="{% url 'accounts:index' %}">SomeTibia</a>
20
+      </div>
21
+      <div class="col-4 d-flex justify-content-end align-items-center">
22
+        <a class="btn btn-sm btn-outline-secondary" href="{% url 'accounts:register' %}">Register now!</a>
23
+      </div>
24
+    </div>
25
+  </header>
26
+
27
+
12 28
   <div class="container-fluid">
13 29
     <div class="row">
14
-      <div class="col-sm-2">
30
+      <div class="col-sm-3">
15 31
       {% block sidebar %}
16 32
         <ul class="sidebar-nav">
17 33
         {% if user.is_authenticated %}
@@ -24,12 +40,16 @@
24 40
         {% if user.is_authenticated %}
25 41
           <li><a href="{% url 'accounts:characters' %}">My characters</a></li>
26 42
         {% endif %}
27
-          <li><a href="">All authors</a></li>
28 43
         </ul>
29 44
      {% endblock %}
30 45
       </div>
31
-      <div class="col-sm-10 ">{% block content %}{% endblock %}</div>
46
+      <div class="col-sm-9 ">{% block content %}{% endblock %}</div>
32 47
     </div>
33 48
   </div>
49
+
50
+  <!-- scripts -->
51
+  <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
52
+  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
53
+  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
34 54
 </body>
35 55
 </html>

+ 1
- 1
accounts/templates/index.html View File

@@ -1,7 +1,7 @@
1 1
 {% extends "base_generic.html" %}
2 2
 
3 3
 {% block content %}
4
-<h1>Highscore</h1>
4
+<h2 class="tibia-headline">Highscore</h2>
5 5
 
6 6
 {% if best_players %}
7 7
     <table style="width:50%">

+ 1
- 1
accounts/templates/login.html View File

@@ -1,7 +1,7 @@
1 1
 {% extends "base_generic.html" %}
2 2
 
3 3
 {% block content %}
4
-<h1>Login</h1>
4
+<h1 class="tibia-headline">Login</h1>
5 5
 
6 6
 <form method="post">
7 7
   {% csrf_token %}

+ 1
- 0
accounts/templates/players.html View File

@@ -1,6 +1,7 @@
1 1
 {% extends "base_generic.html" %}
2 2
 
3 3
 {% block content %}
4
+    <h2 class="tibia-headline">My Characters</h2>
4 5
     {%  if players %}
5 6
     <ul>
6 7
         {% for player in players %}

Loading…
Cancel
Save