Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Finished first version of site and added modal js
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusVirg committed Jun 9, 2018
1 parent 6044f53 commit 8b22020
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
8 changes: 8 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ html, body {
z-index: 10;
}

.subtitle {
margin-top: 10px !important;
}

.section {
text-align: center;
}
Expand All @@ -61,4 +65,8 @@ h2 {

.button.is-info {
background-color: #0ca7d3;
}

.card-footer-item a {
color: #0ca7d3;
}
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
<link rel="stylesheet" href="./css/main.css">
<!-- Javascript -->
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script>
<script src="./js/main.js"></script>
</head>
<body>
<div id="container"></div>
<div class="wrapper">
<h1 class="title">Marcus Virginia</h1>
<h2>I love to develop, create, and learn using the power of web</h2>
<a href="#" target="_blank" class="button is-info is-rounded is-large is-link">
<a id="btn-blog" class="button is-info is-rounded is-large is-link">
<span class="icon is-small">
<i class="fas fa-bold"></i>
</span>
Expand All @@ -30,7 +29,7 @@ <h2>I love to develop, create, and learn using the power of web</h2>
</span>
<span>Resume</span>
</a>
<a href="#" target="_blank" class="button is-info is-rounded is-large is-link">
<a href="https://resume.marcusv.me/projects/" target="_blank" class="button is-info is-rounded is-large is-link">
<span class="icon is-small">
<i class="fas fa-code"></i>
</span>
Expand Down Expand Up @@ -64,19 +63,20 @@ <h2>I love to develop, create, and learn using the power of web</h2>
<footer class="card-footer">
<p class="card-footer-item">
<span>
View my <a href="https://twitter.com/MarcusVirg">Twitter</a>
View my <a href="https://twitter.com/MarcusVirg" target="_blank">Twitter</a>
</span>
</p>
<p class="card-footer-item">
<span>
View my <a href="https://www.instagram.com/marcusv345/">Instagram</a>
View my <a href="https://www.instagram.com/marcusv345/" target="_blank">Instagram</a>
</span>
</p>
</footer>
</div>
</div>
<button class="modal-close is-large" aria-label="close"></button>
<button id="btn-close" class="modal-close is-large" aria-label="close"></button>
</div>
<script src="./js/main.js"></script>
<script src="./js/sketch.js"></script>
<script>
// ----------------------------------------
Expand Down
17 changes: 17 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var modal = document.getElementById("btn-modal")
var blogBtn = document.getElementById("btn-blog")
var modalCloseBtn = document.getElementById("btn-close")
blogBtn.addEventListener("click", openModal);
modalCloseBtn.addEventListener("click", closeModal)

console.log(modal)
console.log(blogBtn)

function openModal() {
modal.classList.add("is-active")
console.log(modal)
}

function closeModal() {
modal.classList.remove("is-active")
}

0 comments on commit 8b22020

Please sign in to comment.