Новые правки в компоенты
This commit is contained in:
parent
36a3d37ad3
commit
815986969a
19 changed files with 1703 additions and 143 deletions
|
|
@ -3,7 +3,7 @@ import RatingStars from './RatingStars.astro';
|
|||
|
||||
export interface Props {
|
||||
name: string;
|
||||
car: string;
|
||||
profession: string;
|
||||
text: string;
|
||||
rating: number;
|
||||
initial: string;
|
||||
|
|
@ -15,7 +15,7 @@ export interface Props {
|
|||
|
||||
const {
|
||||
name,
|
||||
car,
|
||||
profession,
|
||||
text,
|
||||
rating,
|
||||
initial,
|
||||
|
|
@ -45,7 +45,7 @@ const formatDate = (dateStr: string) => {
|
|||
</div>
|
||||
<div class="author-details">
|
||||
<h3 class="author-name">{name}</h3>
|
||||
<p class="author-car">{car}</p>
|
||||
<p class="author-profession">{profession}</p>
|
||||
</div>
|
||||
</div>
|
||||
<time class="review-date">{formatDate(date)}</time>
|
||||
|
|
@ -143,7 +143,7 @@ const formatDate = (dateStr: string) => {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.author-car {
|
||||
.author-profession {
|
||||
color: #64748b;
|
||||
font-size: 0.875rem;
|
||||
margin: 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue