Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions karam-karim/reload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
window.onload = () => {
/*
internet is really slow, I can't install live dev server,
so i'm using this instead;
*/
setTimeout(a => location.reload(true), 2000);

};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but you don't need js here. Used it locally

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry I added this my mistake, It won't be here on next push.

74 changes: 74 additions & 0 deletions karam-karim/task-1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>task 1</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>

<div class="container">

<div class="header">
<h2>Select youre preferred language</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum eveniet enim quos amet molestias, harum?</p>
</div>

<div class="body">

<div class="langs">

<span>
<input type="checkbox" name="" id="php">
<label for="php">php</label>
</span>

<span>
<input type="checkbox" name="" id="c">
<label for="c">c</label>
</span>

<span>
<input type="checkbox" name="" id="cpp">
<label for="cpp">c++</label>
</span>

<span>
<input type="checkbox" name="" id="python">
<label for="python">python</label>
</span>

<span>
<input type="checkbox" name="" id="javascript">
<label for="javascript">javascript</label>
</span>

<span>
<input type="checkbox" name="" id="csharp">
<label for="csharp">c#</label>
</span>

<span>
<input type="checkbox" name="" id="java">
<label for="java">java</label>
</span>

<span>
<input type="checkbox" name="" id="r">
<label for="r">r</label>
</span>

</div>

<div class="buttons">
<a href="#">go back</a>
<a href="#">procced</a>
</div>

</div>

</div>

</body>

</html>
100 changes: 100 additions & 0 deletions karam-karim/task-1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
body{
margin: 0;
padding: 0;
background-color: rgb(228,229,231);
font-family: monospace;
font-size: 1.5em;
}

.container{
display: flex;
flex-direction: column;
align-items: center;
}

.container > .header{
display: flex;
flex-direction: column;
align-items: center;
margin: 20px;
}

.container > .header > h2, .container > .header > p{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same goes here, you can make this selector shorter as well

color: rgb(83,82,82);
font-weight: bold;
}

.container > .header > p {
font-size: 0.7em;
width: 70%;
}


.container > .body{
display: flex;
flex-direction: column;
align-items: center;
}

.container > .body > .langs {
display: flex;
flex-wrap: wrap;
width: 70%;
}

.container > .body > .langs > span {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can instead make this shorter ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could add a class or id to the element to target them directly, the reason that I made it this way it's easier to read for me and understand what i'm styling, but if you don't like this type of selectors I can change it 😃

display: block;
margin: .5em 1em;
}

.container > .body > .langs > span > label{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

display: block;
background-color: rgb(241,242,241);
color: #000;
padding: .8em 2em;
border-radius: 5px;
transition: all ease-in .2s;
cursor: pointer;
}

.container > .body > .langs > span > input[type="checkbox"]:checked + label{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here too

background-color: rgb(20,223,223);
color: #fff;
transition: all ease-in .2s;
}

.container > .body > .buttons{
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
padding: 2em 1em;
}

.container > .body > .buttons > a{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too and check others as well

color: rgb(167,167,167);
text-decoration: none;
padding: 1em 3.5em;
border: 1px solid rgb(161,196,139);
margin: 0 1em;
border-radius: 30px;
outline: none;
transition: background-color linear .2s;
}

.container > .body > .buttons > a:active{
background-color: rgb(161,196,139);
color:#fff;
}

.container > .body > .buttons > a:nth-child(1){
text-transform: capitalize;
}

.container > .body > .buttons > a:nth-child(2){
text-transform: uppercase;
}

input[type="checkbox"]{
display: none;
}
Binary file added karam-karim/task-2/arrow-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions karam-karim/task-2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>task 2</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="container">
<h2 class="header">Sign up</h2>

<div class="input">
<p>First name</p>
<input type="text" placeholder="John...">
</div>

<div class="input">
<p>Last name</p>
<input type="text" placeholder="Doe...">
</div>

<div class="input">
<p>E-mail</p>
<input type="email" placeholder="mail@whilehouse.gov">
</div>

<div class="input">
<p>Country</p>
<select name="" id="">
<option value="" disabled selected> Select </option>
<option value="">country 1</option>
<option value="">country 2</option>
<option value="">country 3</option>
<option value="">country 4</option>
<option value="">country 5</option>
<option value="">country 6</option>
<option value="">country 7</option>
<option value="">country 8</option>
</select>
</div>
<div class="input">
<p>Timezone</p>
<select name="" id="">
<option value="" disabled selected> Select </option>
<option value="">timezone 1</option>
<option value="">timezone 2</option>
<option value="">timezone 3</option>
<option value="">timezone 4</option>
</select>
</div>

</div>
<!-- <script src="../reload.js" charset="utf-8"></script> -->
</body>
</html>
63 changes: 63 additions & 0 deletions karam-karim/task-2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
body{
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
padding-top: 3em;
font-family: Open Sans;
}


.container {
padding: 2em;
}

.container > .header{
font-size: 2em;
margin: 0;
}

.container > .input {
display: flex;
margin: 2em 0;
justify-content: space-between;
}

.container > .input > p{
text-align: left;
font-weight: bold;
margin: 0 1em;
line-height: 2.8em;
align-items: center;
}

.container > .input > input[type="text"] ,
.container > .input > input[type="email"]{
border: none;
padding: 1em;
padding-left: 0 !important;
background-color: transparent;
border-bottom: 2px solid lightgrey;
transition: all linear .3s;
}

.container > .input > input[type="text"]:focus ,
.container > .input > input[type="email"]:focus{
border-color: grey;
}

.container > .input > select{
width: 69%;
background-color: transparent;
border: none;
border-bottom: 2px solid lightgrey;
color: grey;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url(arrow-down.png);
background-position: right;
background-repeat: no-repeat;
background-size: 10px;
}
Binary file added karam-karim/task-3/arrow-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added karam-karim/task-3/france.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added karam-karim/task-3/germany.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions karam-karim/task-3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>task 3</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>

<div class="container">
<ui class="dropdown" data-text="Select Language">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this tag ui?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, It meant to be ul not ui.


<li class="option">france</li>
<li class="option">germany</li>
<li class="option">united kingdom</li>
<li class="option">poland</li>

</ui>
</div>

</body>
</html>
Binary file added karam-karim/task-3/poland.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading