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
11 changes: 8 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@
</head>
<body>
<section class="top">
<h1>AMANDA FAHEY</h1>
<nav>
<h1>AMANDA FAHEY</h1>
<div class="links">
<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>
</div>
</nav>
<h1>My Projects</h1>
<h2>My Projects</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure facilis obcaecati esse dignissimos adipisci doloribus harum similique fugiat pariatur, sed id aliquam animi maxime, vitae commodi, dolor deleniti. Architecto, facere.
</p>
<img src="https://picsum.photos/800/500"/>

</section>
<section class="bg-img">

</section>

<section class="row">
Expand Down
60 changes: 58 additions & 2 deletions style/index.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
*{
box-sizing: border-box;
padding: 0%;
margin: 0%
max-width:100%;
}

html{
font-size:62.5%;
}

body{
font-size:1.6rem;
}

section{
padding:4% 0;
}


.top {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
width:80%;
margin:0 auto;
}


.bg-img{
background-image:url('https://images.unsplash.com/photo-1638898863117-9625f88614e7?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwyM3x8fGVufDB8fHx8&auto=format&fit=crop&w=400&q=60');
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
height: 50vh;
}

footer {
background-color: lightgrey;
Expand All @@ -24,4 +52,32 @@ footer {
width: 200px;
text-align: center;
padding: 20px;
}
}

@media(max-width: 800px){
.row{
flex-wrap:wrap;
}
.row img{
width: 20%;
}
.row div{
width:100%;
}
}

@media(max-width: 500px){
.links{
display: flex;
flex-direction: column;
align-items: center;
}
.row{
flex-wrap:wrap;
}
.row img{
width: 40%;
margin:4% 0;
}
}