Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Junior JS drill finished #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
188 changes: 188 additions & 0 deletions css/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
/* GENERAL STYLING */

* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;

word-wrap: break-word;

}

body {
background-color: #F0F0F0;
}

.bordered {
border: 1px solid rgba(27,31,35,0.15);
border-radius: 5px;
}

.center {
margin: auto;
}



/* MAIN AND SECONDARY CONTAINERS */

.main {
margin-top: 50px;
padding-bottom: 20px;
padding-top: 20px;
width: 450px;
min-height: 70px;
border-radius: 5px;
background-color: #FFFFFF;
}

.form {
margin-top: 10px;
margin-bottom: 10px;
width: 80%;
}

.form > * {
margin-right: 10px;
margin-left: 10px;
}



/* SEARCH BAR */

.btn {
background-image: linear-gradient(-180deg, #f0f3f6 0%, #e6ebf1 90%);
background-color: #e6ebf1;
color: #24292e;
font-weight: 600;
padding-bottom: 5px;
padding-top: 5px;
padding-left: 10px;
padding-right: 10px;
}

.search-left {
margin-right: 75px;
overflow: hidden;
}

.search-textfield {
width: 100%;
padding-bottom: 5px;
padding-top: 5px;
padding-left: 10px;
padding-right: 10px;
font-weight: 600;
}

.search-right {
float: right;
}



/* ALERT MESSAGE */

#alert {
margin-top: 10px;
padding: 20px;
background-color: #FEDADC;
color: #A50000;
display: none;
border-color: #D9B9BA;
}


/* USER INFO CONTAINER */

.user-info {
margin-top: 20px;
height: 80px;
}

.user-info > div {
display: block;
float: left;
}

.github-icon {
height: 75px;
width: 75px;
}

.github-icon > img {
width: 100%;
height: auto;
}

.name-bio {
margin-left: 20px;
margin-top: 5px;
}

#username {
font-style: italic;
font-size: 0.9em;
}

#full-name {
font-weight: 600;
font-size: 2em;
color: #363636;
}

#user-bio {
font-size: 0.9em;
}



/* USER REPOS CONTAINER */

.user-repos {
margin-top: 20px;
max-height: 400px;
overflow-y: auto;
overflow-x: hidden;
}

#repos-tittle {
font-weight: 600;
font-size: 1.2em;
border-bottom: 3px solid #707070;
padding-bottom: 10px;
}

.user-repos ul {
list-style-type: none;
margin-top: 0px;
padding-left: 0px;
}

.user-repos li {
padding-top: 15px;
padding-bottom: 15px;
padding-left: 10px;
padding-right: 10px;
border-bottom: 1px solid rgba(27,31,35,0.35);
}

.repo-name {
font-weight: 600;
font-size: 1.2em;
margin-right: 75px;
overflow: hidden;
}

.repo-info {
float: right;
}

.repo-info > div {
display: block;
float: left;
margin-left: 5px;
margin-top: 2px;
font-size: 0.9em;
}
Binary file added images/github-favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions images/repo-forked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions images/star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 18 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Hello!</title>
<title>Github API</title>
<script type="text/javascript" src="js/global.js" async></script>
<script type="text/javascript" src="js/main.js" async></script>
<link rel="stylesheet" href="css/global.css">
</head>
<body>

<h1>Hello!</h1>
<div class="main center">

<div class="form center">
<div class="search">
<div class="search-right"><input class="search-btn btn bordered" id="submit" type="button" value="Submit"></div>
<div class="search-left"><input class="search-textfield bordered" type="text" id="githubUsername" name="githubUsername" placeholder="Search username..."></div>
</div>
<div class="bordered" id="alert">Does not exist!</div>
<div id="user-info-repos">
</div>
</div>

</div>

</body>
</html>
20 changes: 20 additions & 0 deletions jasmine-standalone-2.6.2/MIT.LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2008-2017 Pivotal Labs

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 changes: 27 additions & 0 deletions jasmine-standalone-2.6.2/SpecRunner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner v2.6.2</title>

<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.6.2/jasmine_favicon.png">
<link rel="stylesheet" href="lib/jasmine-2.6.2/jasmine.css">

<script src="lib/jasmine-2.6.2/jasmine.js"></script>
<script src="lib/jasmine-2.6.2/jasmine-html.js"></script>
<script src="lib/jasmine-2.6.2/boot.js"></script>
<script src="lib/jquery/jquery-3.2.1.min.js"></script>
<script src="lib/jasmine-jquery/jasmine-jquery.js"></script>


<!-- include source files here... -->
<script src="../js/global.js"></script>

<!-- include spec files here... -->
<script src="spec/globalSpec.js"></script>

</head>

<body>
</body>
</html>
Loading