Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#92 Changes in show the images from Spotify #93

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions force-app/main/default/lwc/getImages/getImages.css
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
.custom-carousel {
width: 300px;
height: 300px;
border: px solid #ffffff;
border-radius: 5px;
overflow: hidden;
}

.custom-carousel-image {
width: 600px;
height: 470px;
:host {
--sds-c-card-color-background: #1ed760;
}
.card {
background-color: #f9f9f9; /* Color de fondo */
border: 1px solid #ddd; /* Borde con un color más claro */
background-color: #ffffff; /* Color de fondo */
border: 1px solid #1ed760; /* Borde con un color más claro */
border-radius: 8px; /* Esquinas redondeadas */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra suave */
padding: 15px; /* Relleno interno */
margin: 10px; /* Margen externo */
margin: 15px; /* Margen externo */
}
/* Otros estilos específicos si es necesario */
.card h2 {
color: #333; /* Color del texto del encabezado */
}

.card p {
color: #666; /* Color del texto del párrafo */
}

/* Estilos cuando el ratón pasa sobre la tarjeta (efecto hover) */
.card:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada en hover */
Expand Down
3 changes: 2 additions & 1 deletion force-app/main/default/lwc/getImages/getImages.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<lightning-carousel-image
key={imageUrl}
src={imageUrl}
class="custom-carousel-image"
header="Image from Spotify"
description="This image is grabbed from Spotify documentation."
></lightning-carousel-image>
</template>
</template>
Expand Down
12 changes: 3 additions & 9 deletions force-app/main/default/lwc/trackPreview/trackPreview.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
.audio-player-container {
text-align: center;
padding: 20px;
}

.custom-audio {
width: 100%;
max-width: 600px;
margin: 0 auto;
margin: 0px auto;
display: block;
background-color: #fffefe;
border: 1px solid #ffffff;
background-color: #1ed760;
border: 0px;
border-radius: 5px;
padding: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
2 changes: 1 addition & 1 deletion force-app/main/default/lwc/trackPreview/trackPreview.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="audio-player-container">
<div>
<c-get-images record-id={recordId} object-api-name={objectApiName}>
</c-get-images>
<audio
Expand Down