Skip to content

Commit

Permalink
Changed background type for faster indexing time
Browse files Browse the repository at this point in the history
  • Loading branch information
tienthedev committed Dec 11, 2023
1 parent 6f05c28 commit 1e463f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
12 changes: 4 additions & 8 deletions css/styling.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
body {
font-family: 'Chivo Mono', monospace;
color: white;
background-image: url("../media/codeWallpaper.png");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
background-color: #001427;
}
body, html {
margin: 0;
Expand Down Expand Up @@ -104,7 +100,7 @@ body, html {

.custom-background{
border: 2px solid white;
background-color: #121212;
background-color: #001b33;
height: auto;
width: fit-content;
padding: 15px;
Expand All @@ -115,7 +111,7 @@ body, html {

.custom-background-class{
border: 2px solid white;
backdrop-filter: blur(100px);
background-color: #001b33;
height: auto;
width: fit-content;
padding: 15px;
Expand All @@ -128,7 +124,7 @@ body, html {
height: fit-content;
}
.custom-footer{
background-color: #121212;
background-color: #001b33;
}
.custom-contact{
padding-top: 5%;
Expand Down
14 changes: 1 addition & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,19 +223,7 @@ <h1 style="font-family: 'Yellowtail', cursive; font-size: 20vw;" data-aos="fade-
<script>
AOS.init();

$(document).ready(function() {
// Function to handle the fixed background effect
function updateBackground() {
var scrolled = $(window).scrollTop();
$('body').css('background-position', 'center ' + -(scrolled * 0.5) + 'px');
}

// Attach the function to the scroll event
$(window).scroll(updateBackground);

// Call the function initially to set the initial background position
updateBackground();
});

</script>

</body>
Expand Down

0 comments on commit 1e463f2

Please sign in to comment.