ritual.sh/assets/sass/pages/blog.scss
2026-01-09 14:28:13 +00:00

965 lines
20 KiB
SCSS

.blogs-page {
min-height: 100vh;
padding: 2rem;
position: relative;
@include media-down(lg) {
padding: 0rem;
}
// Main container with CRT monitor styling
.blogs-container {
max-width: 900px;
margin: 0 auto;
background: linear-gradient(145deg, #e8e0c8, #c4b89a);
border-radius: 12px;
padding: 25px 30px 45px 30px;
box-shadow:
0 30px 60px rgba(0, 0, 0, 0.8),
inset 0 2px 4px rgba(255, 255, 255, 0.3),
inset 0 -2px 4px rgba(0, 0, 0, 0.3);
position: relative;
@include media-down(lg) {
padding: 0px;
border-radius: 0px;
border: 0px;
margin: 0px;
width: 100%;
max-width: 100%;
&::before,
&::after {
display: none;
}
}
.blog-header {
text-align: center;
padding-bottom: 20px;
@include media-down(lg) {
font-size: 0.75rem;
}
}
// Brand on bezel
&::before {
content: "BLOG TERMINAL";
position: absolute;
bottom: 15px;
left: 50%;
transform: translateX(-50%);
color: #666;
font-size: 11px;
font-weight: bold;
letter-spacing: 2px;
@include media-down(lg) {
font-size: 9px;
}
}
// Power LED indicator
&::after {
content: "";
position: absolute;
bottom: 15px;
right: 40px;
width: 8px;
height: 8px;
background: #0f0;
border-radius: 50%;
box-shadow:
0 0 10px #0f0,
0 0 20px #0f0;
animation: pulse 2s ease-in-out infinite;
@include media-down(lg) {
right: 20px;
width: 6px;
height: 6px;
}
}
> .window {
z-index: -1;
position: fixed;
top: 0px;
left: 50%;
transform: translateX(250px);
width: 600px;
}
> .blogs-lavalamp {
position: fixed;
bottom: 0px;
left: 50%;
transform: translateX(-550px);
z-index: -1;
.lava-lamp-container {
height: 400px;
width: 180px;
pointer-events: none;
&::before {
opacity: 0.7;
filter: blur(30px);
animation: rotate-beams 7s linear infinite;
}
.lamp-text-shadow,
.lamp-text {
display: none;
}
}
}
}
// CRT screen content area
.blogs-screen {
width: 100%;
min-height: 500px;
height: auto; // Allow content to expand
background: #000;
border-radius: 8px;
position: relative;
overflow: hidden;
box-shadow:
inset 0 0 80px rgba(0, 255, 100, 0.1),
inset 0 0 40px rgba(0, 255, 100, 0.05),
inset 3px 3px 8px rgba(255, 255, 255, 0.1),
inset -3px -3px 8px rgba(0, 0, 0, 0.5);
@include media-down(lg) {
border-radius: 0px;
min-height: 400px;
}
// Screen curvature/glass emboss
&::before {
content: "";
position: absolute;
top: -5%;
left: -5%;
right: -5%;
bottom: -5%;
background:
radial-gradient(
ellipse at 30% 30%,
rgba(255, 255, 255, 0.15) 0%,
transparent 40%
),
radial-gradient(
ellipse at center,
transparent 0%,
rgba(0, 0, 0, 0.3) 100%
);
pointer-events: none;
z-index: 3;
border-radius: 8px;
}
// Scanlines
&::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(
0deg,
rgba(0, 0, 0, 0.15) 0px,
rgba(0, 0, 0, 0.15) 1px,
transparent 1px,
transparent 2px
);
pointer-events: none;
z-index: 2;
animation: scanline 8s linear infinite;
}
}
// Content area (no scrolling, grows with content)
.blogs-content {
position: relative;
width: 100%;
padding: 20px;
color: #0f0;
z-index: 1;
font-family: monospace;
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
@include media-down(lg) {
padding: 15px;
}
// Section intro content
> section {
margin-bottom: 30px;
h1 {
font-size: 2rem;
margin-bottom: 1rem;
animation: textGlow 1.5s ease-in-out infinite alternate;
@include media-down(lg) {
font-size: 1.5rem;
}
}
}
p {
font-size: 1rem;
line-height: 1.6;
margin-bottom: 1rem;
}
}
// Blog posts listing
.blog-posts {
display: flex;
flex-direction: column;
gap: 30px;
@include media-down(lg) {
gap: 20px;
}
}
// Individual blog post card
.blog-post-card {
background: rgba(0, 255, 0, 0.05);
border: 1px solid rgba(0, 255, 0, 0.3);
border-radius: 4px;
padding: 20px;
transition: all 0.3s ease;
position: relative;
@include media-down(lg) {
padding: 15px;
}
.blog-tags-filter {
border: 0;
background: transparent;
padding: 0;
margin-bottom: 0px;
}
&:hover {
background: rgba(0, 255, 0, 0.1);
border-color: rgba(0, 255, 0, 0.6);
box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}
// Non-weekly posts use amber color scheme
&.non-weekly {
background: rgba(255, 153, 0, 0.05);
border-color: rgba(255, 153, 0, 0.3);
&:hover {
background: rgba(255, 153, 0, 0.1);
border-color: rgba(255, 153, 0, 0.6);
box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
}
.blog-title {
color: #ff9900;
.blog-date {
color: #ff9900;
text-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
}
a {
color: #ff9900;
text-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
&::after {
background: #ff9900;
box-shadow: 0 0 10px #ff9900;
}
}
}
.tag-filter-link {
background: rgba(255, 153, 0, 0.2);
border-color: rgba(255, 153, 0, 0.5);
color: #ff9900;
text-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
}
}
// Post title
.blog-title {
font-size: 1.5rem;
margin-bottom: 15px;
line-height: 1.3;
display: flex;
align-items: baseline;
gap: 12px;
flex-wrap: wrap;
@include media-down(lg) {
font-size: 1.2rem;
gap: 8px;
}
// Date stamp (now inline)
.blog-date {
font-size: 0.75rem;
color: #0f0;
opacity: 0.7;
font-family: "DSEG7-Classic", monospace;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
white-space: nowrap;
@include media-down(lg) {
font-size: 0.7rem;
}
}
a {
color: greenyellow;
text-decoration: none;
position: relative;
&::after {
content: "";
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: greenyellow;
transition: width 0.3s ease;
box-shadow: 0 0 10px greenyellow;
}
&:hover::after {
width: 100%;
}
}
}
// Tags container
.blog-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
.tag {
display: inline-block;
padding: 4px 10px;
background: rgba(0, 255, 0, 0.2);
border: 1px solid rgba(0, 255, 0, 0.5);
border-radius: 3px;
font-size: 0.75rem;
color: #0f0;
font-family: monospace;
letter-spacing: 0.5px;
}
}
// Summary text
.blog-summary {
font-size: 0.95rem;
line-height: 1.6;
opacity: 0.9;
color: #0f0;
@include media-down(lg) {
font-size: 0.9rem;
}
// Links in content
a {
color: greenyellow;
text-decoration: none;
position: relative;
padding-bottom: 2px;
border-bottom: 1px dotted rgba(173, 255, 47, 0.5);
transition: all 0.3s ease;
text-shadow: 0 0 5px rgba(173, 255, 47, 0.3);
&:hover {
border-bottom-style: solid;
border-bottom-color: rgba(173, 255, 47, 0.8);
text-shadow: 0 0 10px rgba(173, 255, 47, 0.8);
background: rgba(173, 255, 47, 0.05);
}
}
// Headings in content
h2,
h3,
h4,
h5,
h6 {
margin-top: 1.5em;
margin-bottom: 0.75em;
color: greenyellow;
text-shadow: 0 0 10px rgba(173, 255, 47, 0.5);
}
h2 {
font-size: 1.5rem;
border-bottom: 1px solid rgba(0, 255, 0, 0.3);
padding-bottom: 0.5rem;
margin-top: 2rem;
@include media-down(lg) {
font-size: 1.3rem;
}
}
h3 {
font-size: 1.25rem;
@include media-down(lg) {
font-size: 1.15rem;
}
}
// Code blocks
code {
background: rgba(0, 255, 0, 0.1);
border: 1px solid rgba(0, 255, 0, 0.3);
padding: 2px 6px;
border-radius: 3px;
font-family: "Courier New", monospace;
font-size: 0.9em;
}
pre {
background: rgba(0, 255, 0, 0.05);
border: 1px solid rgba(0, 255, 0, 0.3);
border-radius: 4px;
padding: 15px;
overflow-x: auto;
margin: 1.5em 0;
code {
background: transparent;
border: none;
padding: 0;
}
}
// Blockquotes
blockquote {
border-left: 3px solid rgba(0, 255, 0, 0.5);
padding-left: 1rem;
margin: 1.5em 0;
font-style: italic;
opacity: 0.9;
}
// Lists
ul,
ol {
margin: 1em 0;
padding-left: 2em;
li {
margin: 0.5em 0;
}
}
// Horizontal rules
hr {
border: none;
border-top: 2px dashed #0f0;
margin: 2em 0;
opacity: 0.6;
}
.read-more {
display: inline-block;
margin-top: 10px;
color: greenyellow;
text-decoration: none;
font-weight: bold;
position: relative;
padding: 5px 0;
&::after {
content: "";
position: absolute;
bottom: 3px;
left: 0;
width: 0;
height: 2px;
background: greenyellow;
transition: width 0.3s ease;
box-shadow: 0 0 10px greenyellow;
}
&:hover::after {
width: 100%;
}
}
}
}
// Tag filter navigation
.blog-tags-filter {
margin-bottom: 30px;
padding: 15px;
background: rgba(0, 255, 0, 0.05);
border: 1px solid rgba(0, 255, 0, 0.3);
border-radius: 4px;
.filter-label {
display: block;
font-size: 0.9rem;
margin-bottom: 10px;
color: greenyellow;
text-shadow: 0 0 5px rgba(173, 255, 47, 0.5);
font-weight: bold;
}
.tag-links {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tag-filter-link {
display: inline-block;
padding: 6px 12px;
background: rgba(0, 255, 0, 0.1);
border: 1px solid rgba(0, 255, 0, 0.3);
border-radius: 3px;
color: #0f0;
text-decoration: none;
font-size: 0.85rem;
font-family: monospace;
transition: all 0.3s ease;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
&:hover {
background: rgba(0, 255, 0, 0.2);
border-color: rgba(0, 255, 0, 0.6);
box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}
&.active {
background: rgba(0, 255, 0, 0.3);
border-color: rgba(0, 255, 0, 0.8);
box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
text-shadow: 0 0 10px rgba(0, 255, 0, 1);
}
}
}
// Contact section styling
.contact-section {
margin-top: 40px;
padding: 20px;
background: rgba(0, 255, 0, 0.05);
border: 1px solid rgba(0, 255, 0, 0.3);
border-radius: 4px;
&:before {
content: none;
}
@include media-down(lg) {
margin-top: 30px;
padding: 15px;
}
.contact-title {
font-size: 1.3rem;
margin-bottom: 15px;
color: greenyellow;
text-shadow: 0 0 10px rgba(173, 255, 47, 0.5);
@include media-down(lg) {
font-size: 1.1rem;
}
}
.contact-content {
display: flex;
flex-direction: column;
gap: 15px;
color: greenyellow;
a {
color: #0f0;
text-decoration: none;
border-bottom: 1px dotted rgba(0, 255, 0, 0.5);
transition: all 0.3s ease;
&:hover {
color: cyan;
border-bottom-style: solid;
border-bottom-color: rgba(0, 255, 0, 0.8);
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
background: rgba(0, 255, 0, 0.05);
}
}
}
.contact-email,
.contact-pgp {
font-size: 0.95rem;
line-height: 1.6;
a:hover {
color: cyan;
}
@include media-down(lg) {
font-size: 0.9rem;
}
}
.contact-label {
color: greenyellow;
font-weight: bold;
margin-right: 10px;
text-shadow: 0 0 5px rgba(173, 255, 47, 0.5);
}
.contact-email a {
color: #0f0;
text-decoration: none;
border-bottom: 1px dotted rgba(0, 255, 0, 0.5);
transition: all 0.3s ease;
&:hover {
border-bottom-style: solid;
border-bottom-color: rgba(0, 255, 0, 0.8);
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
background: rgba(0, 255, 0, 0.05);
}
}
.pgp-actions {
display: flex;
gap: 10px;
margin-top: 10px;
flex-wrap: wrap;
}
.pgp-button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 15px;
background: rgba(0, 255, 0, 0.1);
border: 1px solid rgba(0, 255, 0, 0.3);
color: #0f0;
text-decoration: none;
font-family: monospace;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.3s ease;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
border-radius: 3px;
&:hover {
color: cyan;
}
@include media-down(lg) {
font-size: 0.8rem;
padding: 6px 12px;
}
.button-icon {
font-size: 1.1em;
line-height: 1;
}
&:hover {
background: rgba(0, 255, 0, 0.2);
border-color: rgba(0, 255, 0, 0.6);
box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}
&:active {
transform: translateY(1px);
}
}
.copy-feedback {
margin-top: 10px;
font-size: 0.85rem;
padding: 8px 12px;
border-radius: 3px;
opacity: 0;
transform: translateY(-10px);
transition: all 0.3s ease;
&.show {
opacity: 1;
transform: translateY(0);
}
&.success {
color: #0f0;
background: rgba(0, 255, 0, 0.1);
border: 1px solid rgba(0, 255, 0, 0.3);
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
&.error {
color: #f00;
background: rgba(255, 0, 0, 0.1);
border: 1px solid rgba(255, 0, 0, 0.3);
text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}
}
}
// Blog image styling
.blog-img-container {
position: relative;
display: inline-block;
max-width: 100%;
margin: 1.5em 0;
}
.blog-img {
display: block;
max-width: 100%;
height: auto;
border-radius: 12px;
border: 3px solid transparent;
background:
linear-gradient(#000, #000) padding-box,
linear-gradient(180deg, #0f0, #000) border-box;
filter: grayscale(100%) contrast(1.2) brightness(0.9) sepia(100%)
hue-rotate(60deg) saturate(300%);
transition: all 0.3s ease;
&:hover {
filter: grayscale(0%) contrast(1) brightness(1);
}
}
.blog-img-caption {
position: absolute;
top: 10px;
left: 10px;
background: rgba(0, 0, 0, 0.8);
color: #0f0;
padding: 5px 10px;
font-size: 0.85rem;
font-family: monospace;
border: 1px solid rgba(0, 255, 0, 0.5);
border-radius: 3px;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
backdrop-filter: blur(5px);
pointer-events: none;
opacity: 1;
transition: opacity 0.3s ease;
}
.blog-img-container:hover .blog-img-caption {
opacity: 0;
}
// Navigation styling
.blog-navigation {
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(0, 255, 0, 0.2);
@include media-down(lg) {
text-align: right;
}
}
.blog-post-navigation {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid rgba(0, 255, 0, 0.2);
.post-nav-links {
display: flex;
justify-content: space-between;
gap: 20px;
flex-wrap: wrap;
@include media-down(lg) {
flex-direction: column;
gap: 10px;
}
}
}
.nav-link {
display: inline-block;
padding: 10px 15px;
background: rgba(0, 255, 0, 0.1);
border: 1px solid rgba(0, 255, 0, 0.3);
color: #0f0;
text-decoration: none;
font-family: monospace;
font-size: 0.9rem;
transition: all 0.3s ease;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
border-radius: 3px;
&:hover:not(.disabled) {
background: rgba(0, 255, 0, 0.2);
border-color: rgba(0, 255, 0, 0.6);
box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}
&.disabled {
opacity: 0.3;
cursor: not-allowed;
}
&.back-link {
font-weight: bold;
}
&.prev-post,
&.next-post {
flex: 1;
text-align: center;
max-width: 400px;
@include media-down(lg) {
max-width: 100%;
}
}
&.prev-post {
text-align: left;
}
&.next-post {
text-align: right;
}
}
// Pagination styling
.pagination {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid rgba(0, 255, 0, 0.2);
text-align: center;
ul {
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
list-style: none;
padding: 0;
flex-wrap: wrap;
li {
a,
span {
display: block;
padding: 6px 12px;
background: transparent;
border: 1px solid rgba(0, 255, 0, 0.3);
color: #0f0;
text-decoration: none;
font-family: "DSEG7-Classic", monospace;
font-size: 0.9rem;
transition: all 0.3s ease;
min-width: 35px;
text-align: center;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
&:hover {
background: rgba(0, 255, 0, 0.1);
border-color: rgba(0, 255, 0, 0.7);
box-shadow:
0 0 10px rgba(0, 255, 0, 0.4),
inset 0 0 10px rgba(0, 255, 0, 0.1);
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}
}
&.active span {
background: rgba(0, 255, 0, 0.2);
border-color: rgba(0, 255, 0, 0.8);
box-shadow:
0 0 15px rgba(0, 255, 0, 0.5),
inset 0 0 10px rgba(0, 255, 0, 0.2);
text-shadow: 0 0 10px rgba(0, 255, 0, 1);
}
// Previous/Next buttons
&:first-child a,
&:last-child a {
&::before,
&::after {
font-family: monospace;
font-weight: bold;
}
}
// Disabled state
&.disabled {
a,
span {
opacity: 0.3;
cursor: not-allowed;
&:hover {
background: transparent;
border-color: rgba(0, 255, 0, 0.3);
box-shadow: none;
}
}
}
}
}
}
}
@keyframes textGlow {
from {
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}
to {
text-shadow:
0 0 20px rgba(0, 255, 0, 1),
0 0 30px rgba(0, 255, 0, 0.6);
}
}
@keyframes scanline {
0% {
transform: translateY(0);
}
100% {
transform: translateY(10px);
}
}
@keyframes pulse {
0%,
100% {
opacity: 1;
box-shadow:
0 0 10px #0f0,
0 0 20px #0f0;
}
50% {
opacity: 0.5;
box-shadow:
0 0 5px #0f0,
0 0 10px #0f0;
}
}