Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/_includes/bloghead.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
</style>
<header>
<div class="fcrow">
<h1 style="margin: 0 0 0 0; text-align: center; line-height: 1.2">Nibir's Brain Dump</h1>
<h2 style="margin: 0.5em 0 0 0;color: #909090; text-align: center; line-height: 1.2">yes I write too.</h2>
<h1 style="margin: 0 0 0 0; text-align: center; line-height: 1.2;">Nibir's Brain Dump</h1>
<h2 style="margin: 0.5em 0 0 0; text-align: center; line-height: 1.2">yes I write too.</h2>
{# color: #909090 #}
</div>
</header>
<nav>
Expand Down
20 changes: 19 additions & 1 deletion src/_layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,25 @@

{% include "gtag.njk" %}
{% include "nutshell.njk" %}
</script>

<script>
// Array of colors
const colors = [
"#e0e0e0", // $transwhite
"#70d6ff", // $pale-azure
"#ff70a6", // $cyclamen
"#ff9770", // $atomic-tangerine
"#ffd670", // $naples-yellow
"#e9ff70", // $mindaro
"#70ff99", // $lime-green
"#9770ff" // $violet
];
// Select a random color
const randomColor = colors[Math.floor(Math.random() * colors.length)];

// Apply the random color to a CSS variable
document.documentElement.style.setProperty('--flicker-color', randomColor);
</script>
</body>
{% include "footer.njk" %}
</html>
4 changes: 2 additions & 2 deletions src/_layouts/pages/blogs.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ layout: base.njk
</style>
<header>
<div class="fcrow">
<h1 style="margin: 0 0 0 0; text-align: center; line-height: 1.2">Nibir's Brain Dump</h1>
<h2 style="margin: 0.5em 0 0 0;color: #909090; text-align: center; line-height: 1.2">yes I write too.</h2>
<h1 id="heads" style="margin: 0 0 0 0; text-align: center; line-height: 1.2">Nibir's Brain Dump</h1>
<h2 class="heads" style="margin: 0.5em 0 0 0;color: #909090; text-align: center; line-height: 1.2">yes I write too.</h2>
</div>
</header>
<nav>
Expand Down
27 changes: 27 additions & 0 deletions src/styles/css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,30 @@ html {
}
}

.neonText {
animation: flicker 5s infinite alternate;
}

@keyframes flicker {
0%, 18%, 22%, 25%, 53%, 57%, 100% {

text-shadow:
0 0 1px #fff,
0 0 18px var(--flicker-color),

}

20%, 24%, 55% {
text-shadow: none;
}
}

body {
overflow-x: hidden;
}



strong {
@include theme(dark) {
color: $naples-yellow;
Expand Down Expand Up @@ -146,6 +166,7 @@ mjx-container {
background: #c8fffd;
color: black;
}

pre,
code {
background: rgb(48, 48, 48);
Expand Down Expand Up @@ -176,10 +197,16 @@ h6 {
font-variation-settings: "wdth" 90;
margin: 1em 0 0.5em;
}

h1, h2, h3 {
@extend .neonText;
}

.title {
margin: 1em 0 0.2em;
}


p,
ul,
ol {
Expand Down