Skip to content

Commit

Permalink
front-updated
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfreixinho committed Apr 9, 2021
1 parent 267c043 commit 9089445
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 3 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ html, body
height: 100%;
width: 100%;
margin: auto;
background-image: url("/media/lisbon.gif");
background-image: url("../media/lisboa.gif");
background-repeat: repeat;
background-color: black;
display: table;
Expand Down Expand Up @@ -88,5 +88,6 @@ html, body
}

.content a:hover{
color: #282828;
color: black;
background-color: #dcdcdc;
}
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/normalize.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>

Expand All @@ -16,7 +15,7 @@
<div class="inner">
<div class="content">
<h1>FREIXO</h1>
<a href="astrophotography/index.html">astrophotography</a>
<a href="astrophotography/">astrophotography</a>
<a href="design/index.html">design</a>
<a href="photography/index.html">photography</a>
<a href="programming/index.html">programming</a>
Expand Down
10 changes: 10 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var urls = $('.content a');
var urlsbg = urls.css('background-color');
var colors = ['#428577', '#ec8f3f', '#d5d4d5', '#2d6fdc', '#5e7270'];

urls.hover(function () { //mouseover
var newcolor = colors[Math.floor(Math.random() * colors.length)];
$(this).css('background-color', newcolor);
}, function () { //mouseout
$(this).css('background-color', urlsbg);
});

0 comments on commit 9089445

Please sign in to comment.