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

Jeremy laabs responsive #1142

Open
wants to merge 4 commits into
base: main
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
1 change: 1 addition & 0 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
</head>
<body>
<h1> ABOUT </h1>

</body>
</html>
2 changes: 1 addition & 1 deletion contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width= <h1> ABOUT </h1>, initial-scale=1.0">
<meta name="viewport" content="width= <h1> ABOUT</h1>, initial-scale=1.0">
<title>Document</title>
</head>
<body>
Expand Down
64 changes: 63 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,70 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style/index.css"/>
<title>Jeremy's Portfolio</title>
</head>
<body>

<header>
<h1>Jeremy Laabs</h1>
<nav>
<button><a href="index.html">Home</a></button>
<button><a href="about.html">About</a></button>
<button><a href="contact.html">Contact</a></button>
<button><a href="projects.html">Projects</a></button>
</nav>
</header>
<section class="topsection">
<img src="https://picsum.photos/600/400" alt="">
<div class="toptext">
<h1>Jeremy Laabs</h1>
<button><a href="projects.html">My Project</a></button>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Et, quod! Temporibus consequatur alias iure facilis ad tempora unde ipsam est rem eos? Veritatis, officia? Atque ratione fuga nulla in unde.
</p>
</div>
</section>
<section>
<div class="row">
<div class="port-element">
<img src="https://picsum.photos/300" alt="Image of portfolio 1"/>
<p>Portfolio 1</p>
</div>
<div class="port-element">
<img src="https://picsum.photos/300" alt="Image of portfolio 2"/>
<p>Portfolio 2</p>
</div>
<div class="port-element">
<img src="https://picsum.photos/300" alt="Image of portfolio 3"/>
<p>Portfolio 3</p>
</div>
<div class="port-element">
<img src="https://picsum.photos/300" alt="Image of portfolio 4"/>
<p>Portfolio 4</p>
</div>
</div>
<div class="row">
<div class="port-element">
<img src="https://picsum.photos/300" alt="Image of portfolio 5"/>
<p>Portfolio 5</p>
</div>
<div class="port-element">
<img src="https://picsum.photos/300" alt="Image of portfolio 6"/>
<p>Portfolio 6</p>
</div>
<div class="port-element">
<img src="https://picsum.photos/300" alt="Image of portfolio 7"/>
<p>Portfolio 7</p>
</div>
<div class="port-element">
<img src="https://picsum.photos/300" alt="Image of portfolio 8"/>
<p>Portfolio 8</p>
</div>
</div>
</section>
<footer>
<h1>Like What you See?</h1>
<button id="foot button"><a href="contact.html">Contact Me</a></button>
</footer>
</body>
</html>
204 changes: 203 additions & 1 deletion style/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,203 @@
/* Add CSS styling here */
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

/* html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
} */
/*
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
} */
/* Add CSS styling here */
*{
box-sizing: border-box;
padding: 0;
margin: 0;
max-width: 100%;
border: solid red;
}
header{
background-color: lightgray;
padding: 20px;
margin-bottom:20px;
}
footer{
background-color: lightgray;
padding: 20px;
text-align:center
}
.topsection{
display:flex;
flex-direction: row;
justify-content: center;
}
.toptext{
padding:25px;
width: 50%;
align-self: center;
text-align: center;
margin:auto;
}
.row{
display: flex;
justify-content: space-evenly;
flex-direction: row;
padding: 25px;
}
.port-element{
text-align: center;
}
button{
background-color: white;
color: black;
border: solid black 1px;
padding: 5px 10px;
}
button:hover{
background-color: black;
color: white;
border: white solid 1px;
}
button a{
text-decoration: none;
color: inherit;
}

@media(max-width: 1921px){
header {
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}
nav{
display: flex;
width: 100%;
justify-content: center;
align-items: center;
}
button{
width: 10%;
}
.row div{
display: flex;
width: 100%;
justify-content: space-evenly;
align-items: center;
}
.topsection{
width:100%
}
.topsection img{
width: 40%;
}
}
@media(max-width: 1367px){
.row div{
width: 22%;
}
.topsection img{
width: %;
}
}
@media(max-width: 801px){
.row div{
width: 22%;
}
.topsection img{
width: 45%;
}
}
@media(max-width: 501px){
header {
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}
nav{
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
button{
width: 40%;
margin: 1% 0;
}
.topsection{
display: flex;
flex-direction: column;
align-items: center;
}
.topsection div{
width: 90%;
}
.row{
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.row div{
width: 40%;
margin: 5% 0;
}
}
@media(max-width: 361px){
header {
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}
nav {
display: flex;
flex-direction: row;
width: 100%;
}
.topsection img{
width: 90%;
}
.row div{
display: flex;
flex-direction: column-reverse;
}
}