Skip to content

Commit

Permalink
new button added
Browse files Browse the repository at this point in the history
  • Loading branch information
ArpitKotecha committed Mar 18, 2019
1 parent 6561093 commit f609ab3
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
36 changes: 36 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,42 @@ h2 {
font-family: 'Gentium Book Basic' !important;
}

button {
color: white;
border-radius: 7px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
background-color: #4CAF50;
/* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
/* this is a green */
}

.gradient-button {
transition: 0.5s;
background-size: 200% auto;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
cursor: pointer;
}

.gradient-button:hover {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.gradient-button {
background-image: linear-gradient(to right, #0ed2f7 0%, #0ed2f7 51%, #0ed2f7 100%)
}

.gradient-button:hover {
background-position: right center;
}

h1 a,
h2 a,
h3 a,
Expand Down
7 changes: 7 additions & 0 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var h = new Date().getHours();
var date = new Date().getDate();
console.log("none" + date);
if (date >= 22 && date <= 24) {
document.getElementById('live-update-btn').style.display = "none";
console.log("none");
}
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<h2>VinHack</h2>
<h1>A Hackathon by VinnovateIT |<br /> 22nd March - 23 March |<br /> SITE - VIT Vellore
</h1>
<a href="#"><button class="gradient-button" id="live-update-btn">View Live Updates</button></a>
</header>
<span class="image"><img src="images/main.png" alt="VinnovateIT Logo" /></span>
</div>
Expand Down Expand Up @@ -305,6 +306,7 @@ <h3 align="center">Fine Print Stationary</h3>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/custom.js"></script>

</body>

Expand Down

0 comments on commit f609ab3

Please sign in to comment.