一、style.css :
body {
margin: 0;
text-align: center;
font-family: 'Merriweather', serif;
color: #40514E;
}
h1 {
margin: 50px auto 0 auto;
font-family: 'Sacramento', cursive;
font-size: 5.625em;
color: #66BFBF;
}
h2 {
font-family: 'Montserrat', sans-serif;
font-size: 2.5rem;
color: #66BFBF;
font-weight: normal;
padding: 10px;
}
h3 {
font-family: 'Montserrat', sans-serif;
color: #11999E;
}
hr {
border-style: none;
border-top-style: dotted;
border-color: #EAF6F6;
border-width: 5px;
width: 4%;
margin: 100px auto;
}
p{
line-height: 2;
}
.top {
/*height: 200px; */
/*width: 200px; */
/*padding: 20px; */
/* margin: 10px; */
background-color: #e6f8f9;
/*border: solid 10px; */
position: relative;
padding-top: 100px;
}
.middle {
margin : 100px 0;
}
.bottom {
background-color: #66BFBF;
padding: 50px 0 20px;
}
.ul {
text-decoration: underline;
}
a{
color: #11999E;
font-family: 'Merriweather', serif;
margin: 10px 20px;
text-decoration: none;
}
a:hover{
color: #EAF6F6;
}
.top-cloud {
position: absolute;
right: 300px;
}
.bottom-cloud {
position: absolute;
left: 300px;
/* bottom: 300px; */
}
.skill-row{
width: 50%;
margin: 100px auto 100px auto;
text-align: left;
}
.code-img {
width: 25%;
float: left;
margin-right: 30px;
}
.information-img {
width: 25%;
float: right;
margin-left: 30px;
}
.me-img{
width: 15%;
margin: 30px;
}
.contact-message{
width: 40%;
margin: 40px auto 60px;
}
.intro{
width: 30%;
margin: auto;
}
.btn {
background: #30e3cb;
background-image: -webkit-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: -moz-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: -ms-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: -o-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: linear-gradient(to bottom, #30e3cb, #2bc4ad);
-webkit-border-radius: 8;
-moz-border-radius: 8;
border-radius: 8px;
font-family: 'Merriweather', serif;
color: #ffffff;
font-size: px;
padding: 10px 20px 10px 20px;
text-decoration: none;
}
.btn:hover {
background: #3cb0fd;
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
text-decoration: none;
}
.copyright{
color: #EAF6F6;
font-size: 0.75rem;
padding: 20px 0;
}
二、index.html:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Isaac Attuah</title>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon1.ico">
<link href="https://fonts.googleapis.com/css?family=Merriweather|Montserrat|Noto+Sans+HK|Sacramento&display=swap" rel="stylesheet">
</head>
<body>
<div class="top"> <!--Divide content for structuring. They do not do anything unless CSS -->
<img src="images/cloud.png" alt="cloud-img" class ="top-cloud">
<h1>I'm Isaac.</h1>
<h2>a <span class = "ul">pro</span>grammer.</h2>
<img src="images/cloud.png" alt="cloud-img" class ="bottom-cloud">
<img src="images/mountain.png" alt="mountain-img">
</div>
<div class="middle">
<div class="profile">
<img src="images/me.png" alt="me-img" class="me-img">
<h2>Hello.</h2>
<p class ="intro">I'm a rising sophmore studying Computer Science at the University of Miami. I have a passion for building simple technological solutions to everyday problems.</p>
</div>
<hr>
<div class="skills">
<h2>My Skills.</h2>
<div class="skill-row">
<img class="code-img" src="images/code.png" alt="">
<h3>Design and Development</h3>
<p>I've been coding since I was ten and in my short time as a beginner programmer, I have built mini projects,scripts and games using languages such as HTML, CSS, Processing and Java</p>
</div>
<div class="skill-row">
<img class="information-img" src="images/information.png" alt="">
<h3>Information Technology</h3>
<p>I provide advice and technology tips to individuals to make their computer workflow faster</p>
</div>
</div>
<hr>
<div class="contact-me">
<h2>Get In Touch</h2>
<h3>I am currently free for freelance work.</h3>
<p class="contact-message">If you need help with any programming or web based project, don't hesitate to send me a message.</p>
<a class="btn" href="mailto:name@email.com">CONTACT ME</a>
</div>
</div>
<div class="bottom">
<a class="footer-link" href="https://www.linkedin.com/isaacattuah">LinkedIn</a>
<a class="footer-link" href="https://twitter.com/isaacattuah">Twitter</a>
<a class="footer-link" href="https://www.brandafrik.com/">Website</a>
<p class="copyright">© 2019 Isaac Attuah.</p>
</div>
</p>
</body>
</html>
三、项目地址
四、最终效果:

网友评论