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
83 changes: 83 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,94 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style/index.css"/>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<header>
<div>
<h1>Scott Allen</h1>
</div>
<nav>
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
<a href="#projects">Projects</a>
</nav>
</header>

<section id="about">
<div class="main-image">
<img src="https://picsum.photos/300/200" alt="main image">
</div>
<div class="about-text">
<h2>Scott Allen</h2>
<button type="button" class="button-projects">My Projects</button>
<p>I have a passion for learning new things and have recently begun learning how to code. I am currently a student at Lambda School where I am learning how to be a web developer. I love the creativity of being a developer and the ability to make something from the ground up. I build projects because it's something that I love to do.</p>
</div>
</section>

<section id="projects">
<div class="image-text">
<img src="https://picsum.photos/200" alt="stock image">
<div>
<p>Text</p>
</div>
</div>
<div class="image-text">
<img src="https://picsum.photos/200" alt="stock image">
<div>
<p>Text</p>
</div>
</div>
<div class="image-text">
<img src="https://picsum.photos/200" alt="stock image">
<div>
<p>Text</p>
</div>
</div>
<div class="image-text">
<img src="https://picsum.photos/200" alt="stock image">
<div>
<p>Text</p>
</div>
</div>
<div class="image-text">
<img src="https://picsum.photos/200" alt="stock image">
<div>
<p>Text</p>
</div>
</div>
<div class="image-text">
<img src="https://picsum.photos/200" alt="stock image">
<div>
<p>Text</p>
</div>
</div>
<div class="image-text">
<img src="https://picsum.photos/200" alt="stock image">
<div>
<p>Text</p>
</div>
</div>
<div class="image-text">
<img src="https://picsum.photos/200" alt="stock image">
<div>
<p>Text</p>
</div>
</div>

</section>

<footer>
<div>
<p>Interested?</p>
</div>
<button type="button" class="button-contact">Contact Me</button>
</footer>


</body>
</html>
217 changes: 216 additions & 1 deletion style/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,216 @@
/* Add CSS styling here */
/* Add CSS styling here */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=PT+Serif&display=swap');

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;
}

*{
box-sizing:border-box;
border:1px solid grey;
max-width:100%;
}

/*General Styles*/
html{
font-size:62.5%;
}

body{
font-size:1.6rem;
line-height:1.5;
font-family: 'PT Serif', serif;
}

h1{
font-family: 'Bebas Neue', cursive;
font-size:6rem;
margin-left:1%;
}

h2{
font-family: 'Bebas Neue', cursive;
font-size:4rem;
}


section{
padding:2% 0;
}

/*Styles for the header*/
header{
background-color:gainsboro;
}

nav{
display:flex;
margin-left:2.5%;
}

nav a{
display:inline-block;
text-decoration:none;
width:7.5%;
background-color:white;
border:2px blue;
text-align:center;
color:black;
margin-bottom:2%;
padding:.3% 0;
}

nav a:hover{
color:white;
background-color:black;
}


/*About section styles*/
#about{
display:flex;
}

.main-image{
margin:0 1%;
width:60%;
}

.main-image img{
width:100%;
}

.about-text{
display:flex;
justify-content:flex-end;
flex-direction:column;
width:40%;
}

.about-text p{
padding:3% 0;
}

.button-projects{
width:25%;
padding:1% 0;
font-size:1.6rem;
}

/*Images section styling*/

#projects{
display:flex;
flex-wrap:wrap;
}

#projects div{
width:25%;
margin-bottom:4%;
}

#projects div img{
padding:0 5%;
width:75%;
}

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

.image-text div{
padding:2% 0 0 7.5%;
}

/*footer styling*/

footer{
background-color:gainsboro;
padding:5%;
text-align:center;
}

footer div{
text-align:center;
font-size:1.8rem;
}

footer button{
font-size:1.6rem;
}


/*Styling for 800 px*/
@media (max-width:800px){
nav a{
width:15%;
}

.button-projects{
width:50%;
}

.about-text{
margin-right:1%;
}
}

/*Styling for 500 px*/
@media (max-width:500px){
header{
background-color:white;
}

h1{
text-align:center;
}

nav{
flex-direction:column;
align-items:center;
padding:.5%;
border:1px black;
}

#about{
flex-wrap:wrap;
justify-content:center;
}

.main-image{
width:85%;
}

.button-projects{
width:50%;
background-color:white;
}

.about-text{
width:70%;
align-items:center;
}

#projects div{
width:50%;
}
}