Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alba María Álvarez
/
front_recipes
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
851ba2ca
authored
Aug 23, 2025
by
Alba María Álvarez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat(RecipeCard): creado componente para la presentación de recetas
parent
1a85a23b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
src/components/RecipeCard.vue
src/components/RecipeCard.vue
0 → 100644
View file @
851ba2ca
<
template
>
<div
class=
"card h-100 card-custom"
style=
"max-width: 600px; flex-grow: 1;"
>
<div
class=
"row g-0 h-100"
>
<div
class=
"col-md-5 d-flex align-items-stretch"
>
<img
src=
"/src/assets/default recipe.jpg"
class=
"img-fluid w-100 h-100 rounded-start"
style=
"object-fit: cover;"
alt=
"Imagen receta"
>
</div>
<div
class=
"col-md-7 d-flex flex-column"
>
<div
class=
"card-body flex-grow-1 d-flex flex-column"
>
<div
class=
"text-start"
>
<h5
class=
"fw-bolder mb-2"
>
Nombre de la receta
</h5>
<div
class=
"d-flex small text-warning mb-2"
>
<div
class=
"bi-star-fill me-1"
></div>
<div
class=
"bi-star-fill me-1"
></div>
<div
class=
"bi-star-fill me-1"
></div>
<div
class=
"bi-star-fill me-1"
></div>
<div
class=
"bi-star-fill"
></div>
</div>
<p
class=
"fs-8"
>
Auto-layout for flexbox grid columns also means you can set the width of one
column and have the sibling columns automatically resize around it. You may use predefined grid classes.
</p>
</div>
</div>
<div
class=
"card-footer border-top-0 bg-transparent"
>
<a
class=
"btn btn-more mt-auto me-2"
href=
"#"
>
Ver completa
</a>
<a
class=
"btn btn-more mt-auto"
title=
"Añadir a favoritos"
href=
"#"
><i
class=
"bi bi-star"
></i></a>
</div>
</div>
</div>
</div>
</
template
>
<
style
scoped
>
.card-custom
{
border-color
:
#793E6C
;
box-shadow
:
0
0
0
0.25rem
rgba
(
121
,
62
,
108
,
0.25
);
}
.btn-more
{
border-color
:
#793E6C
;
color
:
#793E6C
;
}
.btn-more
:hover
{
background-color
:
#793E6C
;
color
:
white
;
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment