You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or, remember Cher's closet from [Clueless](https://en.wikipedia.org/wiki/Clueless), which helped her plan outfits by swiping through a catalogue of her entire wardrobe.?
46
+
Or, remember Cher's closet from [Clueless](https://en.wikipedia.org/wiki/Clueless), which helped her plan outfits by swiping through a catalogue of her entire wardrobe?
There are other types of cool generators out there in games, movies, and TV shows. We can use the same logic to design monsters or even avatars.
52
52
53
-
Today, we'll be learning how to use HTML, CSS, and vanilla JavaScript to build our own Randomizer Generator.
53
+
Today, we'll be learning how to use HTML, CSS, and vanilla JS to build our own Randomizer Generator.
54
54
55
55
## Getting Started
56
56
@@ -62,26 +62,29 @@ If you've taken the HTML, CSS, and JavaScript courses, our web stack for this pr
62
62
63
63
```
64
64
CluelessGenerator/
65
-
├── index.html
66
-
├── style.css
67
-
└── script.js
65
+
├── index.html
66
+
├── style.css
67
+
└── script.js
68
68
```
69
69
70
70
## HTML
71
71
72
-
HTML buttons allow users to interact with the outfit generator. These buttons control the behavior of the app, such as randomizing outfits and cycling through different images of accessories, tops, and bottoms. Here’s what each part does:
72
+
HTML buttons allow users to interact with the outfit generator. These buttons control the behavior of the app, such as randomizing outfits and cycling through different images of accessories, tops, and bottoms.
73
+
74
+
Here’s what each part does:
73
75
74
76
### Main Container
75
77
76
-
Below the header, add a div that wraps everything:
78
+
Below the header, add a `<div>` that wraps everything:
@@ -290,7 +293,7 @@ You'll also add `.shoes-image`.
290
293
In JavaScript, you'll need to add a new category to the categories object. Each category includes an array of images, an index to track the current image, references to the HTML elements, and button IDs for navigation. Here's how you'll add the shoes category:
291
294
```
292
295
constcategories= {
293
-
…
296
+
...
294
297
shoes: {
295
298
images: [
296
299
// Your shoe images go here
@@ -316,16 +319,15 @@ Congrats! You've built your own generator! Now you're equipped with the skills t
316
319
317
320
P.S. Are you waiting for an Avatar Builder on Codédex? Keep an eye out!
318
321
319
-
## Additional Resources
322
+
### Additional Resources
320
323
321
324
- [90's Fashion Nova Holiday Hackathon Project by Ciera](https://www.codedex.io/community/hackathon/OSlnGKjR7MWDaIRgvNdD)
322
325
- [Archive App by Vita Newstetter](https://archive.clothing/)
323
326
- [I Recreated Cher's Closet From Clueless](https://www.studiosophy.com/blog/2022/2/28/i-recreated-chers-closet-from-clueless)
324
327
- [MoMa Exquisite Corpse Generator](https://ec.moma.org/intro)
325
328
326
-
327
329
Share your projects with the team [@codedex_io](https://www.twitter.com/codedex_io)! Let us know what you come up with!
0 commit comments