From 56de2362a01089c8a5ca3c6e1affcade00ffdfce Mon Sep 17 00:00:00 2001
From: Andrew Godwin
Date: Sat, 5 Nov 2022 20:10:39 -0600
Subject: Some user icon stuff
---
static/css/style.css | 36 +++++++++++++++++++--
static/img/unknown-icon-128.png | Bin 0 -> 2864 bytes
static/img/unknown_icon.svg | 67 ++++++++++++++++++++++++++++++++++++++++
takahe/urls.py | 1 +
templates/base.html | 18 +++++++++--
templates/identity/select.html | 14 ++++++++-
templates/identity/view.html | 3 ++
users/views/identity.py | 24 +++++++++++++-
8 files changed, 157 insertions(+), 6 deletions(-)
create mode 100644 static/img/unknown-icon-128.png
create mode 100644 static/img/unknown_icon.svg
diff --git a/static/css/style.css b/static/css/style.css
index 93672c0..69eaa44 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -97,6 +97,8 @@ header {
}
header h1 {
+ font-family: "Raleway";
+ font-weight: normal;
background: var(--color-fg2);
padding: 10px 7px 7px 7px;
font-size: 130%;
@@ -104,6 +106,12 @@ header h1 {
color: var(--color-fg1);
}
+header h1 img {
+ display: inline;
+ vertical-align: top;
+ margin: 0 3px 0 0;
+}
+
header a {
color: inherit;
text-decoration: none;
@@ -117,8 +125,9 @@ header menu {
}
header menu li {
- padding: 20px 10px 7px 10px;
+ padding: 10px 10px 7px 10px;
color: #eee;
+ line-height: 32px;
}
main {
@@ -150,10 +159,28 @@ main {
.modal .option {
display: block;
- padding: 20px 30px;
+ padding: 15px 20px;
color: var(--color-text-main);
text-decoration: none;
border-left: 3px solid transparent;
+ line-height: 32px;
+}
+
+.modal .option img {
+ display: inline;
+ vertical-align: middle;
+ margin: 0 10px 3px 0;
+}
+
+.modal .option i {
+ display: inline-block;
+ vertical-align: middle;
+ width: 32px;
+ height: 32px;
+ text-align: center;
+ line-height: 32px;
+ font-size: 150%;
+ margin: 0 10px 3px 0;
}
.modal a.option:hover {
@@ -165,6 +192,11 @@ main {
color: var(--color-text-dull);
}
+.modal .option small {
+ margin: 0 0 0 5px;
+ color: var(--color-text-dull);
+}
+
.modal form {
padding: 10px 10px 1px 10px;
}
diff --git a/static/img/unknown-icon-128.png b/static/img/unknown-icon-128.png
new file mode 100644
index 0000000..0bfef8e
Binary files /dev/null and b/static/img/unknown-icon-128.png differ
diff --git a/static/img/unknown_icon.svg b/static/img/unknown_icon.svg
new file mode 100644
index 0000000..0801de8
--- /dev/null
+++ b/static/img/unknown_icon.svg
@@ -0,0 +1,67 @@
+
+
+
+
diff --git a/takahe/urls.py b/takahe/urls.py
index c43e4fa..d6e4d8f 100644
--- a/takahe/urls.py
+++ b/takahe/urls.py
@@ -14,6 +14,7 @@ urlpatterns = [
path("@/actor/", identity.Actor.as_view()),
path("@/actor/inbox/", identity.Inbox.as_view()),
# Identity selection
+ path("@/activate/", identity.ActivateIdentity.as_view()),
path("identity/select/", identity.SelectIdentity.as_view()),
path("identity/create/", identity.CreateIdentity.as_view()),
# Well-known endpoints
diff --git a/templates/base.html b/templates/base.html
index 4dc62ca..af2887f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -13,11 +13,25 @@
-
+