Skip to content

Instantly share code, notes, and snippets.

@blenderous
Last active November 19, 2016 19:34
Show Gist options
  • Save blenderous/483548152151c150020ab4a289cef7b9 to your computer and use it in GitHub Desktop.
Save blenderous/483548152151c150020ab4a289cef7b9 to your computer and use it in GitHub Desktop.

Front end test

A front end test intended for an entry level front-end developer

1. Create a layout like below using only CSS (difficulty level: medium)

-----------------------------------------------
|                              |              |
|  background color: yellow    |  background  |
|                              |    color:    |
|                              |    orange    |
|                              |              |
|   <------ 2/3 ----------->   | <-- 1/3 -->  |
|                              |              |
|                              |              |
|                              |              |
|                              |              |
-----------------------------------------------

Note: height of both should be same as the column which has more content inside it (use dummy text inside).

2. Create a fullscreen modal using CSS and javascript (difficulty level: hard)

The content inside the modal (a single paragraph) should be both vertically and horizontally aligned.

-----------------------------------------------
|                                             |
|                                         X   |
|                                             |
|                ------------                 |
|             ------------------              |
|               --------------                |
|            --------------------             |
|                                             |
|                                             |
|                                             |
-----------------------------------------------

3. Make the following layout using only CSS (difficulty level: easy)

On desktop, it should look like this:

---------- ---------- ----------
|        | |        | |        |
|        | |        | |        |
|        | |        | |        |
---------- ---------- ----------

On tablet (portrait mode), it should look like this

---------- ----------
|        | |        |
|        | |        |
|        | |        |
---------- ----------
----------
|        |
|        |
|        |
----------

On smartphone, it should look like this

----------
|        |
|        |
|        |
----------
----------
|        |
|        |
|        |
----------
----------
|        |
|        |
|        |
----------

Use dummy text and images inside these boxes.

(Assume All three boxes have same size of content)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment