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

initil commit for star wars #1

Open
wants to merge 1 commit 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
45 changes: 45 additions & 0 deletions css/float-grid.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
*{
margin:0;
padding:0;
box-sizing: border-box;
}

.row{
width:960px;
margin-top:20px;
margin:auto;

}
.col-4{
float:left;
width:100%;
height:200px;
padding-right:1.041%;
padding-left:1.041%;
margin-bottom:15%;


}

img{
width:100%;
height:80%;
}

.desc{
width:100%;
text-align:center;
height:20%;
}


@media only screen and (min-width: 640px) {
.col-4 {
width: 31.25%;
}

@media only screen and (max-width: 640px) {
.col-4{
width:100%;
}
}
11 changes: 11 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

header{
width:100%;
margin-bottom:20px;
background-color:#ffc107;
}

.inner-box{
margin-bottom:20px;
border:1px solid #e6e3e3;
}
88 changes: 75 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Star Wars Responsive Challenge</title>
<meta charset="UTF-8">
<title>Star Wars Responsive Challenge</title>

<!-- Responsive viewport tag, tells small screens that it's responsive -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Responsive viewport tag, tells small screens that it's responsive -->
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Normalize.css, a cross-browser reset file -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.css" rel="stylesheet">
<!-- Normalize.css, a cross-browser reset file -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.css" rel="stylesheet">

<!-- Google Font -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">

<!-- Stylesheets -->
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">

<link rel="stylesheet" href="css/float-grid.css">
<link rel="stylesheet" href="css/main.css">
<!-- Stylesheets -->
</head>
<body>
<header>
<h1>Star Wars Characters<h1>
<h5>Incomplete list</h5>
</header>


<body>
<main>
<div class="row">
<div class="col-4">
<div class="inner-box"><img src="images/rey_square.png" alt="rey">
<div class="desc">
<h5>Ray</h5>
<h6>Protagonist, from tatooine</h6>
</div>
</div>
</div>
<div class="col-4">
<div class="inner-box"><img src="images/finn_square.png" alt="finn">
<div class="desc">
<h5>Finn</h5>
<h6>Storm Trooper,befriends Ray</h6>
</div>
</div>
</div>
<div class="col-4">
<div class="inner-box"><img src="images/kylo_square.png" alt="kylo">
<div class="desc">
<h5>Kylo</h5>
<h6>Main villian, or is he?</h6>
</div>
</div>
</div>
</div>

<div class="row">
<div class="col-4">
<div class="inner-box"><img src="images/poe_square.png" alt="poe">
<div class="desc">
<h5>Poe</h5>
<h6>Neutral pilot</h6>
</div>
</div>
</div>
<div class="col-4">
<div class="inner-box"><img src="images/chewbacca_square.png" alt="chewbacca">
<div class="desc">
<h5>Chewbacca</h5>
<h6>A great first mate</h6>
</div>
</div>
</div>
<div class="col-4">
<div class="inner-box"><img src="images/yoda_square.png" alt="yoda">
<div class="desc">
<h5>Yoda</h5>
<h6>Wise old Jedi master</h6>
</div>
</div>
</div>
</div>

</body>
</html>
</main>
</body>
</html>