From 77091814f6898262cd2cc21f83da1ae7e0320908 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Sun, 4 Dec 2022 22:38:11 +0200 Subject: [PATCH 01/25] desktop and mobile version --- .../cv-styling-master/.vscode/launch.json | 15 ++ .../public/style1/index.html | 1 + .../cv-styling-master/public/style1/style.css | 243 ++++++++++++++++++ 3 files changed, 259 insertions(+) create mode 100644 04_Challenges/cv-styling-master/.vscode/launch.json create mode 100644 04_Challenges/cv-styling-master/public/style1/style.css diff --git a/04_Challenges/cv-styling-master/.vscode/launch.json b/04_Challenges/cv-styling-master/.vscode/launch.json new file mode 100644 index 00000000..2ba986f6 --- /dev/null +++ b/04_Challenges/cv-styling-master/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/04_Challenges/cv-styling-master/public/style1/index.html b/04_Challenges/cv-styling-master/public/style1/index.html index c40c1144..92f0e240 100644 --- a/04_Challenges/cv-styling-master/public/style1/index.html +++ b/04_Challenges/cv-styling-master/public/style1/index.html @@ -12,6 +12,7 @@ + diff --git a/04_Challenges/cv-styling-master/public/style1/style.css b/04_Challenges/cv-styling-master/public/style1/style.css new file mode 100644 index 00000000..0472c9fd --- /dev/null +++ b/04_Challenges/cv-styling-master/public/style1/style.css @@ -0,0 +1,243 @@ +body > div > header > div{ + display: flex; + padding-left: 125px; + padding-bottom: 15px; + background-color: #999999; + height: 130px; +} +body { + width: 55%; + margin: auto; + background: white; +} +html{ + background-color: black; +} +h1, h2 { + color: #ff0000; +} +.contacts { + display: flex; + flex-direction: column; + position: absolute; + top: 10px; + width: 40%; + padding-left: 70px; +} +dl{ + display: flex; + flex-wrap: wrap; + margin: 0%; + line-height: 21px; + background-color: black; +} +.contact-type { + background-color: #ff0000; + width: 120px; + color: white; + padding-left: 4px; +} +.contact-value > a{ + text-decoration: none; + color: #ff0000; + margin-left: -30px; +} +.content{ + display: grid; + grid-template-columns: 1fr 1fr; + grid-template-rows: auto auto auto; + grid-auto-rows: 60px; + padding: 60px; +} +h3::before{ + display: inline-block; + content: ""; + height: 20px; + width: 20px; + background-color: #ff0000; + border-radius: 50px; + margin-right: 5px; +} +h3:after{ + content: " "; + display: block; + border-bottom: 0.5px solid #cccccc; + padding-top: 5px; +} +.skill{ + content: " "; + display: block; + border: 6px solid #cccccc; + background-color: #cccccc; + margin: 5px; + color: white; +} +.skills-primary::before{ + content: "Main"; +} +[data-skill="5"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 160px; + font-size: large; +} +[data-skill="3"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 115px; + font-size: large; +} +[data-skill="1"] span { + content: " "; + display: block; + background-color: #ff0000; + width: 55px; + border: 2px solid #ff0000; + font-size: large; +} +[data-skill="9"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 370px; + font-size: large; +} +[data-skill="7"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 260px; + font-size: large; +} +.skills-secondary{ + padding-top: 20px; + opacity: 80%; +} +.skills-secondary::before{ + content: "Other"; +} +.experience-type{ + color: #ff0000; +} +.experience-type::after{ + content: "@"; + font-weight: lighter; +} +.experience-institution{ + color: #ff0000; + font-weight: lighter; +} +.experience-details{ + color: #999999; +} +.experience-details::before{ + content: "In"; +} +.experience-date-separator{ + color: #ff0000; +} +#contact > h3{ + visibility: hidden; +} +#competencies { + width: 480px; +} +@media only screen and (min-width: 200px) and (max-width: 800px) { + body > div > header > div{ + background-color: #999999; + /* width: auto; */ + } + body { + width: fit-content; + margin: auto; + background: white; + } + html{ + background-color:white; + } + h1, h2 { + color: #ff0000; + font-size: 15px; + } + img { + width: 50px; + height: 50px; + position: absolute; + left: 20px; + top: 70px; + } + hgroup { + position: absolute; + left: 20px; + } + .content{ + display: flex; + flex-direction: column; + padding: 10px; + /* width: 70%; */ + } + #contact { + position: relative; + bottom: 0px; + } + #contact > h3 { + visibility: visible; + } + .contacts { + display: flex; + flex-direction: column; + width: 255px; + margin-top: 50px; + margin-left: -50px; + } + dl{ + display: flex; + flex-wrap: wrap; + margin: 0%; + line-height: 21px; + background-color:white; + } + .skill{ + content: " "; + display: block; + border: 6px solid #cccccc; + background-color: #cccccc; + margin: 5px; + color: white; + } + #competencies { + width: auto; + } + [data-skill="5"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 35%; + /* width: 50%; */ + font-size: large; + } + [data-skill="3"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 17%; + font-size: large; + } + [data-skill="1"] span { + content: " "; + display: block; + background-color: #ff0000; + width: 49px; + border: 2px solid #ff0000; + font-size: large; + } + [data-skill="9"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 70%; + font-size: large; + } + [data-skill="7"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 45%; + font-size: large; + } + +} \ No newline at end of file From bd794b7da55b1db887ceee5873c085f8f46f2d7e Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Mon, 5 Dec 2022 19:53:21 +0200 Subject: [PATCH 02/25] finished style 1 --- .../cv-styling-master/public/style1/style.css | 83 +++++++++++++++++-- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/04_Challenges/cv-styling-master/public/style1/style.css b/04_Challenges/cv-styling-master/public/style1/style.css index 0472c9fd..e0575c44 100644 --- a/04_Challenges/cv-styling-master/public/style1/style.css +++ b/04_Challenges/cv-styling-master/public/style1/style.css @@ -140,10 +140,9 @@ h3:after{ #competencies { width: 480px; } -@media only screen and (min-width: 200px) and (max-width: 800px) { +@media only screen and (min-width: 300px) and (max-width: 800px) { body > div > header > div{ background-color: #999999; - /* width: auto; */ } body { width: fit-content; @@ -172,7 +171,6 @@ h3:after{ display: flex; flex-direction: column; padding: 10px; - /* width: 70%; */ } #contact { position: relative; @@ -210,7 +208,6 @@ h3:after{ border: 2px solid #ff0000; background-color:#ff0000; padding-right: 35%; - /* width: 50%; */ font-size: large; } [data-skill="3"] span { @@ -240,4 +237,80 @@ h3:after{ font-size: large; } -} \ No newline at end of file +} +@media only screen and (min-width: 800px) and (max-width: 1800px) { + body > div > header > div{ + display: flex; + background-color: #999999; + padding-left: 3%; + + } + + body { + width: 75%; + margin: auto; + background: white; + + } + .contacts { + display: flex; + flex-direction: column; + position: absolute; + top: 10px; + width: 40%; + padding-left: 0%; + } + + h1, h2 { + color: #ff0000; + font-size: 120%; + } + img { + position: absolute; + width: 80px; + height: 80px; + top: 20px; + left: 35%; + } + [data-skill="5"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 35%; + font-size: large; + } + [data-skill="3"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 17%; + font-size: large; + } + [data-skill="1"] span { + content: " "; + display: block; + background-color: #ff0000; + width: 49px; + border: 2px solid #ff0000; + font-size: large; + } + [data-skill="9"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 70%; + font-size: large; + } + [data-skill="7"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 45%; + font-size: large; + } + #competencies { + width: auto; + } + + + +} + + + From f1d70369cd71bee22016f0f908fae82d891d126a Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Tue, 6 Dec 2022 13:06:32 +0200 Subject: [PATCH 03/25] finished style 1 --- .../public/style2/index.html | 198 ++++++++ .../public/style2/normalize.css | 447 ++++++++++++++++++ .../cv-styling-master/public/style2/style.css | 385 +++++++++++++++ 3 files changed, 1030 insertions(+) create mode 100644 04_Challenges/cv-styling-master/public/style2/index.html create mode 100644 04_Challenges/cv-styling-master/public/style2/normalize.css create mode 100644 04_Challenges/cv-styling-master/public/style2/style.css diff --git a/04_Challenges/cv-styling-master/public/style2/index.html b/04_Challenges/cv-styling-master/public/style2/index.html new file mode 100644 index 00000000..92f0e240 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/style2/index.html @@ -0,0 +1,198 @@ + + + + + + + + + + + JStudent | CV + + + + + + + + +
+
+
+
+

Student Name

+

Codes and Sleeps

+
+
+ Student Name +
+
+
+
+
+

About

+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, et rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+

Competencies

+
+
+ HTML +
+
+ CSS +
+
+ Javascript +
+
+
+
+ HTML +
+
+ CSS +
+
+ Javascript +
+
+
+
+

Experiences

+
+

+ Man2ouche Seller + Snack Edouard +

+
+ + Paris + + + 30 + / + 12 + / + 1995 + +
+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, et rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+

+ Man2ouche Seller + Snack Edouard +

+
+ + Paris + + + 30 + / + 12 + / + 1995 + +
+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, et rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+
+

Education

+
+

+ Web Stack Training + Codi +

+
+ + Beirut + + + 30 + / + 12 + / + 1995 + +
+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, et rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+

+ Man2ouche Seller + Snack Edouard +

+
+ + Paris + + + 30 + / + 12 + / + 1995 + +
+

+ Pellentesque nec nisi at sapien sagittis sagittis. Aliquam eu condimentum mauris. Proin accumsan enim at risus hendrerit lobortis. Nunc sollicitudin sodales lectus, et rhoncus mi molestie hendrerit. Vestibulum velit lorem, rhoncus a congue ultricies, faucibus facilisis risus. Mauris turpis ante, aliquet ac venenatis at, ornare ut velit. Duis ut erat neque, eget consectetur tellus. +

+
+
+
+

Hobbies

+
    +
  • Watching Youtube
  • +
  • Sleeping
  • +
  • Writing CVs
  • +
+
+
+

Contact

+
+
+
Email
+
+ student@codi.tech +
+
+
+
Skype
+
first-last
+
+
+
Phone/Whatsapp
+
+ +9613123123 +
+
+
+
Github
+
+ UserName +
+
+
+
Facebook
+
+ Profile Name +
+
+
+
+
+
+ + diff --git a/04_Challenges/cv-styling-master/public/style2/normalize.css b/04_Challenges/cv-styling-master/public/style2/normalize.css new file mode 100644 index 00000000..57f93c84 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/style2/normalize.css @@ -0,0 +1,447 @@ +/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in + * IE on Windows Phone and in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers (opinionated). + */ + +body { + margin: 0; +} + +/** + * Add the correct display in IE 9-. + */ + +article, +aside, +footer, +header, +nav, +section { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + * 1. Add the correct display in IE. + */ + +figcaption, +figure, +main { /* 1 */ + display: block; +} + +/** + * Add the correct margin in IE 8. + */ + +figure { + margin: 1em 40px; +} + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * 1. Remove the gray background on active links in IE 10. + * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. + */ + +a { + background-color: transparent; /* 1 */ + -webkit-text-decoration-skip: objects; /* 2 */ +} + +/** + * 1. Remove the bottom border in Chrome 57- and Firefox 39-. + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Prevent the duplicate application of `bolder` by the next rule in Safari 6. + */ + +b, +strong { + font-weight: inherit; +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font style in Android 4.3-. + */ + +dfn { + font-style: italic; +} + +/** + * Add the correct background and color in IE 9-. + */ + +mark { + background-color: #ff0; + color: #000; +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +audio, +video { + display: inline-block; +} + +/** + * Add the correct display in iOS 4-7. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Remove the border on images inside links in IE 10-. + */ + +img { + border-style: none; +} + +/** + * Hide the overflow in IE. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers (opinionated). + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: sans-serif; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` + * controls in Android 4. + * 2. Correct the inability to style clickable types in iOS and Safari. + */ + +button, +html [type="button"], /* 1 */ +[type="reset"], +[type="submit"] { + -webkit-appearance: button; /* 2 */ +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * 1. Add the correct display in IE 9-. + * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Remove the default vertical scrollbar in IE. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10-. + * 2. Remove the padding in IE 10-. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-cancel-button, +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in IE 9-. + * 1. Add the correct display in Edge, IE, and Firefox. + */ + +details, /* 1 */ +menu { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Scripting + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +canvas { + display: inline-block; +} + +/** + * Add the correct display in IE. + */ + +template { + display: none; +} + +/* Hidden + ========================================================================== */ + +/** + * Add the correct display in IE 10-. + */ + +[hidden] { + display: none; +} \ No newline at end of file diff --git a/04_Challenges/cv-styling-master/public/style2/style.css b/04_Challenges/cv-styling-master/public/style2/style.css new file mode 100644 index 00000000..3fed2e66 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/style2/style.css @@ -0,0 +1,385 @@ +h2 { + visibility: hidden; +} +body { + width: 55%; + margin: auto; + background: white; +} +h1 { + margin: 10%; +} +h3 { + font-weight: bolder; + font-size: larger; +} +h1::after{ + content: " "; + display: block; + border-bottom: 0.5px solid #cccccc; + padding-top: 5px; +} +img { + position: absolute; + top: 10%; + left: 60%; + transform: rotate(-20deg); +} +#about > h3 { + visibility: hidden; +} +#about > p { + position: absolute; + width: 30%; + top: 15%; + text-align: center; + color: #9c9c9c; + padding-left: 5%; +} +#competencies > h3 { + border-right: 1px solid black; + height: 120px; + margin-right: 73%; + margin-left: -5%; +} +#competencies{ + display: grid; + grid-template-columns: auto auto; + grid-template-rows: 25% 50%; +} +#competencies > h3 { + grid-row: 1/3; +} +.skills { + margin-left: -42%; + margin-top: 5%; +} +.skills-primary { + display: flex; + gap: 25px; +} +.skills-secondary { + display: flex; + gap: 50px; +} +.skills-secondary > .skill:nth-last-child(1) { + margin-left: -4px; +} +.skills-primary > div > span { + border: 8px solid #008080; + background-color:#008080; + font-size: large; + color: white; + width: 100%; +} +.skills-secondary > div > span { + border: 8px solid #008080; + background-color:#008080; + font-size: 10px; + color: white; + min-width: 100%; +} +.skills-secondary > .skill[data-skill="5"] span::after { + margin-left: 48%; +} +.skill[data-skill="1"] span::after { + content: "\2605"; + margin-left: 10%; + } + .skill[data-skill="1"] span::after { + content: "\2605"; + margin-left: 10%; + } + .skill[data-skill="2"] span::after { + content: "\2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="3"] span::after { + content: "\2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="4"] span::after { + content: "\2605 \2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="5"] span::after { + content: "\2605 \2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="6"] span::after { + content: "\2605 \2605 \2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="7"] span::after { + content: "\2605 \2605 \2605 \2605"; + margin-left: 25%; + } + .skill[data-skill="8"] span::after { + content: "\2605 \2605 \2605 \2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="9"] span::after { + content: "\2605 \2605 \2605 \2605 \2605"; + margin-left: 41%; + } + .skill[data-skill="10"]span::after { + content: "\2605 \2605 \2605 \2605 \2605"; + margin-left: 10%; + } +#experiences { + display: grid; + grid-template-columns: auto auto ; + grid-template-rows: auto ; +} +#experiences > h3 { + grid-row: 1/ span 3; +} +#experiences > h3 { + border-right: 1px solid black; + height: 350px; + margin-right: -2%; +} +.experience{ + padding-left: 3%; +} +.experience-type{ + color: #008080; + font-size: larger; +} +.experience-institution{ + visibility: hidden; +} +.experience-details{ + float: right; + margin-top: -5%; + color:#9c9c9c; +} +#education { + display: grid; + grid-template-columns: auto auto ; + grid-template-rows: auto ; +} +#education > h3 { + grid-row: 1/ span 3; +} +#education > h3 { + border-right: 1px solid black; + height: 340px; + margin-right: -20%; +} +#hobbies { + display: grid; + grid-template-columns: auto auto ; + grid-template-rows: auto ; +} +#hobbies > h3 { + grid-row: 1/ span 3; +} +ul { + margin-left: -60%; +} +#hobbies > h3 { + border-right: 1px solid black; + height: 100px; + margin-right: 78%; +} +.contacts { + width: 100%; + display: flex; + flex-direction: row; + justify-content: center; + gap: 5%; +} +.contact-email{ + background: url('../images/email.png'); + width: 99px; + height: 100px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-phone { + background: url('../images/phone.png'); + width: 99px; + height: 100px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-github{ + background: url('../images/github.png'); + width: 99px; + height: 100px; + background-size: cover; + background-repeat: no-repeat; +} + +.contact-facebook{ + background: url('../images/facebook.png'); + width: 99px; + height: 100px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-type, .contact-value, .contact-value a { + visibility: hidden; +} +.contact-skype { + display: none; +} +@media only screen and (min-width: 300px) and (max-width: 800px) { + body { + width: 55%; + margin: 0; + background: white; + } + img { + display: none; + } + h1 { + width: 150%; + font-size: 150%; + } + h1::after{ + content: " "; + display: block; + border-bottom: 1px solid #cccccc; + } + #about > p { + color: #9c9c9c; + position: relative; + top: -100px; + width: 150%; + } + .skills{ + padding-top: 10%; + } + #competencies > h3{ + border-right: none; + } + #competencies{ + margin-left: 20%; + } + .content h3{ + text-decoration: underline; + } + #experiences > h3 { + border-right: none; +} +.experience{ + padding-top: 30%; + width: 300%; + margin-left: -75%; +} +#education > h3 { + border-right: none; +} +#hobbies > h3 { + border-right: none; +} +.experience{ + margin-left: -67% +} +ul { + margin-top: 40%; +} +.contacts { + width: 100%; + display: flex; + flex-direction: row; + justify-content:flex-start; + gap: 8%; +} +.contact-email{ + background: url('../images/email.png'); + width: 75px; + height: 75px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-phone { + background: url('../images/phone.png'); + width: 75px; + height: 75px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-github{ + background: url('../images/github.png'); + width: 75px; + height: 75px; + background-size: cover; + background-repeat: no-repeat; +} + +.contact-facebook{ + background: url('../images/facebook.png'); + width: 75px; + height: 75px; + background-size: cover; + background-repeat: no-repeat; +} +} +@media only screen and (min-width: 800px) and (max-width: 1808px){ + h1 { + font-size: 120%; + padding-top: 10%; + margin-left: -30%; + + } + h1::after{ + content: " "; + display: block; + border-bottom: 0.5px solid #cccccc; + padding-top: 5px; + } + img { + position: absolute; + top: 10%; + left: 60%; + transform: rotate(-20deg); + } + #about > p { + position: absolute; + width: 50%; + top: 15%; + color: #9c9c9c; + margin-left: -20%; + margin-top: 8%; + } + .skills{ + padding-left: 35%; + padding-top: 5%; + } + #competencies{ + margin-left: -25%; + padding-top: 40%; + } + #competencies > h3 { + border-right: 1px solid black; + height: 120px; + margin-right: 30%; + margin-left: -5%; + } + .experience { + padding-left: 5%; + } + #experiences{ + margin-left: -23%; + } + #education{ + margin-left: -23%; + } + #hobbies{ + margin-left: -10%; + } + #hobbies > h3 { + border-right: 1px solid black; + height: 120px; + margin-left: -20%; + } + #contact h3 { + visibility: hidden; + } +} + + + From 07bc52edcc3e0423acbb4a5c00a785ec92450169 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Tue, 6 Dec 2022 15:52:54 +0200 Subject: [PATCH 04/25] my cv style 1 --- .../public/my style1/index.html | 188 ++++++++ .../public/my style1/normalize.css | 447 ++++++++++++++++++ .../public/my style1/style.css | 316 +++++++++++++ 3 files changed, 951 insertions(+) create mode 100644 04_Challenges/cv-styling-master/public/my style1/index.html create mode 100644 04_Challenges/cv-styling-master/public/my style1/normalize.css create mode 100644 04_Challenges/cv-styling-master/public/my style1/style.css diff --git a/04_Challenges/cv-styling-master/public/my style1/index.html b/04_Challenges/cv-styling-master/public/my style1/index.html new file mode 100644 index 00000000..b2ace426 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/my style1/index.html @@ -0,0 +1,188 @@ + + + + + + + + + + + JStudent | CV + + + + + + + + +
+
+
+
+

Rana Ghraizi

+

Web Developer to Be

+
+
+ Student Name +
+
+
+
+
+

About

+

+ I recently graduated high school in LS major and I am currently a student at Codi Tech. +

+
+
+

Competencies

+
+
+ HTML +
+
+ CSS +
+
+ Javascript +
+
+
+
+

Experiences

+
+

+ + Data Entry +

+
+ + Beirut + + + 05 + / + 11 + / + 2020 + +
+

+ I worked at VS company in the data entry department +

+
+
+

+ Chemistry tutoring + Home +

+
+ + Beirut + + + 12 + / + 12 + / + 2021 + +
+

+ I used to give sessions in chemistry for seconday students. +

+ +
+
+
+

Education

+
+

+ Web Stack Training + Codi +

+
+ + Beirut + + + 06 + / + 12 + / + 2022 + +
+

+ Amazing experience to talk about!!!! +

+
+
+

+ High School + Sawfar Secondary School +

+
+ + Sawfar + + + 30 + / + 6 + / + 2022 + +
+

+ It was a great experience with official exams. I really had a good mark!! +

+
+
+
+

Hobbies

+
    +
  • Watching movies
  • +
  • Watching basketball
  • +
  • Listening to music
  • +
+
+
+

Contact

+
+
+
Email
+
+ ranaghraizi1@gmail.com +
+
+
+
Skype
+
+
+
+
Phone/Whatsapp
+
+ +96170837882 +
+
+
+
Github
+
+ rana-ghraizi +
+
+
+
Facebook
+
+ Rana Ghraizi +
+
+
+
+
+
+ + diff --git a/04_Challenges/cv-styling-master/public/my style1/normalize.css b/04_Challenges/cv-styling-master/public/my style1/normalize.css new file mode 100644 index 00000000..57f93c84 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/my style1/normalize.css @@ -0,0 +1,447 @@ +/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in + * IE on Windows Phone and in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers (opinionated). + */ + +body { + margin: 0; +} + +/** + * Add the correct display in IE 9-. + */ + +article, +aside, +footer, +header, +nav, +section { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + * 1. Add the correct display in IE. + */ + +figcaption, +figure, +main { /* 1 */ + display: block; +} + +/** + * Add the correct margin in IE 8. + */ + +figure { + margin: 1em 40px; +} + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * 1. Remove the gray background on active links in IE 10. + * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. + */ + +a { + background-color: transparent; /* 1 */ + -webkit-text-decoration-skip: objects; /* 2 */ +} + +/** + * 1. Remove the bottom border in Chrome 57- and Firefox 39-. + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Prevent the duplicate application of `bolder` by the next rule in Safari 6. + */ + +b, +strong { + font-weight: inherit; +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font style in Android 4.3-. + */ + +dfn { + font-style: italic; +} + +/** + * Add the correct background and color in IE 9-. + */ + +mark { + background-color: #ff0; + color: #000; +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +audio, +video { + display: inline-block; +} + +/** + * Add the correct display in iOS 4-7. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Remove the border on images inside links in IE 10-. + */ + +img { + border-style: none; +} + +/** + * Hide the overflow in IE. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers (opinionated). + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: sans-serif; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` + * controls in Android 4. + * 2. Correct the inability to style clickable types in iOS and Safari. + */ + +button, +html [type="button"], /* 1 */ +[type="reset"], +[type="submit"] { + -webkit-appearance: button; /* 2 */ +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * 1. Add the correct display in IE 9-. + * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Remove the default vertical scrollbar in IE. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10-. + * 2. Remove the padding in IE 10-. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-cancel-button, +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in IE 9-. + * 1. Add the correct display in Edge, IE, and Firefox. + */ + +details, /* 1 */ +menu { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Scripting + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +canvas { + display: inline-block; +} + +/** + * Add the correct display in IE. + */ + +template { + display: none; +} + +/* Hidden + ========================================================================== */ + +/** + * Add the correct display in IE 10-. + */ + +[hidden] { + display: none; +} \ No newline at end of file diff --git a/04_Challenges/cv-styling-master/public/my style1/style.css b/04_Challenges/cv-styling-master/public/my style1/style.css new file mode 100644 index 00000000..e0575c44 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/my style1/style.css @@ -0,0 +1,316 @@ +body > div > header > div{ + display: flex; + padding-left: 125px; + padding-bottom: 15px; + background-color: #999999; + height: 130px; +} +body { + width: 55%; + margin: auto; + background: white; +} +html{ + background-color: black; +} +h1, h2 { + color: #ff0000; +} +.contacts { + display: flex; + flex-direction: column; + position: absolute; + top: 10px; + width: 40%; + padding-left: 70px; +} +dl{ + display: flex; + flex-wrap: wrap; + margin: 0%; + line-height: 21px; + background-color: black; +} +.contact-type { + background-color: #ff0000; + width: 120px; + color: white; + padding-left: 4px; +} +.contact-value > a{ + text-decoration: none; + color: #ff0000; + margin-left: -30px; +} +.content{ + display: grid; + grid-template-columns: 1fr 1fr; + grid-template-rows: auto auto auto; + grid-auto-rows: 60px; + padding: 60px; +} +h3::before{ + display: inline-block; + content: ""; + height: 20px; + width: 20px; + background-color: #ff0000; + border-radius: 50px; + margin-right: 5px; +} +h3:after{ + content: " "; + display: block; + border-bottom: 0.5px solid #cccccc; + padding-top: 5px; +} +.skill{ + content: " "; + display: block; + border: 6px solid #cccccc; + background-color: #cccccc; + margin: 5px; + color: white; +} +.skills-primary::before{ + content: "Main"; +} +[data-skill="5"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 160px; + font-size: large; +} +[data-skill="3"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 115px; + font-size: large; +} +[data-skill="1"] span { + content: " "; + display: block; + background-color: #ff0000; + width: 55px; + border: 2px solid #ff0000; + font-size: large; +} +[data-skill="9"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 370px; + font-size: large; +} +[data-skill="7"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 260px; + font-size: large; +} +.skills-secondary{ + padding-top: 20px; + opacity: 80%; +} +.skills-secondary::before{ + content: "Other"; +} +.experience-type{ + color: #ff0000; +} +.experience-type::after{ + content: "@"; + font-weight: lighter; +} +.experience-institution{ + color: #ff0000; + font-weight: lighter; +} +.experience-details{ + color: #999999; +} +.experience-details::before{ + content: "In"; +} +.experience-date-separator{ + color: #ff0000; +} +#contact > h3{ + visibility: hidden; +} +#competencies { + width: 480px; +} +@media only screen and (min-width: 300px) and (max-width: 800px) { + body > div > header > div{ + background-color: #999999; + } + body { + width: fit-content; + margin: auto; + background: white; + } + html{ + background-color:white; + } + h1, h2 { + color: #ff0000; + font-size: 15px; + } + img { + width: 50px; + height: 50px; + position: absolute; + left: 20px; + top: 70px; + } + hgroup { + position: absolute; + left: 20px; + } + .content{ + display: flex; + flex-direction: column; + padding: 10px; + } + #contact { + position: relative; + bottom: 0px; + } + #contact > h3 { + visibility: visible; + } + .contacts { + display: flex; + flex-direction: column; + width: 255px; + margin-top: 50px; + margin-left: -50px; + } + dl{ + display: flex; + flex-wrap: wrap; + margin: 0%; + line-height: 21px; + background-color:white; + } + .skill{ + content: " "; + display: block; + border: 6px solid #cccccc; + background-color: #cccccc; + margin: 5px; + color: white; + } + #competencies { + width: auto; + } + [data-skill="5"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 35%; + font-size: large; + } + [data-skill="3"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 17%; + font-size: large; + } + [data-skill="1"] span { + content: " "; + display: block; + background-color: #ff0000; + width: 49px; + border: 2px solid #ff0000; + font-size: large; + } + [data-skill="9"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 70%; + font-size: large; + } + [data-skill="7"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 45%; + font-size: large; + } + +} +@media only screen and (min-width: 800px) and (max-width: 1800px) { + body > div > header > div{ + display: flex; + background-color: #999999; + padding-left: 3%; + + } + + body { + width: 75%; + margin: auto; + background: white; + + } + .contacts { + display: flex; + flex-direction: column; + position: absolute; + top: 10px; + width: 40%; + padding-left: 0%; + } + + h1, h2 { + color: #ff0000; + font-size: 120%; + } + img { + position: absolute; + width: 80px; + height: 80px; + top: 20px; + left: 35%; + } + [data-skill="5"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 35%; + font-size: large; + } + [data-skill="3"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 17%; + font-size: large; + } + [data-skill="1"] span { + content: " "; + display: block; + background-color: #ff0000; + width: 49px; + border: 2px solid #ff0000; + font-size: large; + } + [data-skill="9"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 70%; + font-size: large; + } + [data-skill="7"] span { + border: 2px solid #ff0000; + background-color:#ff0000; + padding-right: 45%; + font-size: large; + } + #competencies { + width: auto; + } + + + +} + + + From cd0f80a4fc7436e370b391f27292630a8c52f08c Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Tue, 6 Dec 2022 15:53:34 +0200 Subject: [PATCH 05/25] my cv style 2 --- .../public/my style2/index.html | 188 ++++++++ .../public/my style2/normalize.css | 447 ++++++++++++++++++ .../public/my style2/style.css | 385 +++++++++++++++ 3 files changed, 1020 insertions(+) create mode 100644 04_Challenges/cv-styling-master/public/my style2/index.html create mode 100644 04_Challenges/cv-styling-master/public/my style2/normalize.css create mode 100644 04_Challenges/cv-styling-master/public/my style2/style.css diff --git a/04_Challenges/cv-styling-master/public/my style2/index.html b/04_Challenges/cv-styling-master/public/my style2/index.html new file mode 100644 index 00000000..b2ace426 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/my style2/index.html @@ -0,0 +1,188 @@ + + + + + + + + + + + JStudent | CV + + + + + + + + +
+
+
+
+

Rana Ghraizi

+

Web Developer to Be

+
+
+ Student Name +
+
+
+
+
+

About

+

+ I recently graduated high school in LS major and I am currently a student at Codi Tech. +

+
+
+

Competencies

+
+
+ HTML +
+
+ CSS +
+
+ Javascript +
+
+
+
+

Experiences

+
+

+ + Data Entry +

+
+ + Beirut + + + 05 + / + 11 + / + 2020 + +
+

+ I worked at VS company in the data entry department +

+
+
+

+ Chemistry tutoring + Home +

+
+ + Beirut + + + 12 + / + 12 + / + 2021 + +
+

+ I used to give sessions in chemistry for seconday students. +

+ +
+
+
+

Education

+
+

+ Web Stack Training + Codi +

+
+ + Beirut + + + 06 + / + 12 + / + 2022 + +
+

+ Amazing experience to talk about!!!! +

+
+
+

+ High School + Sawfar Secondary School +

+
+ + Sawfar + + + 30 + / + 6 + / + 2022 + +
+

+ It was a great experience with official exams. I really had a good mark!! +

+
+
+
+

Hobbies

+
    +
  • Watching movies
  • +
  • Watching basketball
  • +
  • Listening to music
  • +
+
+
+

Contact

+
+
+
Email
+
+ ranaghraizi1@gmail.com +
+
+
+
Skype
+
+
+
+
Phone/Whatsapp
+
+ +96170837882 +
+
+
+
Github
+
+ rana-ghraizi +
+
+
+
Facebook
+
+ Rana Ghraizi +
+
+
+
+
+
+ + diff --git a/04_Challenges/cv-styling-master/public/my style2/normalize.css b/04_Challenges/cv-styling-master/public/my style2/normalize.css new file mode 100644 index 00000000..57f93c84 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/my style2/normalize.css @@ -0,0 +1,447 @@ +/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in + * IE on Windows Phone and in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers (opinionated). + */ + +body { + margin: 0; +} + +/** + * Add the correct display in IE 9-. + */ + +article, +aside, +footer, +header, +nav, +section { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + * 1. Add the correct display in IE. + */ + +figcaption, +figure, +main { /* 1 */ + display: block; +} + +/** + * Add the correct margin in IE 8. + */ + +figure { + margin: 1em 40px; +} + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * 1. Remove the gray background on active links in IE 10. + * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. + */ + +a { + background-color: transparent; /* 1 */ + -webkit-text-decoration-skip: objects; /* 2 */ +} + +/** + * 1. Remove the bottom border in Chrome 57- and Firefox 39-. + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Prevent the duplicate application of `bolder` by the next rule in Safari 6. + */ + +b, +strong { + font-weight: inherit; +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font style in Android 4.3-. + */ + +dfn { + font-style: italic; +} + +/** + * Add the correct background and color in IE 9-. + */ + +mark { + background-color: #ff0; + color: #000; +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +audio, +video { + display: inline-block; +} + +/** + * Add the correct display in iOS 4-7. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Remove the border on images inside links in IE 10-. + */ + +img { + border-style: none; +} + +/** + * Hide the overflow in IE. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers (opinionated). + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: sans-serif; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` + * controls in Android 4. + * 2. Correct the inability to style clickable types in iOS and Safari. + */ + +button, +html [type="button"], /* 1 */ +[type="reset"], +[type="submit"] { + -webkit-appearance: button; /* 2 */ +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * 1. Add the correct display in IE 9-. + * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Remove the default vertical scrollbar in IE. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10-. + * 2. Remove the padding in IE 10-. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-cancel-button, +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in IE 9-. + * 1. Add the correct display in Edge, IE, and Firefox. + */ + +details, /* 1 */ +menu { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Scripting + ========================================================================== */ + +/** + * Add the correct display in IE 9-. + */ + +canvas { + display: inline-block; +} + +/** + * Add the correct display in IE. + */ + +template { + display: none; +} + +/* Hidden + ========================================================================== */ + +/** + * Add the correct display in IE 10-. + */ + +[hidden] { + display: none; +} \ No newline at end of file diff --git a/04_Challenges/cv-styling-master/public/my style2/style.css b/04_Challenges/cv-styling-master/public/my style2/style.css new file mode 100644 index 00000000..3fed2e66 --- /dev/null +++ b/04_Challenges/cv-styling-master/public/my style2/style.css @@ -0,0 +1,385 @@ +h2 { + visibility: hidden; +} +body { + width: 55%; + margin: auto; + background: white; +} +h1 { + margin: 10%; +} +h3 { + font-weight: bolder; + font-size: larger; +} +h1::after{ + content: " "; + display: block; + border-bottom: 0.5px solid #cccccc; + padding-top: 5px; +} +img { + position: absolute; + top: 10%; + left: 60%; + transform: rotate(-20deg); +} +#about > h3 { + visibility: hidden; +} +#about > p { + position: absolute; + width: 30%; + top: 15%; + text-align: center; + color: #9c9c9c; + padding-left: 5%; +} +#competencies > h3 { + border-right: 1px solid black; + height: 120px; + margin-right: 73%; + margin-left: -5%; +} +#competencies{ + display: grid; + grid-template-columns: auto auto; + grid-template-rows: 25% 50%; +} +#competencies > h3 { + grid-row: 1/3; +} +.skills { + margin-left: -42%; + margin-top: 5%; +} +.skills-primary { + display: flex; + gap: 25px; +} +.skills-secondary { + display: flex; + gap: 50px; +} +.skills-secondary > .skill:nth-last-child(1) { + margin-left: -4px; +} +.skills-primary > div > span { + border: 8px solid #008080; + background-color:#008080; + font-size: large; + color: white; + width: 100%; +} +.skills-secondary > div > span { + border: 8px solid #008080; + background-color:#008080; + font-size: 10px; + color: white; + min-width: 100%; +} +.skills-secondary > .skill[data-skill="5"] span::after { + margin-left: 48%; +} +.skill[data-skill="1"] span::after { + content: "\2605"; + margin-left: 10%; + } + .skill[data-skill="1"] span::after { + content: "\2605"; + margin-left: 10%; + } + .skill[data-skill="2"] span::after { + content: "\2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="3"] span::after { + content: "\2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="4"] span::after { + content: "\2605 \2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="5"] span::after { + content: "\2605 \2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="6"] span::after { + content: "\2605 \2605 \2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="7"] span::after { + content: "\2605 \2605 \2605 \2605"; + margin-left: 25%; + } + .skill[data-skill="8"] span::after { + content: "\2605 \2605 \2605 \2605 \2605"; + margin-left: 10%; + } + .skill[data-skill="9"] span::after { + content: "\2605 \2605 \2605 \2605 \2605"; + margin-left: 41%; + } + .skill[data-skill="10"]span::after { + content: "\2605 \2605 \2605 \2605 \2605"; + margin-left: 10%; + } +#experiences { + display: grid; + grid-template-columns: auto auto ; + grid-template-rows: auto ; +} +#experiences > h3 { + grid-row: 1/ span 3; +} +#experiences > h3 { + border-right: 1px solid black; + height: 350px; + margin-right: -2%; +} +.experience{ + padding-left: 3%; +} +.experience-type{ + color: #008080; + font-size: larger; +} +.experience-institution{ + visibility: hidden; +} +.experience-details{ + float: right; + margin-top: -5%; + color:#9c9c9c; +} +#education { + display: grid; + grid-template-columns: auto auto ; + grid-template-rows: auto ; +} +#education > h3 { + grid-row: 1/ span 3; +} +#education > h3 { + border-right: 1px solid black; + height: 340px; + margin-right: -20%; +} +#hobbies { + display: grid; + grid-template-columns: auto auto ; + grid-template-rows: auto ; +} +#hobbies > h3 { + grid-row: 1/ span 3; +} +ul { + margin-left: -60%; +} +#hobbies > h3 { + border-right: 1px solid black; + height: 100px; + margin-right: 78%; +} +.contacts { + width: 100%; + display: flex; + flex-direction: row; + justify-content: center; + gap: 5%; +} +.contact-email{ + background: url('../images/email.png'); + width: 99px; + height: 100px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-phone { + background: url('../images/phone.png'); + width: 99px; + height: 100px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-github{ + background: url('../images/github.png'); + width: 99px; + height: 100px; + background-size: cover; + background-repeat: no-repeat; +} + +.contact-facebook{ + background: url('../images/facebook.png'); + width: 99px; + height: 100px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-type, .contact-value, .contact-value a { + visibility: hidden; +} +.contact-skype { + display: none; +} +@media only screen and (min-width: 300px) and (max-width: 800px) { + body { + width: 55%; + margin: 0; + background: white; + } + img { + display: none; + } + h1 { + width: 150%; + font-size: 150%; + } + h1::after{ + content: " "; + display: block; + border-bottom: 1px solid #cccccc; + } + #about > p { + color: #9c9c9c; + position: relative; + top: -100px; + width: 150%; + } + .skills{ + padding-top: 10%; + } + #competencies > h3{ + border-right: none; + } + #competencies{ + margin-left: 20%; + } + .content h3{ + text-decoration: underline; + } + #experiences > h3 { + border-right: none; +} +.experience{ + padding-top: 30%; + width: 300%; + margin-left: -75%; +} +#education > h3 { + border-right: none; +} +#hobbies > h3 { + border-right: none; +} +.experience{ + margin-left: -67% +} +ul { + margin-top: 40%; +} +.contacts { + width: 100%; + display: flex; + flex-direction: row; + justify-content:flex-start; + gap: 8%; +} +.contact-email{ + background: url('../images/email.png'); + width: 75px; + height: 75px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-phone { + background: url('../images/phone.png'); + width: 75px; + height: 75px; + background-size: cover; + background-repeat: no-repeat; +} +.contact-github{ + background: url('../images/github.png'); + width: 75px; + height: 75px; + background-size: cover; + background-repeat: no-repeat; +} + +.contact-facebook{ + background: url('../images/facebook.png'); + width: 75px; + height: 75px; + background-size: cover; + background-repeat: no-repeat; +} +} +@media only screen and (min-width: 800px) and (max-width: 1808px){ + h1 { + font-size: 120%; + padding-top: 10%; + margin-left: -30%; + + } + h1::after{ + content: " "; + display: block; + border-bottom: 0.5px solid #cccccc; + padding-top: 5px; + } + img { + position: absolute; + top: 10%; + left: 60%; + transform: rotate(-20deg); + } + #about > p { + position: absolute; + width: 50%; + top: 15%; + color: #9c9c9c; + margin-left: -20%; + margin-top: 8%; + } + .skills{ + padding-left: 35%; + padding-top: 5%; + } + #competencies{ + margin-left: -25%; + padding-top: 40%; + } + #competencies > h3 { + border-right: 1px solid black; + height: 120px; + margin-right: 30%; + margin-left: -5%; + } + .experience { + padding-left: 5%; + } + #experiences{ + margin-left: -23%; + } + #education{ + margin-left: -23%; + } + #hobbies{ + margin-left: -10%; + } + #hobbies > h3 { + border-right: 1px solid black; + height: 120px; + margin-left: -20%; + } + #contact h3 { + visibility: hidden; + } +} + + + From b3c6bfae5d5db09ee8cd0772461ff98aef9fa7e6 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 09:48:57 +0200 Subject: [PATCH 06/25] step_1 --- 03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html | 1 + 03_Exercises/03_JavaScript/javascript-basics-01/Step_1.js | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-01/Step_1.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html index de81630e..657a891a 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.html @@ -5,5 +5,6 @@ + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.js new file mode 100644 index 00000000..975f5dde --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_1.js @@ -0,0 +1,2 @@ +var x ="name"; +alert(x); \ No newline at end of file From 361673425c8ca57b69f145193e55919f45f334c1 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 10:25:26 +0200 Subject: [PATCH 07/25] step_2 --- 03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html | 1 + 03_Exercises/03_JavaScript/javascript-basics-01/Step_2.js | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-01/Step_2.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html index a2147206..9e6276bf 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.html @@ -5,5 +5,6 @@ + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.js new file mode 100644 index 00000000..66667d1d --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_2.js @@ -0,0 +1,5 @@ +var Name = "Rana"; +var Surname = "Ghraizi"; +var City = "Beirut"; + +alert("Name:" + ' ' + Name + '\n' + "Surname:" + ' ' + Surname + '\n' + "City:" + ' ' + City); \ No newline at end of file From 3804b4a647b7a8116475b9c9e974d3b86670f4a8 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 10:41:03 +0200 Subject: [PATCH 08/25] step_3 --- 03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html | 1 + 03_Exercises/03_JavaScript/javascript-basics-01/Step_3.js | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-01/Step_3.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html index 20b2a198..4bc0d9a9 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.html @@ -5,5 +5,6 @@ + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.js new file mode 100644 index 00000000..001f9d92 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_3.js @@ -0,0 +1,2 @@ +var test = prompt("Enter your name:"); + alert("Hello, " + test); \ No newline at end of file From 6c2eb4f154fddcf625b37eb1b7f14ce1efea0f0d Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 11:07:30 +0200 Subject: [PATCH 09/25] step_4 --- 03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html | 1 + 03_Exercises/03_JavaScript/javascript-basics-01/Step_4.js | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-01/Step_4.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html index 12c89425..d4cd995b 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.html @@ -11,5 +11,6 @@ + diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.js new file mode 100644 index 00000000..ff11365a --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_4.js @@ -0,0 +1,4 @@ +var test1 = prompt("Enter your name:" ); +var test2 = prompt("Enter your surname:"); +var test3 = prompt("Enter your city:"); +alert("Enter your name:" + ' ' + test1 + '\n' + "Enter your surname" + ' ' + test2 + '\n' + "Enter your city:" + ' ' + test3); \ No newline at end of file From 2187ab8f94e333166782a6fe3845a3a92b764496 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 11:39:00 +0200 Subject: [PATCH 10/25] step_5 --- 03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html | 1 + 03_Exercises/03_JavaScript/javascript-basics-01/Step_5.js | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-01/Step_5.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html index 60479f28..a1312970 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.html @@ -10,5 +10,6 @@
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.js new file mode 100644 index 00000000..1f032ef7 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_5.js @@ -0,0 +1,3 @@ +var test1 = prompt("Enter first number" ); +var test2 = prompt("Enter second number" ); +alert(x = test1 * test2); From 42c2495912772ab1c0dd501bed14288184ee27b3 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 12:27:04 +0200 Subject: [PATCH 11/25] step_6 --- 03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html | 1 + 03_Exercises/03_JavaScript/javascript-basics-01/Step_6.js | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-01/Step_6.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html index b019dccd..8128621d 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.html @@ -10,5 +10,6 @@
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.js new file mode 100644 index 00000000..96242313 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_6.js @@ -0,0 +1,3 @@ +var test1 = prompt("Enter first number" ); +var test2 = prompt("Enter second number" ); +alert(x = test1 % test2 ); From 292ce8dd143e743ad4e791bab047afe3a578014d Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 13:14:21 +0200 Subject: [PATCH 12/25] step_7 --- .../03_JavaScript/javascript-basics-01/Step_7.html | 1 + .../03_JavaScript/javascript-basics-01/Step_7.js | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-01/Step_7.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.html index 05ff5834..c4e72575 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.html @@ -10,5 +10,6 @@
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.js new file mode 100644 index 00000000..ce34213c --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_7.js @@ -0,0 +1,11 @@ +var test1 = prompt("Enter your shoe size:" ); +var test2 = prompt("Enter your birthday date:" ); +function myfunction(test1,test2) { + var x = test1 * 2; + var y = x + 5; + var a = y * 50; + var b = a - test2; + var result = b + 1766; +return alert(result); +} +myfunction(test1,test2); \ No newline at end of file From e3039d3e47e4c2455378f766e317fa7568940599 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 15:12:19 +0200 Subject: [PATCH 13/25] step_8 --- .../03_JavaScript/javascript-basics-01/Step_8.html | 1 + 03_Exercises/03_JavaScript/javascript-basics-01/Step_8.js | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-01/Step_8.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.html b/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.html index 75804e8b..27c9c042 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.html +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.html @@ -9,5 +9,6 @@
+ diff --git a/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.js b/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.js new file mode 100644 index 00000000..08fa25ff --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-01/Step_8.js @@ -0,0 +1,7 @@ +var test1 = prompt("Enter your age:" ); +if (test1 > 18) { + alert("you are over 18"); +} else { + alert("you are under 18"); +} + From 187303a3f9a90b7328475cf72d91f68c49d30a58 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Wed, 7 Dec 2022 20:11:04 +0200 Subject: [PATCH 14/25] finished step_1 javascript-basic 02 --- .../03_JavaScript/javascript-basics-02/step 1/Step_1.js | 4 ++++ .../03_JavaScript/javascript-basics-02/step 1/index.html | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-02/step 1/Step_1.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 1/Step_1.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 1/Step_1.js new file mode 100644 index 00000000..2f208af6 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 1/Step_1.js @@ -0,0 +1,4 @@ +let element = document.querySelector("#image1"); +element.addEventListener ('mouseover', function(){ + element.src="./images/image1_2.jpg" +}) diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 1/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 1/index.html index 5ad09a67..8ab75848 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 1/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 1/index.html @@ -5,6 +5,7 @@ Step 1 - + + From 984ac5ea056f8c3dc112973b531203bb72ac9e78 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 13:47:50 +0200 Subject: [PATCH 15/25] finished step_2 javascript-basic 02 --- .../03_JavaScript/javascript-basics-02/step 2/Step_2.js | 4 ++++ .../03_JavaScript/javascript-basics-02/step 2/index.html | 1 + 2 files changed, 5 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-02/step 2/Step_2.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 2/Step_2.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 2/Step_2.js new file mode 100644 index 00000000..932f45eb --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 2/Step_2.js @@ -0,0 +1,4 @@ +var x=document.querySelector('input'); +x.onblur=function(){ + alert("Thank you for participating!") +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 2/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 2/index.html index cf257909..af7c8e64 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 2/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 2/index.html @@ -8,5 +8,6 @@
+ From 61284041df69aec0cb85c63d4771236cc8fa52d5 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 19:21:51 +0200 Subject: [PATCH 16/25] finished step_3 javascript-basic 02 --- 03_Exercises/03_JavaScript/javascript-basics-02/readme.md | 2 +- .../03_JavaScript/javascript-basics-02/step 3/Step_3.js | 4 ++++ .../03_JavaScript/javascript-basics-02/step 3/index.html | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-02/step 3/Step_3.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/readme.md b/03_Exercises/03_JavaScript/javascript-basics-02/readme.md index 14de2994..7b8570fe 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/readme.md +++ b/03_Exercises/03_JavaScript/javascript-basics-02/readme.md @@ -35,7 +35,7 @@ ## Step 3 -1. Create a div +1. Create a div 2. target the div 3. target the input 4. When the input changes, display the new text in the div diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 3/Step_3.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 3/Step_3.js new file mode 100644 index 00000000..6b42e563 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 3/Step_3.js @@ -0,0 +1,4 @@ +document.querySelector('#name').addEventListener('change', function(){ + document.querySelector('#inputvalue').innerHTML = document.querySelector('#name').value; +}) + diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 3/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 3/index.html index 308c0b89..4bdfd737 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 3/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 3/index.html @@ -8,5 +8,7 @@
+
+ From 8500d040633aeb1925f1d5046896ce33204d04b3 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 20:52:41 +0200 Subject: [PATCH 17/25] finished step_4 javascript-basic 02 --- .../javascript-basics-02/step 4/Step_4.js | 14 ++++++++++++++ .../javascript-basics-02/step 4/index.html | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-02/step 4/Step_4.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 4/Step_4.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 4/Step_4.js new file mode 100644 index 00000000..ef87bc8e --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 4/Step_4.js @@ -0,0 +1,14 @@ +function clearInput(){ + document.getElementById('name').value=""; + document.getElementById('surname').value=""; + document.getElementById('city').value=""; + +} +function confirmation (){ + if (confirm('Are you sure you want to clear the fields?')){ + clearInput(); + alert('Fields cleared'); + } else { + alert('Canceled'); + } +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 4/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 4/index.html index f5086dfb..4eff44df 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 4/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 4/index.html @@ -9,7 +9,8 @@ - + + From 44349e5d9328d794ab8aaea960b4a42a72ab9e21 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 21:02:36 +0200 Subject: [PATCH 18/25] finished step_5 javascript-basic 02 --- .../javascript-basics-02/step 5/Step_5.js | 8 ++++++++ .../javascript-basics-02/step 5/index.html | 11 ++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-02/step 5/Step_5.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 5/Step_5.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 5/Step_5.js new file mode 100644 index 00000000..d5bb47e6 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 5/Step_5.js @@ -0,0 +1,8 @@ + +function mouseOver() { + document.getElementById("image1").src="./images/image1_2.jpg"; + document.getElementById("image2").src="./images/image2_2.jpg"; + document.getElementById("image3").src="./images/image3_2.jpg"; + document.getElementById("image4").src="./images/image4_2.jpg"; + document.getElementById("image5").src="./images/image5_2.jpg"; +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 5/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 5/index.html index fe14eb95..d146bb7e 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 5/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 5/index.html @@ -6,11 +6,12 @@
- - - - - + + + + +
+ From 25a58a82093c5566684540d4c8180909eaa7915c Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 21:07:25 +0200 Subject: [PATCH 19/25] finished step_6 javascript-basic 02 --- .../javascript-basics-02/step 6/Step_6.js | 14 ++++++++++++++ .../javascript-basics-02/step 6/index.html | 11 ++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-02/step 6/Step_6.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 6/Step_6.js b/03_Exercises/03_JavaScript/javascript-basics-02/step 6/Step_6.js new file mode 100644 index 00000000..6fa65b0a --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 6/Step_6.js @@ -0,0 +1,14 @@ +function mouseOver() { + document.getElementById("image1").src="./images/image1_2.jpg"; + document.getElementById("image2").src="./images/image2_2.jpg"; + document.getElementById("image3").src="./images/image3_2.jpg"; + document.getElementById("image4").src="./images/image4_2.jpg"; + document.getElementById("image5").src="./images/image5_2.jpg"; +} +function mouseOut() { + document.getElementById("image1").src="./images/image1.jpg"; + document.getElementById("image2").src="./images/image2.jpg"; + document.getElementById("image3").src="./images/image3.jpg"; + document.getElementById("image4").src="./images/image4.jpg"; + document.getElementById("image5").src="./images/image5.jpg"; +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-02/step 6/index.html b/03_Exercises/03_JavaScript/javascript-basics-02/step 6/index.html index 2eecf4f9..40b89db4 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-02/step 6/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-02/step 6/index.html @@ -5,10 +5,11 @@ Step 6 - - - - - + + + + + + From 844321923ef31b290665b2a0beb4dd7422f3cc84 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 21:13:35 +0200 Subject: [PATCH 20/25] finished step_1 javascript-basic 03 --- .../03_JavaScript/javascript-basics-03/step 1/Step_1.js | 3 +++ .../03_JavaScript/javascript-basics-03/step 1/index.html | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-03/step 1/Step_1.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 1/Step_1.js b/03_Exercises/03_JavaScript/javascript-basics-03/step 1/Step_1.js new file mode 100644 index 00000000..adf0fc9d --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 1/Step_1.js @@ -0,0 +1,3 @@ +function red(){ + document.getElementById("image1").style.border="3px solid red"; + } \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 1/index.html b/03_Exercises/03_JavaScript/javascript-basics-03/step 1/index.html index eb4909df..f16491ee 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-03/step 1/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 1/index.html @@ -5,6 +5,7 @@ Step 1 - + + From eb2f4659f5e2f0fee5970c49d2c0022be351311a Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 21:30:07 +0200 Subject: [PATCH 21/25] finished step_2 javascript-basic 03 --- .../03_JavaScript/javascript-basics-03/step 2/Step_2.js | 8 ++++++++ .../03_JavaScript/javascript-basics-03/step 2/index.html | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-03/step 2/Step_2.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 2/Step_2.js b/03_Exercises/03_JavaScript/javascript-basics-03/step 2/Step_2.js new file mode 100644 index 00000000..7dd8b3a8 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 2/Step_2.js @@ -0,0 +1,8 @@ +function display(){ +document.querySelector("#show").addEventListener('click', function(){ + document.querySelector('#texte').hidden = false; +}) +document.querySelector("#hide").addEventListener('click', function(){ + document.querySelector('#texte').hidden = true; +}) +} \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 2/index.html b/03_Exercises/03_JavaScript/javascript-basics-03/step 2/index.html index aeff7fa1..613c03e7 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-03/step 2/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 2/index.html @@ -5,10 +5,11 @@ Step 2 -Show -Hide +Show +Hide

Joseph Dacre Carlyle (Carlisle, 4 juin 1758 - Newcastle upon Tyne, 12 avril 1804) est un orientaliste anglais.Après ses études à l'université de Cambridge, il y devint professeur d'arabe. En 1799, il fut attaché par le gouvernement britannique à l'ambassade de Lord Elgin dans l'Empire ottoman. Il était chargé d'explorer les bibliothèques de la région (principalement celle du Sérail) pour y découvrir (et y acquérir) des manuscrits inédits de textes antiques. Il se rendit aussi en Égypte, en Terre sainte et au mont Athos. Sa mission fut, de son point de vue, un échec. Il acheta quelques centaines d'ouvrages, principalement dans les bazars de Constantinople, mais aucun ne contenait de texte inédit. Cependant, la façon dont certains manuscrits avaient été acquis, principalement ceux du patriarche de Jérusalem Anthème Ier, ainsi que la querelle entamée sur la plaine de Troie entre Carlyle et un autre professeur de Cambridge, Edward Daniel Clarke, allaient être utilisées, après la mort de Carlyle, contre Lord Elgin, dans les controverses autour de l'acquisition des « marbres d'Elgin ».De retour en Grande-Bretagne à l'automne 1801, Joseph Dacre Carlyle entama une traduction en arabe de la Bible. Sa mort en avril 1804 coupa court à ce travail.

+ From 242cd510c31c13beb3ef0572c04c33c6b2d9eae0 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 21:40:34 +0200 Subject: [PATCH 22/25] finished step_3 javascript-basic 03 --- .../03_JavaScript/javascript-basics-03/step 3/Step_3.js | 9 +++++++++ .../03_JavaScript/javascript-basics-03/step 3/index.html | 7 ++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-03/step 3/Step_3.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 3/Step_3.js b/03_Exercises/03_JavaScript/javascript-basics-03/step 3/Step_3.js new file mode 100644 index 00000000..fb7c0752 --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 3/Step_3.js @@ -0,0 +1,9 @@ +function green(){ + document.querySelector('#text').style.color = "green"; + } +function red(){ + document.querySelector('#text').style.color = "red"; + } +function blue(){ + document.querySelector('#text').style.color = "blue"; + } diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 3/index.html b/03_Exercises/03_JavaScript/javascript-basics-03/step 3/index.html index 0db3888c..56e0d139 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-03/step 3/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 3/index.html @@ -10,9 +10,10 @@

Tara, originellement nommée Antarctica puis Seamaster, est une goélette française destinée à la fois à l'exploration et à la défense de l'environnement. Dans le cadre de l'Année polaire internationale, en 2007-2008, ce voilier est utilisé en Arctique par l'expédition Tara Arctic dans le but de faire des relevés permettant de mieux comprendre les changements climatiques qui s'opèrent en Arctique. En 2009, dans le cadre de l'expédition Tara Oceans, Tara parcourt les mers et les océans dans une circumnavigation de trois ans afin d'étudier le piégeage des molécules de gaz carbonique (CO2) par les micro-organismes marins comme le plancton. En avril 2016, une nouvelle expédition est montée Tara Pacific dont l'objectif est de comprendre le corail, menacé par des facteurs humains et climatiques1.

-
-
-
+
+
+
+ From bc954aec2c2da5baaf1ce1663e86daf306d5573e Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 21:57:56 +0200 Subject: [PATCH 23/25] finished step_4 javascript-basic 03 --- .../javascript-basics-03/step 4/Step_4.js | 13 +++++++++++++ .../javascript-basics-03/step 4/index.html | 1 + 2 files changed, 14 insertions(+) create mode 100644 03_Exercises/03_JavaScript/javascript-basics-03/step 4/Step_4.js diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 4/Step_4.js b/03_Exercises/03_JavaScript/javascript-basics-03/step 4/Step_4.js new file mode 100644 index 00000000..c70903fa --- /dev/null +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 4/Step_4.js @@ -0,0 +1,13 @@ +var password = document.querySelector("#password"); +var confirm = document.querySelector("#confirmation"); +var button = document.querySelector("button"); +var pass_value = password.value; + +var change_border = function() { + +if(pass_value !== null || pass_value !== "s1234") { + password.style.border = "3px solid red"; + confirm.style.border = "3px solid red"; + } + } +button.addEventListener("click", change_border); \ No newline at end of file diff --git a/03_Exercises/03_JavaScript/javascript-basics-03/step 4/index.html b/03_Exercises/03_JavaScript/javascript-basics-03/step 4/index.html index cab276b0..60cbb328 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-03/step 4/index.html +++ b/03_Exercises/03_JavaScript/javascript-basics-03/step 4/index.html @@ -10,5 +10,6 @@ + From fb75fea2cdcbaa50b03f29e3aaa33b719528820d Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 23:20:43 +0200 Subject: [PATCH 24/25] finished half of javascript-basic 04 --- .../javascript-basics-04-tdd/questions.js | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js b/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js index d56a923d..d9a1d149 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js +++ b/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js @@ -1,63 +1,64 @@ const stringSize = (text) => { - + return text.length; } const replaceCharacterE = (text) => { - + return text.replace("e", " "); } const concatString = (text1, text2) => { - + return text1.concat(text2); } const showChar5 = (text) => { - + return text.charAt(4); } const showChar9 = (text) => { - + return text.slice(0, 9); } const toCapitals = (text) => { - + return text.toUpperCase(); } const toLowerCase = (text) => { - + return text.toLowerCase(); } const removeSpaces = (text) => { - + return text.trim(); } const IsString = (text) => { - + return text.IsString=true; } const getExtension = (text) => { - + return text.split(".").pop(); } const countSpaces = (text) => { - + return text.split(' ').length - 1; } const InverseString = (text) => { - + return text.split("").reverse().join(""); } const power = (x, y) => { - + return Math.pow(x, y); } const absoluteValue = (num) => { - + return Math.abs(num); } const absoluteValueArray = (array) => { - + return array.map(Math.abs); } const circleSurface = (radius) => { - + return Math.round(Math.PI * radius * radius); } const hypothenuse = (ab, ac) => { - + return Math. sqrt(ab*ab + ac*ac); } const BMI = (weight, height) => { - + return parseFloat((weight / (height * height)).toFixed(2)); } const createLanguagesArray = () => { - + const languages = ["Html", "CSS", "Java", "PHP"]; + return languages; } const createNumbersArray = () => { From d8ad2db00482f9f676fe3511c603f26b20406602 Mon Sep 17 00:00:00 2001 From: Rana Ghraizi Date: Thu, 8 Dec 2022 23:41:13 +0200 Subject: [PATCH 25/25] finished javascript-basic 04 --- .../javascript-basics-04-tdd/questions.js | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js b/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js index d9a1d149..b868a519 100644 --- a/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js +++ b/03_Exercises/03_JavaScript/javascript-basics-04-tdd/questions.js @@ -58,45 +58,55 @@ const BMI = (weight, height) => { const createLanguagesArray = () => { const languages = ["Html", "CSS", "Java", "PHP"]; - return languages; + return languages; } const createNumbersArray = () => { - + const numbers = [0,1,2,3,4,5]; + return numbers; } const replaceElement = (languages) => { - + languages[2] = "Javascript"; + return languages; } const addElement = (languages) => { - + languages.push("Ruby", "Python"); + return languages; } const addNumberElement = (numbers) => { - + numbers.unshift(-2, -1); + return numbers; } const removeFirst = (languages) => { - + languages.shift("Html"); + return languages; } const removeLast = (languages) => { - + languages.pop(); + return languages; } const convertStrToArr = (social_arr) => { - + const element = social_arr.split(","); + return element; } const convertArrToStr = (languages) => { - + const str = String(languages); + return str; } const sortArr = (social_arr) => { - + social_arr.sort(); + return social_arr; } const invertArr = (social_arr) => { - + social_arr.reverse(); + return social_arr; } \ No newline at end of file