Skip to content
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
14,286 changes: 7,446 additions & 6,840 deletions package-lock.json

Large diffs are not rendered by default.

213 changes: 106 additions & 107 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,162 +1,161 @@
.App {
width: 100%;
height: 100%;
margin: 0 auto;
left: 0;
top: 0;
padding: 0;
height: 100%;
position: absolute;
width: 100%;
height: 100%;
margin: 0 auto;
left: 0;
top: 0;
padding: 0;
height: 100%;
position: absolute;
}

.app-header {
background-color: black;
height: 4rem;
width: 100%;
width: 100%;
top: 0;
padding: 4px 0;
margin: 0;
color: white;
z-index: 100;
background-color: black;
height: 4rem;
width: 100%;
width: 100%;
top: 0;
padding: 4px 0;
margin: 0;
color: white;
z-index: 100;
}

.logo {
float: left;
width: 2.4rem;
height: 2.4rem;
background: white;
margin: 0.6rem;
float: left;
width: 2.4rem;
height: 2.4rem;
background: white;
margin: 0.6rem;
}

.title {
position: relative;
left: 0.4rem;
margin-right: 10px;
font-size: 2.2rem;
margin-top: 0.4rem;
letter-spacing: 0.1rem;
color: white;
position: relative;
left: 0.4rem;
margin-right: 10px;
font-size: 2.2rem;
margin-top: 0.4rem;
letter-spacing: 0.1rem;
color: white;
}
.main {
z-index: 1;
overflow: scroll;
margin: 20px auto;
min-height: 100%;
max-width: 50rem;
z-index: 1;
margin: 6rem auto;
min-height: 100%;
max-width: 50rem;
}

.action {
width: 30rem;
height: 4rem;
width: 30rem;
height: 4rem;
}

.fab {
padding: 1rem;
margin: 0.2rem;
border-radius: 5px;
transition: 0.3s;
padding: 1rem;
margin: 0.2rem;
border-radius: 5px;
transition: 0.3s;
}

.fab:hover {
background-color: grey;
border-radius: 5px;
transition: 0.3s;
background-color: grey;
border-radius: 5px;
transition: 0.3s;
}
.action input {
font-size: 1.2rem;
font-size: 1.2rem;
}

.search {
padding: 0.4rem;
text-align: center;
padding: 0.4rem;
text-align: center;
}

.inline.fields,
.radio-btn {
font-size: 1.4rem;
font-size: 1.4rem;
}

.extra.content * {
color: #a0a0a0;
color: #a0a0a0;
}

footer {
position: fixed;
margin-top: 5%;
height: 50px;
width: 100%;
text-align: center;
font-size: 0.8em;
bottom: 0;
padding: 4px 0;
margin: 0;
font-size: 14px;
background-color: black;
color: white;
position: fixed;
margin-top: 5%;
height: 50px;
width: 100%;
text-align: center;
font-size: 0.8em;
bottom: 0;
padding: 4px 0;
margin: 0;
font-size: 14px;
background-color: black;
color: white;
}

footer a,
footer a:after {
text-decoration: underline;
color: white;
text-decoration: underline;
color: white;
}
#user-img,
#repo-img {
max-width: 100px;
max-width: 100px;
}
.message-error {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}

.flash-message {
margin: 20px;
padding: 15px;
border: 1px solid transparent;
border-radius: 4px;
margin: 20px;
padding: 15px;
border: 1px solid transparent;
border-radius: 4px;
}

@media only screen and (max-width: 630px) {
.fields {
display: flex;
justify-content: space-between;
padding: 25px 5px;
}

.fields .field {
height: 100%;
}
.action {
text-align: center;
width: 90%;
height: 4rem;
}
#user-img,
#repo-img {
max-width: 100px;
display: inline;
}
#user-text {
display: inline;
}
.fields {
display: flex;
justify-content: space-between;
padding: 25px 5px;
}

.fields .field {
height: 100%;
}
.action {
text-align: center;
width: 90%;
height: 4rem;
}
#user-img,
#repo-img {
max-width: 100px;
display: inline;
}
#user-text {
display: inline;
}
}

@media only screen and (max-width: 480px) {
.fields {
display: flex;
flex-direction: column !important;
padding: 20px 5px;
}

.fields .field {
width: 100%;
display: block;
padding: 15px 0 !important;
}
#user-img,
#repo-img {
max-width: 100px;
}
.fields {
display: flex;
flex-direction: column !important;
padding: 20px 5px;
}

.fields .field {
width: 100%;
display: block;
padding: 15px 0 !important;
}
#user-img,
#repo-img {
max-width: 100px;
}
}
26 changes: 13 additions & 13 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ import Footer from "./Footer";
import "./App.css";

class App extends React.Component {
render() {
return (
<div className="App">
<Header />
<Router>
<Main path="/" />
<UserDetails path="/details/:userName" />
<About path="/about" />
</Router>
<Footer />
</div>
);
}
render() {
return (
<div className="App">
<Header />
<Router>
<Main path="/" />
<UserDetails path="/details/:userName" />
<About path="/about" />
</Router>
<Footer />
</div>
);
}
}

render(<App />, document.getElementById("root"));
Loading