diff --git a/img/cup.jpg b/img/cup.jpg new file mode 100644 index 0000000..f76e651 Binary files /dev/null and b/img/cup.jpg differ diff --git a/img/favicon.ico b/img/favicon.ico new file mode 100644 index 0000000..1da905a Binary files /dev/null and b/img/favicon.ico differ diff --git a/img/laptop.jpg b/img/laptop.jpg new file mode 100644 index 0000000..e542605 Binary files /dev/null and b/img/laptop.jpg differ diff --git a/src/week1/day0/.empty b/src/week1/day0/.empty deleted file mode 100644 index e69de29..0000000 diff --git a/src/week1/day0/css/normalize.css b/src/week1/day0/css/normalize.css new file mode 100644 index 0000000..3d6624c --- /dev/null +++ b/src/week1/day0/css/normalize.css @@ -0,0 +1,341 @@ +/*! normalize.css v8.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 iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers. + */ + +body { + margin: 0; +} + +/** + * 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 + ========================================================================== */ + +/** + * 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 + ========================================================================== */ + +/** + * Remove the gray background on active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 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 */ +} + +/** + * 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 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 + ========================================================================== */ + +/** + * Remove the border on images inside links in IE 10. + */ + +img { + border-style: none; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: inherit; /* 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; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ + +button, +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} + +/** + * 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 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ + +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 in Chrome and Safari on macOS. + */ + +[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 Edge, IE 10+, and Firefox. + */ + +details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Misc + ========================================================================== */ + +/** + * Add the correct display in IE 10+. + */ + +template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ + +[hidden] { + display: none; +} \ No newline at end of file diff --git a/src/week1/day0/css/style.css b/src/week1/day0/css/style.css new file mode 100644 index 0000000..631c81a --- /dev/null +++ b/src/week1/day0/css/style.css @@ -0,0 +1,55 @@ +body{ + background-color: #000000; + font-family:Tahoma; + font-size:14px; +} + .header{ + font-size:46px; + width: 98%; + height: 100px; + text-align: center; + float: left; + margin:5px; + border-radius:10px; +} + .footer{ + font-size:10px; + width: 98%; + height: 100px; + text-align: center; + float:left; + margin: 6px; + border-radius:10px; +} + .content{ + font-size:14px; + background-color: #898383; + width: 50%; + height: 100%; + float:left; + text-align: center; + border-radius:10px; +} + .navigation{ + font-size:12px; + background-color: #2E2EFE; + width: 23%; + float:left; + text-align: center; + height:250px; + border-radius:10px; +} + .sidebar{ + background-color: #2E2EFE; + font-size:10px; + width: 25%; + height:250px; + float:left; + position: relative; + overflow: hidden; + text-align: center; + border-radius:10px; +} + .footer, .header{ + background-color: #FF00FF; +} diff --git a/src/week1/day0/css/styleexpenses.css b/src/week1/day0/css/styleexpenses.css new file mode 100644 index 0000000..ab18280 --- /dev/null +++ b/src/week1/day0/css/styleexpenses.css @@ -0,0 +1,5 @@ +body{ + font-family: 'Nunito', sans-serif; +} +div { text-align: center; } +table { margin: auto; } \ No newline at end of file diff --git a/src/week1/day0/css/styles.css b/src/week1/day0/css/styles.css new file mode 100644 index 0000000..8b19eab --- /dev/null +++ b/src/week1/day0/css/styles.css @@ -0,0 +1,61 @@ +/* Accesibilidad al cambiar de campo para completar */ +input:focus{ + background-color: #58ACFA; + color: #000000; + font-weight: bold; +} + +body { + + +background-size: 100vw 100vh; +font-family: arial; +color: #fff; +background-attachment: fixed; +margin:0;} + +form { + width: 400px; + margin:auto; + padding: 10px 20px; + background: rgba(0,0,0,0.4); + box-sizing: border-box; + border-radius: 7px; +} +h1{ + color: #fff; + text-align: center; + font-size: 30px; + margin-bottom: 10px; +} +input, textarea{ + width: 100%; + margin-bottom: 12px; + +} +input[type="radio"], +input[type="checkbox"]{ + width: initial; +} +legend{ + +font-size: 17px; +font-weight:bold; + +} +#submit, #reset{ + background: #58ACFA; + color: #fff; + padding:6px; +} +input[type="submit"], +input[type="reset"]{ + width: initial; + +} + +@media (max-width: 480px){ + form{ + width: 100%; + } +} diff --git a/src/week1/day0/exercisesjs.js b/src/week1/day0/exercisesjs.js new file mode 100644 index 0000000..d8fe7d5 --- /dev/null +++ b/src/week1/day0/exercisesjs.js @@ -0,0 +1,138 @@ +for (let i = 0; i < 7; i++) { + for (let j = 0; j < i; j++) { + console.log('#') + } +} + + +var i, j = 0, + line = ''; + + +for (i = 0; i <= 7; i++) { + line = '' + for (j = 0; j < i; j++) { + line += '#' + }; + console.log(line); +} + +//----------------------------- +var i; +for (i = 1; i <= 100; i++) { + if (i % 3 == 0) { + console.log("Fizz") + } else { + if (i % 5 == 0) { + console.log("Buzz") + } else { + console.log(i) + } + } +} + +//----------------------------- + + +var board = ""; +var fullEmpty = "# # # # "; +var emptyfull = " # # # #"; +var size = 8; +for (var i = 0; i < size; i++) { + + if (i % 2 == 0) board = board + fullEmpty + '\n'; + else board = board + emptyfull + '\n'; +} + +console.log(board); +//-------------------------------- + +function min(Num1, Num2) { + if (Num1 < Num2) + return Num1; + else { + return Num2; + } +} +console.log(min(0, -10)); +console.log(min(0, 10)); +//----------------------------------- + + +//par +function isEven(num) { + if (num == 0) { + return true; + } else if (num == 1) { + return false + } else if (num < 0) { + return isEven(-num); + + } else { + return isEven(num - 2); + } +} +console.log(isEven(50)); +console.log(isEven(75)); +console.log(isEven(-1)); + +//------------------------------------- + +function countBs(word) { + let totalBs = 0; + for (let i = 0; i <= word.length - 1; i++) { + if (word[i] == 'B') { + totalBs++; + } + } + return totalBs; +} + +// function range(start,end){} // range:function(){} +function range(start, end) { + var toreturn = []; + for (let i = start; i <= end; i++) + toreturn.push(i); + + return toreturn; +} + +//--------------------------------------- + +function countChar(word, letter) { + let totalBs = 0; + for (let i = 0; i < letter.length; i++) { + if (word[i] == letter) { + totalBs++; + } + } + return totalBs; +} + + +function sum(arr) { //[3,5,7] + let suma = 0; + for (i = 0; i < arr.length; i++) { + suma += arr[i]; + } + + return suma; + +} + +//--------------- + +function stepRange(start, end, step) { + var toreturn = []; + if (step > 0) { + for (let i = start; i <= end; i += step) { + toreturn.push(i); + } + } else { + for (let i = start; i >= end; i += step) { + toreturn.push(i); + } + + } + return toreturn; +} \ No newline at end of file diff --git a/src/week1/day0/expenses.html b/src/week1/day0/expenses.html new file mode 100644 index 0000000..8016004 --- /dev/null +++ b/src/week1/day0/expenses.html @@ -0,0 +1,380 @@ + + + +
+TABLE OF EXPENSES | +||||||||||||
Categories | +January | +February | +March | +April | +May | +June | +July | +August | +September | +October | +November | +December | + +
---|---|---|---|---|---|---|---|---|---|---|---|---|
Water | +$500 | +$600 | +$700 | +$1700 | +$1700 | +$1500 | +$1100 | +$700 | +$700 | +
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
Gas | + +$200 | +$200 | +$300 | +$1400 | +$1400 | +$1200 | +$1200 | +$300 | +$400 | +
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
Electric | +$200 | +$200 | +$290 | +$1300 | +$1300 | +$1200 | +$1200 | +$290 | +$300 | +
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
Internet | +$400 | +$450 | +$500 | +$1590 | +$1600 | +$1400 | +$1450 | +$500 | +$590 | +
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
Food | +$400 | +$500 | +$550 | +$1600 | +$1700 | +$1400 | +$1500 | +$550 | +$600 | +
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
Education | +$200 | +$300 | +$450 | +$1500 | +$1540 | +$1200 | +$1300 | +$450 | +$500 | +
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
Recreation | +$300 | +$450 | +$500 | +$1540 | +$1500 | +$1540 | +$1540 | +$500 | +$540 | +
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+
+
+
+ $
+
+
+
+ .00
+
+ |
+
+