Skip to content
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

Added Skills Section #11

Open
wants to merge 2 commits into
base: master
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
65 changes: 65 additions & 0 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,71 @@ html, body{
a {
color: #00d1b2;
}
@keyframes load{
from {
width: 0%
}
}
@-webkit-keyframes load{
from {
width: 0%
}
}
@-moz-keyframes load{
from {
width: 0%
}
}
@-o-keyframes load{
from {
width: 0%
}
}

.bar{
background-color: #EEE;
padding: 2px;
border-radius: 15px;
margin-bottom: 5px;
font-size: 14px;
color: #FFF;
font-weight: bold;
text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.bar::before{
content: attr(data-skill);
background-color: #f3b0ff;
display: inline-block;
padding: 5px 0 5px 10px;
border-radius: inherit;
animation: load 2s 0s;
-webkit-animation: load 2s 0s;
-moz-animation: load 2s 0s;
-o-animation: load 2s 0s;
}

.bar.front::before{
background-color: #ffcc33;
}
.bar.back::before{
background-color: #a6cfe3;
}

.bar.learning::before{
width: calc(20% - 10px);
}
.bar.basic::before{
width: calc(40% - 10px);
}
.bar.intermediate::before{
width: calc(60% - 10px);
}
.bar.advanced::before{
width: calc(80% - 10px);
}
.bar.expert::before{
width: calc(100% - 10px);
}

a:hover {
color: #00d1b2;
Expand Down
15 changes: 15 additions & 0 deletions controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,18 @@ window.onload = () => {
hamburger.addEventListener('click', () => toggle(navMenu, 'is-active'));
Array.from(navItems).forEach(e => e.addEventListener('click', toggleNav));
}

var delay = 500;
$(".progress-bar").each(function(i){
$(this).delay( delay*i ).animate( { width: $(this).attr('aria-valuenow') + '%' }, delay );

$(this).prop('Counter',0).animate({
Counter: $(this).text()
}, {
duration: delay,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now)+'%');
}
});
});
27 changes: 23 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

<div class="nav-right nav-menu">
<a class="nav-item" href="#about">About</a>
<a class="nav-item" href="#skills">Skills</a>
<a class="nav-item" href="#projects">Projects</a>
<a class="nav-item" href="#social">Social</a>
</div>
Expand All @@ -61,9 +62,25 @@
</p>
</div>
</section>

<section id="skills" class="section section-2">
<div class="container">
<div class="has-text-centered">
<h3 class="title is-3">Skills</h3>

</div>
<div style="margin-top: 20px;">
<div class="bar learning" data-skill="TDD"></div>
<div class="bar back basic" data-skill="Python"></div>
<div class="bar back intermediate" data-skill="C#"></div>
<div class="bar front advanced" data-skill="CSS3"></div>
<div class="bar front expert" data-skill="HTML5"></div>


</div>
</div>
</section>
<!-- Projects -->
<section id="projects" class="section section-2">
<section id="projects" class="section section-3">
<div class="container">
<div class="has-text-centered">
<h3 class="title is-3">Projects</h3>
Expand Down Expand Up @@ -109,7 +126,7 @@ <h3 class="title is-3">Projects</h3>
</section>

<!-- Social -->
<section id="social" class="section section-3">
<section id="social" class="section section-4">
<div class="container">
<div class="has-text-centered">
<h3 class="title is-3">Let's Socialize</h3>
Expand All @@ -131,6 +148,8 @@ <h3 class="title is-3">Let's Socialize</h3>
</section>

<!-- Scripts -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<script src="controller.js"></script>
</body>
</html>
</html>