Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 639c7c1

Browse files
Adding src atributte to Photo class
1 parent c52fd79 commit 639c7c1

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

‎app/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Photo {
99
this.src = src; // URL de la imagen para ser utilizada en nuestro proyecto.
1010
this.photographer = photographer; // Nombre del fotografo.
1111
this.alt = alt; // Texto descriptivo de la imagen el cual usa la API para filtrar y devolver resultados de búsqueda.
12-
}
12+
}
1313
}
1414

1515
// Creamos una función para generar Id's aleatorios.

‎app/scss/components/gallery.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
@use '../util/breakpoints.scss' as *;
44

55
.gallery{
6+
7+
h2{
8+
color: var(--clr-h2-gallery);
9+
}
10+
611
&__container{
712
display: grid;
813
grid-template-columns: repeat(4, 300px);

‎app/scss/util/theme.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// Gallery
1313
--clr-bg-gallery: #414141;
1414
--clr-text-gallery: #b8c8c8;
15+
--clr-h2-gallery: #102028;
1516
// Footer
1617
--clr-bg-footer: #102028;
1718
--clr-bg-footer-2: #182830;
@@ -32,6 +33,7 @@
3233
// Gallery
3334
--clr-bg-gallery: #121212;
3435
--clr-text-gallery: #b8c8c8;
36+
--clr-h2-gallery: #b8c8c8;
3537
// Footer
3638
--clr-bg-footer: #17191f;
3739
--clr-bg-footer-2: #1a1c22;

‎dist/script.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/script.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /