|
95 | 95 | margin-bottom: 0.5rem; |
96 | 96 | color: #495057; |
97 | 97 | } |
| 98 | + .auth-buttons { |
| 99 | + display: flex; |
| 100 | + gap: 0.5rem; |
| 101 | + } |
| 102 | + .btn-green { |
| 103 | + background-color: #28a745; |
| 104 | + border: none; |
| 105 | + color: white; |
| 106 | + transition: all 0.2s ease; |
| 107 | + } |
| 108 | + .btn-green:hover { |
| 109 | + background-color: #218838; |
| 110 | + color: white; |
| 111 | + } |
| 112 | + .btn-blue { |
| 113 | + background-color: #0d6efd; |
| 114 | + border: none; |
| 115 | + color: white; |
| 116 | + transition: all 0.2s ease; |
| 117 | + } |
| 118 | + .btn-blue:hover { |
| 119 | + background-color: #0b5ed7; |
| 120 | + color: white; |
| 121 | + } |
| 122 | + .btn-red { |
| 123 | + background-color: #dc3545; |
| 124 | + border: none; |
| 125 | + color: white; |
| 126 | + transition: all 0.2s ease; |
| 127 | + } |
| 128 | + .btn-red:hover { |
| 129 | + background-color: #c82333; |
| 130 | + color: white; |
| 131 | + } |
| 132 | + .user-info { |
| 133 | + display: flex; |
| 134 | + align-items: center; |
| 135 | + gap: 0.75rem; |
| 136 | + } |
| 137 | + .user-badge { |
| 138 | + background-color: #e9ecef; |
| 139 | + padding: 0.5rem 1rem; |
| 140 | + border-radius: 50px; |
| 141 | + color: #495057; |
| 142 | + font-weight: 500; |
| 143 | + font-size: 0.875rem; |
| 144 | + } |
98 | 145 | </style> |
99 | 146 | </head> |
100 | 147 | <body> |
|
105 | 152 | <h1 class="card-title mb-0">Multi-Agent Tracking Simulation Setup</h1> |
106 | 153 | <div> |
107 | 154 | {% if user.is_authenticated %} |
108 | | - <span class="badge bg-success me-2">Logged in as {{ user.username }}</span> |
109 | | - <a href="{% url 'accounts:profile' %}" class="btn btn-sm btn-outline-primary">My Profile</a> |
110 | | - <a href="{% url 'accounts:logout' %}" class="btn btn-sm btn-outline-danger">Logout</a> |
| 155 | + <div class="user-info"> |
| 156 | + <span class="user-badge">{{ user.username }}</span> |
| 157 | + <a href="{% url 'accounts:profile' %}" class="btn btn-sm btn-green">Profile</a> |
| 158 | + <a href="{% url 'accounts:logout' %}" class="btn btn-sm btn-red">Logout</a> |
| 159 | + </div> |
111 | 160 | {% else %} |
112 | | - <a href="{% url 'accounts:login' %}" class="btn btn-sm btn-outline-primary">Login</a> |
113 | | - <a href="{% url 'accounts:register' %}" class="btn btn-sm btn-outline-success">Register</a> |
| 161 | + <div class="auth-buttons"> |
| 162 | + <a href="{% url 'accounts:login' %}" class="btn btn-sm btn-green">Sign in</a> |
| 163 | + <a href="{% url 'accounts:register' %}" class="btn btn-sm btn-blue">Create account</a> |
| 164 | + </div> |
114 | 165 | {% endif %} |
115 | 166 | </div> |
116 | 167 | </div> |
@@ -152,7 +203,7 @@ <h5 class="mb-3">User algorithms</h5> |
152 | 203 |
|
153 | 204 | {% if not user.is_authenticated %} |
154 | 205 | <div class="info-tip mt-3"> |
155 | | - To add an algorithm create an account. Custom algorithms will have access to the necessary API. |
| 206 | + <span>📌</span> To add an algorithm create an account. Custom algorithms will have access to the necessary API. |
156 | 207 | <a href="{% url 'accounts:register' %}">Create account</a> |
157 | 208 | </div> |
158 | 209 | {% endif %} |
|
0 commit comments