Skip to content

Commit d4b4b1f

Browse files
committed
fix(docs): book component
Fix snaps
1 parent 9eba32c commit d4b4b1f

6 files changed

Lines changed: 294 additions & 9 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
@@ -203,7 +203,7 @@ nav > app-button > a.router-link-active:active {
203203
}
204204

205205
/* BOOKS */
206-
app-book > div {
206+
app-book > a {
207207
width: 90%;
208208
margin: auto;
209209
min-height: 160px;
@@ -218,21 +218,22 @@ app-book > div {
218218
display: flex;
219219
justify-content: flex-start;
220220
align-items: center;
221+
text-decoration: none;
221222
}
222223

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

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

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

0 commit comments

Comments
 (0)