Skip to content

Commit 6c8b3cf

Browse files
committed
fix(docs): book component
Fixes tests
1 parent 3abf2a7 commit 6c8b3cf

6 files changed

Lines changed: 42 additions & 37 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<div>
1+
<a [href]="href">
22
<img src="assets/book.png" alt="Book icon" />
33

44
<div class="card-content">
55
<h3>{{ header }}</h3>
66
<p>{{ text }}</p>
77
</div>
8-
</div>
8+
</a>

apps/scully-docs/src/app/components/book/book.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Component, Input, OnInit } from '@angular/core';
88
export class BookComponent implements OnInit {
99
@Input() header: string;
1010
@Input() text: string;
11+
@Input() href: string;
1112

1213
constructor() {}
1314

apps/scully-docs/src/app/landing/landing.component.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ main {
145145
.guide-2 {
146146
grid-column-start: inherit;
147147
grid-column-end: inherit;
148+
cursor: pointer;
148149
}
149150
}
150151

apps/scully-docs/src/app/landing/landing.component.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3>FEATURES</h3>
5454
[header]="'Runtime Tooling'"
5555
text="
5656
Scully gives developers the necessary tools
57-
to Jamstackify any Angular project,
57+
to Jamstackify any Angular project,
5858
including fine-grained control where needed.
5959
"
6060
[iconUrl]="'assets/machine-learning.png'"
@@ -109,15 +109,17 @@ <h3>TOOLS & RESOURCES</h3>
109109
</div>
110110

111111
<div class="container-tools">
112-
<div class="guide-1" [routerLink]="'/docs/getting-started'">
112+
<div class="guide-1">
113113
<app-book
114+
[href]="'docs/getting-started/'"
114115
[header]="'Guides'"
115116
[text]="'Easy step by step guides to help get you started.'"
116117
>
117118
</app-book>
118119
</div>
119-
<div class="guide-2" [routerLink]="'/docs/blog'">
120+
<div class="guide-2">
120121
<app-book
122+
[href]="'docs/blog/'"
121123
[header]="'Create a Blog'"
122124
[text]="
123125
'Easy step by step to create your own blog in less than 5 minutes.'

apps/scully-docs/src/styles.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ nav > app-button > a.router-link-active:active {
204204
}
205205

206206
/* BOOKS */
207-
app-book > div {
207+
app-book > a {
208208
width: 90%;
209209
margin: auto;
210210
min-height: 160px;
@@ -219,21 +219,22 @@ app-book > div {
219219
display: flex;
220220
justify-content: flex-start;
221221
align-items: center;
222+
text-decoration: none;
222223
}
223224

224-
app-book > div > img {
225+
app-book > a > img {
225226
height: 80px;
226227
margin: 40px;
227228
}
228229

229-
app-book > div > .card-content > h3 {
230+
app-book > a > .card-content > h3 {
230231
color: var(--scully-green);
231232
margin-bottom: 0;
232233
margin-top: 5px;
233234
text-align: left;
234235
}
235236

236-
app-book > div > .card-content > p {
237+
app-book > a > .card-content > p {
237238
text-align: left;
238239
line-height: 2;
239240
margin-bottom: 0;

0 commit comments

Comments
 (0)