Labels

Wednesday, August 30, 2017

HTML & CSS Part II (Learn to code)

In part 2 of Progate's HTML & CSS lesson, I will be learning to develop the landing page of a website.

CSS:
  • {background-image:url(top.png);} (Note: image will repeat itself until fills the whole space)
  • {background-size:cover;} (Note: background will be filled with a single image)
  • Center the container class by specifying{margin:0 auto;} and{width: 300px;}
  • {opacity: 0.0;} makes entire element transparent (0.0 being most transparent and 1.0 being most opaque) 
  • {background-color: rgba(73,201,192, 0.5);} (Note: only background becomes transparent)
  • {letter-spacing: 10px;}
  • Creating buttons using <a> tags which is an inline element. {display: block;}
  • div:hover{background-color: red;} is used to change background upon hover.
  • {border-radius: 10px;} is used to round the corners of elements such as a button
  • {text-align: left;} aligns inline and inline-block elements left.
  • {margin: 0 auto;} and {text-align: center;} can center elements, but margin is for block level elements like containers and text-align is for inline/inline-block elements like buttons and text.
  • {transition; all 1s;} (Note: Transition is used to add animations; The target can be a property, like color, but we often just specify all so it applies to all properties.)
  • {line-height: 10px;} (Note: to vertically center the text by specifying the same value for the height and the line-height)
  • {font-weight: bold;} (Normal or bold to change thickness of text)
  • {width: 50%;} (Specifying size with % instead of px, can calculate width based on parent width. Same for height). 
  • Overlapping elements {position: absolute;} then position relative to the top-left corner of the webpage using {top: 50px; left: 50px;} properties, or specifying {position: relative;} to its ancestor element.

Using Icons on Webpage:
  1. Copy the entire font-awesome directory into your project
  2. In the <head> of your html, reference the location to your font-awesome.min.css. 
  3. <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
  4. Check out the examples to start using Font Awesome!
  5.  Add a <span> tag with the classes fa and fa-<icon name>

Tuesday, August 22, 2017

HTML & CSS Part I (Learn to code)

I am into my first lesson on Progate. The objective to list my learning here is so that I can revise.

