Skip to content

Commit

Permalink
pure css crt added
Browse files Browse the repository at this point in the history
  • Loading branch information
AB10110F committed Nov 20, 2023
1 parent f8f0544 commit baa316e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
Binary file removed public/scanlines.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Home() {

return (
<main className={text}>
<Image src="/scanlines.jpg" width={500} height={500} className={scanlines} alt="image" />
<span className={scanlines}></span>
<span className={scanner}></span>
<header className={styles.header}>
<h1 style={dotFont.style}>{title}</h1>
Expand Down
23 changes: 21 additions & 2 deletions src/css/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
height: 40%;
animation: right 1.5s ease;
background: repeating-linear-gradient(90deg, #ffffff 0, #ffffff 3%, transparent 0, transparent 50%), repeating-linear-gradient(180deg, #ffffff 0, #ffffff 3%, transparent 0, transparent 50%);
background-size: 2.5em 2.5em;
background-size: 8% 20%;
background-color: #00000000;
opacity: 1;
}
Expand All @@ -100,6 +100,11 @@
height: 100%;
width: 100%;
opacity: 25%;
background-color: rgb(0, 0, 0);
mask-image: radial-gradient(rgba(120, 120, 120, 1) 30%, rgb(60, 60, 60, 0.4) 52%);
background-image: linear-gradient(0deg, rgb(60, 60, 60) 50%, rgb(220, 220, 220) 50%);
background-size: 1.5% 1.5%;
animation: flicker 100ms infinite;
pointer-events: none;
}

Expand All @@ -110,7 +115,7 @@
position: fixed;
top: 0;
left: 0;
height: 7%;
height: 5%;
width: 100%;
}

Expand All @@ -119,6 +124,16 @@
display: none;
}

@keyframes flicker {
0% {
transform: translateY(1px);
}
100% {
transform: translateY(0px);
}
}


@keyframes right
{
0%{
Expand Down Expand Up @@ -212,4 +227,8 @@
{
width: 45%;
}
.bars
{
background-size: 11% 30%;
}
}

0 comments on commit baa316e

Please sign in to comment.