Skip to content

Commit

Permalink
Added cool easter egg
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-robert committed Dec 21, 2018
1 parent 9cfaf09 commit af95847
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 23 deletions.
8 changes: 3 additions & 5 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="og:site_name" content="Robert Chen">
<meta name="og:description" content="A portfolio of sorts. Collection of interests and accomplishments.">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' localhost:* ws://localhost:*; font-src 'self' data:; script-src 'self'; object-src 'none';">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' localhost:* ws://localhost:*; font-src https://fonts.gstatic.com 'self' data:; script-src 'self'; object-src 'none';">
</head>
<body>
<header class="header animate-listener">
Expand Down Expand Up @@ -70,11 +70,9 @@ <h3 class="title--text title--text__secondary">
<article class="section animate-listener">
<div class="section--panel section--panel__center">
<div class="section--text">
<div class="title--container centered">
<div class="centered">
<div class="title--text title--text__secondary collapser">
<div>AR</div><div class="collapser--collapse">tific</div><div>IA</div><div class="collapser--collapse">l&nbsp;Intelligence</div>
<br>
<div class="collapser--circle"></div>
<div>Ar</div><div class="collapser--collapse">tific</div><div>ia</div><div class="collapser--collapse">l&nbsp;Intelligence</div>
</div>
<div class="collapser--overlay"></div>
</div>
Expand Down
5 changes: 0 additions & 5 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"jquery": "^3.3.1",
"less-loader": "^4.1.0",
"material-icons": "^0.2.3",
"materialize-css": "^1.0.0",
"postcss-loader": "^3.0.0",
"style-loader": "^0.23.0",
"typeface-open-sans": "0.0.54"
Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "styles/main.less";
import "materialize-css";
import $ from "jquery";

$(() => {
Expand Down
21 changes: 10 additions & 11 deletions src/styles/collapser.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,31 @@
opacity: 0;
}

.collapser--circle{
border-radius: 50%;
background-color: white;

height: 2rem;
width: 2rem;
}

.collapser:hover{
z-index: 10000;
position: relative;
> div{
animation: expand @animation-duration @animation-duration forwards;
}
.collapser--collapse{
animation: collapse @animation-duration forwards;
}
& ~.collapser--overlay{
~.collapser--overlay{
animation: overlay @animation-duration forwards;
z-index: 9999;
}

}
}

@keyframes collapse{
0% {max-width: 100%;}
100% {max-width: 0%;}
}

@keyframes expand{
0% {}
100% {font-size: 3rem; transform: translateY(-50vh);}
}

@keyframes overlay{
0% {opacity: 0;}
100% {opacity: 1;}
Expand Down

0 comments on commit af95847

Please sign in to comment.