Skip to content

Commit

Permalink
Background and Transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
1n0r4 authored Dec 12, 2024
1 parent 4198807 commit ed422b0
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
Binary file added images/starfinder.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ document.addEventListener('DOMContentLoaded', () => {
}
});
});
});
});
16 changes: 12 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,29 @@
}

body {
background-color: var(--bg-primary);
background: linear-gradient(180deg, rgba(10, 11, 22, 0.8), rgba(5, 6, 12, 0.8), black), url("images/starfinder.webp");
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed; /* Needed for parallax */
background-position: center top;
color: var(--text-primary);
font-family: var(--font-primary);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
overflow-x: hidden;
}

.container {
max-width: 1000px;
margin: 0 auto;
margin: 2rem auto;
padding: 2rem;
background-color: var(--bg-secondary);
background: rgba(17, 22, 39, 0.7); /* Adjust transparency */
-webkit-backdrop-filter: blur(var(--glass-blur));
backdrop-filter: blur(var(--glass-blur));
border-radius: 16px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
box-shadow: var(--box-shadow-primary);
border: 1px solid rgba(255, 255, 255, 0.1);
}

h1, h2 {
Expand Down
2 changes: 1 addition & 1 deletion style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 15 additions & 6 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,35 @@
}

body {
background-color: var(--bg-primary);
background: linear-gradient(180deg, rgba(10, 11, 22, 0.8), rgba(5, 6, 12, 0.8), black),
url('images/starfinder.webp');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed; /* Needed for parallax */
background-position: center top;
color: var(--text-primary);
font-family: var(--font-primary);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
overflow-x: hidden;
}



// Container Styles
.container {
max-width: 1000px;
margin: 0 auto;
margin: 2rem auto;
padding: 2rem;
background-color: var(--bg-secondary);
background: rgba(17, 22, 39, 0.7); /* Adjust transparency */
backdrop-filter: blur(var(--glass-blur));
border-radius: 16px;
box-shadow:
0 15px 35px rgba(0, 0, 0, 0.1),
0 5px 15px rgba(0, 0, 0, 0.05);
box-shadow: var(--box-shadow-primary);
border: 1px solid rgba(255, 255, 255, 0.1);
}


// Typography
h1, h2 {
font-family: var(--font-display);
Expand Down

0 comments on commit ed422b0

Please sign in to comment.