Skip to content

Commit f63eb63

Browse files
committed
added zip of Luna images
1 parent 35d9bfe commit f63eb63

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ public/
88
yarn-error.log
99
mole.zip
1010
fox.zip
11+
luna.zip

lessons/interactive.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ order: 16
66

77
Let's make a photo gallery. We have a bunch of cute dog photos (of my beloved pupper, Luna) that we want to show one at a time. So, using CSS and JavaScript together, how could we do that?
88

9+
[Here are some images of my dog][luna] if you need images, otherwise feel free to use whatever images you want!
10+
911
Make a file called index.html, and put this in it:
1012

1113
```htm
@@ -301,7 +303,7 @@ When you pull code off sites like this, you should make a decent attempt to lear
301303
If you want to, you can totally swap an image in there too. Change your nav to look like this:
302304

303305
```htm
304-
<nav class="main-nav"><img class="brand" alt="logo" src="./bh.png" /></nav>
306+
<nav class="main-nav"><img class="brand" alt="logo" src="./images/bh.png" /></nav>
305307
```
306308

307309
and this to your CSS
@@ -323,7 +325,7 @@ and this to your CSS
323325

324326
Take your exisitng portfolio and add some sort of animation to it or add a photo gallery, either using Swiper or the one you wrote personally!
325327

326-
[photos]: ./luna-pics.zip
328+
[luna]: ./luna.zip
327329
[my-version]: ./gallery/index.html
328330
[my-version-2]: ./gallery/with-libraries.html
329331
[api]: http://idangero.us/swiper/api/#parameters

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"build:static": "gatsby build --prefix-paths",
3333
"build:zip:fox": "bestzip static/fox.zip static/fox-pet/",
3434
"build:zip:mole": "bestzip static/mole.zip static/mole-game/",
35-
"build:zip": "run-p build:zip:mole build:zip:fox",
35+
"build:zip:luna": "bestzip static/luna.zip static/gallery/images/",
36+
"build:zip": "run-p build:zip:mole build:zip:fox build:zip:luna",
3637
"build": "run-s build:zip build:static",
3738
"dev": "gatsby develop",
3839
"format": "prettier --write \"src/**/*.{js,jsx,md,css}\"",
File renamed without changes.

static/gallery/with-libraries.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
<link rel="stylesheet" href="./styles.css" />
1313
</head>
1414
<body>
15-
<nav class="main-nav"><img class="brand" alt="logo" src="./bh.png" /></nav>
15+
<nav class="main-nav">
16+
<img class="brand" alt="logo" src="./images/bh.png" />
17+
</nav>
1618
<div class="swiper-container">
1719
<div class="swiper-wrapper">
1820
<div class="swiper-slide"><img src="./images/1.jpg" alt="Luna" /></div>

0 commit comments

Comments
 (0)