Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
v0.2.0 — Using template string and fixed rays. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianMullins authored Jul 27, 2018
1 parent 119986d commit ca80a8c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


v0.2.0
------------------------------
*July 27, 2018*

### Changed
- Using template string for formatting.
- `console.log` placeholders moved into variables.
- Updated default export.

### Fixed
- Rays are now displayed.


v0.1.0
------------------------------
*July 26, 2018*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@justeat/f-recruit-message",
"description": "",
"version": "0.1.0",
"version": "0.2.0",
"main": "dist/index.js",
"files": [
"dist"
Expand Down
26 changes: 18 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@
* Write the recruitment message to the console
*/
const recruitMessage = () => {
console.log("\n\n%c %c \n\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\nLove development? Love takeaway? Then why not join us?\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\n%chttps://careers.just-eat.com/opportunities\n\n",
"font-size:50px; margin-left:35px; padding-right:295px; background: url(https://dy3erx8o0a6nh.cloudfront.net/images/logo-just-eat-2016_x2.png) no-repeat;)",
"font-family: Hind Vadodara, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #535353; background-color: #fff;",
"font-family: Hind Vadodara, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #535353; background-color: #fff; text-decoration: underline; margin-left: 55px",
"font-size:150px; margin-left:-55px; margin-top:-90px; padding-right:285px; background: url(https://dy3erx8o0a6nh.cloudfront.net/images/color-rays.png) 50% no-repeat;)");
};
const fontStyle = 'font-family: Hind Vadodara, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #535353; background-color: #fff;';
const fontStyleUnderline = `${fontStyle} text-decoration: underline; margin-left: 55px`;
const logo = 'font-size:50px; margin-left:35px; padding-right:295px; background: url(https://dy3erx8o0a6nh.cloudfront.net/images/logo-just-eat-2016_x2.png) no-repeat;)';
const rays = 'font-size:150px; margin-left:-55px; margin-top:-90px; padding-right:285px; background: url(https://dy3erx8o0a6nh.cloudfront.net/images/color-rays.png) 50% no-repeat;)';

console.log(`
%c %c
export default {
recruitMessage: recruitMessage
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Love development? Love takeaway? Then why not join us?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
%chttps://careers.just-eat.com/opportunities
%c
`, logo, fontStyle, fontStyleUnderline, rays);
};

export default recruitMessage;

0 comments on commit ca80a8c

Please sign in to comment.