Skip to content

Commit 6fa8583

Browse files
committed
fix: External links in docs, and link to CTA component
1 parent b7d4c9f commit 6fa8583

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

src/app/components/home-things/cta/cta.component.ts

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,33 @@ import { RouterModule } from '@angular/router';
1616
Alternatively, check out our GitHub repo to run on your own infrastructure.
1717
</p>
1818
<div class="flex justify-center sm:justify-end w-full flex-wrap gap-3 my-3">
19+
<!-- View on GitHub GitHub -->
1920
<a href="https://github.com/lissy93/domain-locker" target="_blank" rel="noopener noreferrer">
20-
<p-button
21-
label="View on GitHub"
22-
severity="secondary"
23-
icon="pi pi-github"
24-
class="min-w-48"
25-
styleClass="w-full"
21+
<p-button
22+
label="View on GitHub"
23+
severity="secondary"
24+
icon="pi pi-github"
25+
class="min-w-48"
26+
styleClass="w-full"
2627
></p-button>
2728
</a>
28-
<a [href]=" isDemo ? 'https://domain-locker.com/login?newUser=true' : '#'">
29+
<!-- Get Started -->
30+
<a *ngIf="isDemo" href="https://domain-locker.com/login?newUser=true">
2931
<p-button
30-
routerLink="/login"
31-
[queryParams]="{ newUser: 'true' }"
32-
label="Get Started"
33-
class="min-w-48"
34-
icon="pi pi-arrow-circle-right"
35-
styleClass="w-full"
36-
></p-button>
32+
label="Get Started"
33+
class="min-w-48"
34+
icon="pi pi-arrow-circle-right"
35+
styleClass="w-full"
36+
/>
3737
</a>
38+
<p-button
39+
routerLink="/login"
40+
[queryParams]="{ newUser: 'true' }"
41+
label="Get Started"
42+
class="min-w-48"
43+
icon="pi pi-arrow-circle-right"
44+
styleClass="w-full"
45+
/>
3846
</div>
3947
</div>
4048
`,

src/app/pages/about/[slug].page.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
<h2>{{ linksTitle }}</h2>
55
<ul class="pl-4">
66
<li *ngFor="let link of links">
7-
<a [routerLink]="link.link" class="text-primary font-semibold no-underline">{{ link.title }}</a>
7+
<a *ngIf="link.link" [routerLink]="link.link" class="text-primary font-semibold no-underline">
8+
{{ link.title }}
9+
</a>
10+
<a *ngIf="link.href" [href]="link.href" class="text-primary font-semibold no-underline">
11+
{{ link.title }}
12+
</a>
813
@if (link.description) { - <span class="opacity-70 italic">{{ link.description }}</span> }
9-
1014
</li>
1115
</ul>
1216
</section>

0 commit comments

Comments
 (0)