From bed47d764d0341a994f91eeb90dfb649a44fd5e0 Mon Sep 17 00:00:00 2001 From: SondreB Date: Thu, 13 Apr 2023 11:06:23 +0200 Subject: [PATCH] Add a plus button for adding spaces --- src/app/connect/connect.css | 8 +++++- src/app/connect/connect.html | 50 ++++++++++++++++++++++++++---------- src/app/services/spaces.ts | 2 ++ 3 files changed, 46 insertions(+), 14 deletions(-) diff --git a/src/app/connect/connect.css b/src/app/connect/connect.css index e858ffc..75083f9 100644 --- a/src/app/connect/connect.css +++ b/src/app/connect/connect.css @@ -58,6 +58,12 @@ border-radius: 15px; } +.spaces-add { + max-width: 274px; + border-radius: 15px; + box-sizing: border-box; +} + .spaces-container { display: flex; flex-direction: row; @@ -66,7 +72,7 @@ } .spaces-header-image { - background-image: url('https://material.angular.io/assets/img/examples/shiba1.jpg'); + background-image: url("https://material.angular.io/assets/img/examples/shiba1.jpg"); background-size: cover; } diff --git a/src/app/connect/connect.html b/src/app/connect/connect.html index 230d6d9..4304c6a 100644 --- a/src/app/connect/connect.html +++ b/src/app/connect/connect.html @@ -22,6 +22,20 @@
+ + + +

New ways to connect with humanity

+

+

+

+

+

+ +

+
+
+

Spaces

@@ -45,7 +59,7 @@

- Space: {{space.comment}}

+ Space: {{space.comment}}

Relays: {{ space.relayCount }}
Relay Sync EnabledDisabled

@@ -55,21 +69,31 @@
+ +
+ +

+ Using Spaces, you can organize multiple identities and relays, isolating them from each other. It allows you to reuse your same identity across multiple relays, but with different profiles and content, including private and + authenticated relays. +

+

+ + + +

+
- - -

New ways to connect with humanity

-

-

-

-

-

- -

-
-
+ diff --git a/src/app/services/spaces.ts b/src/app/services/spaces.ts index 19588af..7870024 100644 --- a/src/app/services/spaces.ts +++ b/src/app/services/spaces.ts @@ -56,6 +56,8 @@ export class SpacesService { relaySync: false, }, ]; + + this.spaces = []; } } }