Hi! Welcome to Week 2


This week's assignment is to work through a git tutorial and build a personal site in the class archive describing me and my final project

What I Did This Week


This is my first time trying to build a website. However, I decided to try and make it as close as I want it to what I have in mind from the beginning instead of starting with a basic design and working on it each week as I prefer to dedicate my time for each week’s assignment.
I started off with my lab instructor Nadine Tuhaimer, we went through the basics of using brackets anf HTML (short for Hyper Text Markup Language) got to know how to set the looks using Cascading Style Sheet (CSS). I also learned several codes that are helpful, like how to change the color of the text, the background, adding picture:



internal and external linking using:
for internal:
<a href="Week%203.html"> the link </a>
or for external:
<a href="https://www.blablabla.com"> the link </a>
and also alignment and others.
Note that if you want to add a paragraph, you can add it between <p> and </p> , however, if you have new line in this paragraph, it won't be added unless you add <br> for every new line you would like to have. a solution for this matter in codes and so, one can simply add they code in between <pre> and </pre>, which preserves the paragraph the same way it is.

For my website, I sketched how I imagined it will look, and chose the color scheme in order to match the look of my portfolio and CV.


I then prepared the written content that will be taking part on each section or page.
After searching, I was advised to use “bootstrap” to add my backgrounds and style as they’ll look better and are easier to handle. What bootstrapping does is that it devides the page to "containers" you can decide on each segment of the page how many containers you would like to have and you can add elements to each container alone. By default, each row is devided to 12 containers, I changed that and made them 3 for example by using: <div class="col-sm-4">, the 4 means that I want each 4 containers to be merged together, and 12/4 is 3, so for whe I wanted 2 containers what I used is: <div class="col-sm-6"> as 12/6=2. That's what I did with the circular images of each week, I made 2 containers in a row, and in the next row I added 3. You can check the tutorial that I followed from here .
After practicing for a while, I moved on to the available templates and started editing my website following this tutorial .
I added the backgrounds for each section, the picture in the beginning, and the images of the icons of the assignments. However, I couldn’t align them in the start:



, so I went back here and added the last two elements:


.navbar {
color: #fff;
padding-top: 15px;
padding-bottom: 15px;
border: 0;
border-radius: 0;
margin-bottom: 0;
font-size: 12px;
letter-spacing: 5px;
{


Yet the problem wasn’t solved, after some trial and error, I found out that removing the following:


class="img-responsive margin"


from each picture’s div element would do the trick. I then moved link the icons with the pages of each week's assignment. and I was able to set the icons as links by following this tutorial .

Next, I had to set up my git account and launch my page. The first step was to delet the contents that are already on the git page. I created a new file online named gitlab-ci.yml:



Then I configured my username and email on Git Bash by using:
* Configure username: git config --global user.name "my username"
* Configure email: git config --global user.email "my email"



and proceeded to create an SSH key by: ssh-keygen -t rsa -C "my email"
and I accessed it using: cat ~/.ssh/id_rsa.pub



By goinig to my GitLab Profile Settings, then SSh Keys, copying the private part of the SSh from Git Bash (the part that begines with ssh-rsa and ends with my email, and then adding the key.
Now I was able to delete the default content:



And the final step is to upload and push my webstie, using the "git add -A" to add all modified and new files in the current directory and all subdirectories to the staging area, "git commit -m" which saves the changes to the local repository and the -m to write a message, and "git push" to upload local repository content to the remote repository.



Last Week's Assignment

Next Week's Assignment