Skip to content

completed #1127

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

Open
wants to merge 3 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
57 changes: 56 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,63 @@
<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">
</head>
<body>

<header>
<nav>
<h1>Abanoub Mekhail</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>
</header>
<section class="firstSection">
<button class="firstButton">
<h1>Abanoub Mekhail</h1>
<a href="projects.html">My Projects</a>
</button>
</section>
<section>
<div class="firstRow">
<div class="projectElement">
<img src="https://picsum.photos/300"/>
<p>Project A</p>
</div>
<div class="projectElement">
<img src="https://picsum.photos/300"/>
<p>Project A</p>
</div>
<div class="projectElement">
<img src="https://picsum.photos/300"/>
<p>Surprise..! its Project A again</p>
</div>


<div class="projectElement">
<img src="https://picsum.photos/300"/>
<p>Just to be sure </p>
</div>
<div class="projectElement">
<img src="https://picsum.photos/300"/>
<p>Last time i promise</p>
</div>
<div class="projectElement">
<img src="https://picsum.photos/300"/>
<p>.</p>
</div>
</div>
</section>


<footer>
<button>
<a href="contact.html">Contact Me</a>
</button>
</footer>
</body>
</html>
109 changes: 108 additions & 1 deletion style/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,108 @@
/* Add CSS styling here */
*{
box-sizing: border-box;
padding: 0;
margin: 0;
max-width: 100%;
}
html{
font-size: 62.5%;
}

body{
font-size: 1.6rem;
}
h1{
font-size: 4rem ;
}

header, section {
padding: 4% 0;
}
nav {
display: flex;
justify-content: space-between;
}

.firstSection {
display: flex;
justify-content: center;
}

.firstButton {
background-image: url("https://picsum.photos/600/400");
background-repeat: no-repeat;
background-size: cover;
color:aliceblue;
font-size: large;
width: 600px;
height: 400px;
}

.firstRow {

display: flex;
justify-content: space-evenly ;
flex-wrap: wrap;
}
.firstRow div{
width: 30%;
margin: 2% 0;
}

.projectElement {
text-align: center;
}

footer {
background-color: lightgray;
padding: 20px;
text-align: center;
}

button {
background-color:aliceblue;
color: black;
border: black solid 1px;
padding: 5px 10px;

}

button:hover {
background-color:black;
color: aliceblue;
border: aliceblue solid 1px;
}

button a {
text-decoration: none;
color: inherit;
}
@media(max-width: 800px){

}
@media(max-width: 500px){
nav{
display: flex;
flex-direction: column;
align-items: center;
width:100%
}
.links{
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.links button{
width:40%;
margin: 0.5% 0;

}
.firstSection{
width:80% ;
margin: 0 auto;
}
.firstRow div{
width: 40%;
}
}