Skip to content

Commit

Permalink
Modernize project and fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-andrews committed Apr 5, 2023
1 parent 9ee4cf4 commit 9657d41
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
Binary file added images/basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gradient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/random.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
<head>
<title>Checkerboard</title>
<script defer src="script.js"></script>
<style>
html,
body {
height: 100%;
}
</style>
</head>
<body></body>
</html>
18 changes: 11 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@ As always, fork and clone this repo. Submit the link to your fork when you're d

On the master branch, write code to generate a checkerboard pattern as seen below:

![Screen Shot 2015-05-12 at 9.28.07 PM.png](https://draftin.com:443/images/29112?token=H321vjS2Gw41xPTjzAyQEaanRGjm6cAAskSoQgbnGA3El3ojEIP8BRWE8sjyUGBBkd7o1MKNRCpIzYc32qvwsyQ)
![Basic Checkerboard](images/basic.png)

**The Rules**

You are not allowed to edit the html file, which means that you must create all the tiles dynamically. Same goes for CSS: no CSS in the html file or in a separate stylesheet. You must set all the style properties using Javascript.

**Hints**

* Each tile should be a `div`
* Each tile's width is `11.1%`
* Set each tile's `float` property to `left`
* Each tile's paddingBottom is `11.1%`
* Create a container for your tiles with the following styles:
* `display = "flex"`;
* `flexWrap = "wrap"`;
* `width = "800px"`;
* `height = "800px"`;
* Each tile should have the following styles:
* `width = "12.5%'`
* `height = "12.5%'`

**JUST TO REITERATE, YOU WILL NOT WRITE ANY HTML OR CSS FOR THIS EXERCISE. ONLY JS!!!**

Expand All @@ -27,13 +31,13 @@ On a new branch called `randomcolors`, implement the following changes:

1. Instead of being either red or black, each tile should be a random color. How do you generate random colors? You can use RGB or Hexadecimal as your color system.

![Screen Shot 2015-05-12 at 10.19.59 PM.png](https://draftin.com:443/images/29115?token=g0Da9o1sdpfxhhNjHJVQ2578h9pJatEhrE_4ysca-j-FXB3EX58CGJmXZT0087rlBo22A_MgqflTfIxhMsUfuV8)
![Random Checkerboard](images/random.png)

### Gradient

On a new branch called `gradient`, write code to color the tiles using some sort of gradient. It does not need to look exactly like the image below, but it should have some sort of increasing/decreasing color values.

![Screen Shot 2015-05-12 at 10.17.24 PM.png](https://draftin.com:443/images/29114?token=rfd8xRPfnvVY9rkIhhzxIl8b3vWWgz6_sprT3mzf2K2uvZ39L9w6pHD4JlE8BxU6vmkDCTmxzm0kw7m2gbSNhBw)
![Gradient Checkerboard](images/gradient.png)

### Flashing Colors

Expand Down

0 comments on commit 9657d41

Please sign in to comment.