Most websites like Google and Facebook are created with HTML and CSS.
Rule: Surround text with tags as tags define the text.

  • Heading tags <h1> Hello World  </h1>, range from <h1> to <h6> with <h1> being the largest
  • Paragraph tags <p> Hello World  </p>
  • Comments hidden <!-- This is a comment -->
  • Link Tag <a> </a> 
  • Link Tag with a destination <a href=" URL "> </a>
  • Image Tag <img src=" URL ">  (Note: no need closing tags as they don't enclose any text)
  • List Tags <li> </li> 
  • Bullet Tags <ul> </ul> (Note: type of list depends on what parent tag is used)
  • Span Tags <span></span> (Note: to apply CSS to part of a text by putting it in a <span> tag. - inline element does not start on a new line)
  • <input> and <textarea> Tags for form fields. (Note: <input> tag does not require closing tag but <textarea> requires.
  • Submit Button <input type="submit"> (Note: can change the text from submit to send, by changing the value attribute <input type="submit" value="send">

CSS is used to design a website, by changing things like colour, size, and spacing of HTML elements. CSS is written in a separate file from HTML, that specifies the changes to the targeted HTML elements.



  • Colour {color: #ff0000;}
  • Comments /* Comment */
  • Font Size {font-size: 10px;}
  • Font Family {font-family: serif;} (Note: If font name has a space, use "Lucida Grande")
  • Background colours {background-color: #dddddd;} (highlight)
  • Width and Height {width: 10px; height 20px;}
  • Labeling Tags by using class attributes <li class="selected"> </li> (Note: CSS class selectors start with a period)
  • Align vertically by using {float:left;}
  • Adding Space to an element to all sides inside its border by using {padding: 20px;}
  • Adding Space to an element to only one side by using {padding-top: 20px;} (top/right/bottom/left - clockwise) 

  • Adding Boarders to all sides by using {border:5px solid red} (Note: Thickness, style, color; border-bottom/border-top/border-left/border-right)
  • Adding Space to outside its border by using margin {margin: 20px;}



Structure of HTML
  • <!DOCTYPE html> : defines the HTML5 version for document
  • <head> Information of the document </head> (Note: Within head element, we specify character encoding <meta charset="utf-8">, <title>title of website</title> and link to CSS file <link rel="stylesheet" href="stylesheet.css">.)
  • <body> contents that are visible in the brower </body>
  • <div> Tag is used to group elements header, main, footer, e.g. <div class="header"> </div>

Learning to code

Being out of job does not stop me from learning new things. Although it may be a little late to learn programming, but it is never too late. I am inspired by the 81 year old lady Masako Wakamiya who bought her first computer at 60 years old, learnt programming from scratch and single-handedly created her first iPhone game. Being a Chemistry major, I was not exposed to Programming and I felt I missed out a lot of opportunities. One of the things I hope my little girl Gabriella will learn is programming, and in order to be "connected" with her, I should learn some programming myself.

The challenge at the start of learning programming is "where should I start?". There are so many different programming languages. When I attended Tech in Asia 2017 a few weeks back, I met Masanori Kato who founded Progate (an online coding school). Progate helps beginners like me to learn coding, starting from basics like HTML&CSS, Ruby, Java and Python.



Saturday, August 5, 2017

오문창 순대국밥 Oh Moon Chang Sundae @ Daejeon

The other korean cuisine one should try is Sundaegukbap 순대국밥 and Jokbal 족발. Sundaegukbap is made of rice with pig intestines. The taste of the soup is like Bak Kuk Teh. You either like it or not. I like it with lotsa chives :) If you are a meat eater, you will enjoy Jokbal, which is pig trotters cooked in soya sauce. Due to the way it is cooked, Jokbal is very chewy and sweet. A locally popular place is called 오문창 순대국밥, located at 203-2 Jungni-dong, Daedeok-gu, Daejeon, South Korea.





Friday, August 4, 2017

Mom's Touch (Fastfood chain in Korea)

Mom's Touch is a newly established chicken cum burger fastfood chain. I will highly recommend to try, especially the fries. The chicken set meal is about $10. I went twice during this trip because I had cravings.






Thursday, August 3, 2017

Real Cake @ Daejeon

My hubby knew I missed the Earl Gray Cake in my previous trip, and arranged for a meet up with his friend in this cafe named Real Cake located at1164, Dunsan-dong, Seo-gu, Daejeon. The strawberry milk shake is also a must-try. :)






Wednesday, August 2, 2017

Garden of Sky (하늘물빛정원)

In the first weekend, we traveled down south towards Geumsan. At a place called 하늘물빛정원 , located at 추부면 요광리 713-1, we ate a restaurant named 머들령 which served bbq eel over charcoal. Maybe it was grilled over charcoal, the taste is really chewy and fragrant. a stroll along the reservoir, you will see really nice flowers. The whole place was very scenic.with a music band singing and playing under a tent.

















Heading to Korea Trip (8 July 2017)

It was a uniquely different trip with Gabriella travelling on flight with us. It was her first overseas trip (besides JB), and I am glad she was rather cooperative. As it was an 8am flight, she was pulled out of bed at 4.30am. She remained sleepy and drowsy throughout the flight and slept really well. Although she was given 3 bottles of puree, she didnt take as she was sleepy and was ok with just latching on. We were given a little puppet which kept her entertained for a while. I was impressed that this time round, SIA provided bibimbap meal on flight. It was delicious and filling. 

Be sure to rent your wifi egg in advance as we could get one at a cheap rate, resulting in paying double the rental rate for the LG U+ wifi. If I dont remember wrongly, you can avoid device rental with KT Olleh if you book the rental online. http://roaming.kt.com/rental/eng/product/wibro.asp