diff options
author | Wicklow <wicklow@framasoft.org> | 2023-02-16 12:31:45 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-02-20 13:52:22 +0100 |
commit | 35fe58c2f8f4a1ac0ede16b1a7d8763c25b8febe (patch) | |
tree | 9417b7a5854cc0084c557929c64dd4cfb21e2904 /client/src/app/+about/about-instance | |
parent | 27f84cc3371aaf519c1bb5c0cca9e728a9dd3967 (diff) | |
download | PeerTube-35fe58c2f8f4a1ac0ede16b1a7d8763c25b8febe.tar.gz PeerTube-35fe58c2f8f4a1ac0ede16b1a7d8763c25b8febe.tar.zst PeerTube-35fe58c2f8f4a1ac0ede16b1a7d8763c25b8febe.zip |
Refactoring style for about component
Diffstat (limited to 'client/src/app/+about/about-instance')
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.html | 14 | ||||
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.scss | 40 |
2 files changed, 12 insertions, 42 deletions
diff --git a/client/src/app/+about/about-instance/about-instance.component.html b/client/src/app/+about/about-instance/about-instance.component.html index f602ec1b5..5230b5c4e 100644 --- a/client/src/app/+about/about-instance/about-instance.component.html +++ b/client/src/app/+about/about-instance/about-instance.component.html | |||
@@ -1,22 +1,22 @@ | |||
1 | <div class="row"> | 1 | <div class="row"> |
2 | <div class="col-md-12 col-xl-6"> | 2 | <div class="col-md-12 col-xl-6"> |
3 | 3 | ||
4 | <div class="about-instance-title"> | 4 | <div class="d-flex justify-content-between"> |
5 | <h1 i18n class="title">About {{ instanceName }}</h1> | 5 | <h1 i18n class="fw-semibold pt-fs-5">About {{ instanceName }}</h1> |
6 | 6 | ||
7 | <a routerLink="/about/contact" i18n *ngIf="isContactFormEnabled" class="contact-admin">Contact us</a> | 7 | <a routerLink="/about/contact" i18n *ngIf="isContactFormEnabled" class="peertube-button-link orange-button h-100 d-flex align-items-center">Contact us</a> |
8 | </div> | 8 | </div> |
9 | 9 | ||
10 | <div class="instance-badges" *ngIf="categories.length !== 0 || languages.length !== 0"> | 10 | <div class="mb-4" *ngIf="categories.length !== 0 || languages.length !== 0"> |
11 | <span *ngFor="let category of categories" class="pt-badge badge-primary">{{ category }}</span> | 11 | <span *ngFor="let category of categories" class="pt-badge badge-primary">{{ category }}</span> |
12 | 12 | ||
13 | <span *ngFor="let language of languages" class="pt-badge badge-secondary">{{ language }}</span> | 13 | <span *ngFor="let language of languages" class="pt-badge badge-secondary">{{ language }}</span> |
14 | </div> | 14 | </div> |
15 | 15 | ||
16 | <div class="short-description"> | 16 | <div class="mt-2"> |
17 | <div class="block short-description">{{ shortDescription }}</div> | 17 | <div class="block">{{ shortDescription }}</div> |
18 | 18 | ||
19 | <div i18n *ngIf="isNSFW" class="block dedicated-to-nsfw">This instance is dedicated to sensitive/NSFW content.</div> | 19 | <div i18n *ngIf="isNSFW" class="block mt-4 fw-semibold">This instance is dedicated to sensitive/NSFW content.</div> |
20 | </div> | 20 | </div> |
21 | 21 | ||
22 | <div class="anchor" id="administrators-and-sustainability"></div> | 22 | <div class="anchor" id="administrators-and-sustainability"></div> |
diff --git a/client/src/app/+about/about-instance/about-instance.component.scss b/client/src/app/+about/about-instance/about-instance.component.scss index c01e690d1..7ff6539ca 100644 --- a/client/src/app/+about/about-instance/about-instance.component.scss +++ b/client/src/app/+about/about-instance/about-instance.component.scss | |||
@@ -1,29 +1,8 @@ | |||
1 | @use '_variables' as *; | 1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | .about-instance-title { | 4 | .pt-badge { |
5 | display: flex; | 5 | @include margin-right(5px); |
6 | justify-content: space-between; | ||
7 | |||
8 | .title { | ||
9 | font-size: 20px; | ||
10 | font-weight: $font-semibold; | ||
11 | } | ||
12 | |||
13 | .contact-admin { | ||
14 | @include peertube-button-link; | ||
15 | @include orange-button; | ||
16 | |||
17 | height: fit-content; | ||
18 | } | ||
19 | } | ||
20 | |||
21 | .instance-badges { | ||
22 | margin-bottom: 20px; | ||
23 | |||
24 | .pt-badge { | ||
25 | @include margin-right(5px); | ||
26 | } | ||
27 | } | 6 | } |
28 | 7 | ||
29 | .section-title { | 8 | .section-title { |
@@ -36,22 +15,13 @@ | |||
36 | 15 | ||
37 | .middle-title { | 16 | .middle-title { |
38 | @include in-content-small-title; | 17 | @include in-content-small-title; |
18 | @include margin-bottom(1.5rem); | ||
39 | 19 | ||
40 | margin-top: 0; | 20 | margin-top: 0; |
41 | margin-bottom: 25px; | ||
42 | } | 21 | } |
43 | 22 | ||
44 | .block { | 23 | .block { |
45 | margin-bottom: 75px; | 24 | @include margin-bottom(4.5rem); |
46 | } | ||
47 | |||
48 | .short-description { | ||
49 | margin-top: 10px; | ||
50 | } | ||
51 | |||
52 | .short-description .dedicated-to-nsfw { | ||
53 | margin-top: 20px; | ||
54 | font-weight: $font-semibold; | ||
55 | } | 25 | } |
56 | 26 | ||
57 | .anchor-link { | 27 | .anchor-link { |
@@ -77,4 +47,4 @@ | |||
77 | .section-title { | 47 | .section-title { |
78 | color: var(--mainForegroundColor); | 48 | color: var(--mainForegroundColor); |
79 | } | 49 | } |
80 | } | 50 | } \ No newline at end of file |