Skip to content

Commit

Permalink
update Contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
vhnam committed Aug 7, 2018
1 parent a827e03 commit 0c0ca66
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 67 deletions.
66 changes: 27 additions & 39 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,45 +72,33 @@
</nav>

<section class="contact">
<div class="text-center">
<div class="container">
<div class="hero">
<h1 hidden>Liên hệ</h1>
<img src="https://vhnam.github.io/public/img/namvh_2.png" alt="Nam Vo" itemprop="image">
<p class="contact__greeting" itemprop="description">
Cảm ơn bạn đã dành thời gian ghé thăm blog.<br>
Bạn có thể liên hệ tôi bằng những mạng xã hội phía dưới.
</p>
</div>
<ul class="contact__social-networks">
<li>
<a href="https://github.com/vhnam" itemprop="url">
<img src="https://vhnam.github.io/public/img/github.png" class="social-networks__icon" alt="GitHub" />
</a>
</li>
<li>
<a href="https://vn.linkedin.com/in/namvh" itemprop="url">
<img src="https://vhnam.github.io/public/img/linkedin.png" class="social-networks__icon" alt="LinkedIn" />
</a>
</li>
<li>
<a href="https://www.pinterest.com/vhnam2504/" itemprop="url">
<img src="https://vhnam.github.io/public/img/pinterest.png" class="social-networks__icon" alt="Pinterest" />
</a>
</li>
<li>
<a href="https://plus.google.com/+NamVoHoai2504" itemprop="url">
<img src="https://vhnam.github.io/public/img/google+.png" class="social-networks__icon" alt="Google+" />
</a>
</li>
</ul>
<div class="contact__download">
<form action="/src/nam-vo__resume.pdf" method="GET" target="_blank">
<button type="submit" class="contact__btn-download">Résume của tôi</button>
</form>
</div>
</div>
</div>
<ul class="social-networks">
<li>
<a href="https://github.com/vhnam" itemprop="url">
<img src="https://vhnam.github.io/public/img/github.png" class="social-networks__icon" alt="GitHub" />
</a>
</li>
<li>
<a href="https://vn.linkedin.com/in/namvh" itemprop="url">
<img src="https://vhnam.github.io/public/img/linkedin.png" class="social-networks__icon" alt="LinkedIn" />
</a>
</li>
<li>
<a href="https://www.pinterest.com/vhnam2504/" itemprop="url">
<img src="https://vhnam.github.io/public/img/pinterest.png" class="social-networks__icon" alt="Pinterest" />
</a>
</li>
<li>
<a href="https://plus.google.com/+NamVoHoai2504" itemprop="url">
<img src="https://vhnam.github.io/public/img/google+.png" class="social-networks__icon" alt="Google+" />
</a>
</li>
<li>
<a itemprop="url" href="https://soundcloud.com/namvh">
<img src="https://vhnam.github.io/public/img/soundcloud.png" class="social-networks__icon" alt="Soundcloud" />
</a>
</li>
</ul>
</section>

<footer class="footer">
Expand Down
2 changes: 1 addition & 1 deletion public/css/contact.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/img/map.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 28 additions & 27 deletions src/scss/contact.scss
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
.contact {
margin: 5rem 0;
.hero {
height: 3rem;
}

&__greeting {
margin-top: 3rem;
margin-bottom: 5rem;
font-size: 1.5rem;
color: #F44336;
}

&__social-networks {
.contact {
text-align: center;
width: 100vw;
height: calc(100vh - 266px);
background-image: url('/public/img/map.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center;

.social-networks {
display: inline-flex;
padding: 0;
list-style-type: none;
}

&__download {
display: block;
margin-top: 3rem;
}

&__btn-download {
padding: 1rem;
width: 15rem;
font-weight: 300;
text-align: center;
color: #fff;
background-color: #F44336;
outline: none;
border: 0;
}
background-color: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
list-style-type: none;

.social-networks {
&__icon {
width: 48px;
height: 48px;
margin: 1rem .75rem;
}
}
}


@media (max-width: 576px) {
.contact {
.social-networks {
&__icon {
width: 24px;
height: 24px;
}
}
}
}

0 comments on commit 0c0ca66

Please sign in to comment.