Update header text

This commit is contained in:
Naman Sood 2019-12-30 05:34:22 -05:00
parent a6c3082272
commit 2e27ee0cc3
4 changed files with 400 additions and 410 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
*.css.map

View file

@ -1,352 +1,325 @@
*, *:before, *:after { *, *:before, *:after {
-webkit-box-sizing: border-box; box-sizing: border-box;
box-sizing: border-box; } }
html { html {
overflow-x: hidden; } overflow-x: hidden;
}
body { body {
margin: 0; margin: 0;
font-family: 'Work Sans', sans-serif; } font-family: "Work Sans", sans-serif;
}
body.dark-mode { body.dark-mode {
-webkit-filter: invert(100%); filter: invert(100%);
filter: invert(100%); } }
body.dark-mode .image-container img { body.dark-mode .image-container img {
-webkit-filter: invert(100%); filter: invert(100%);
filter: invert(100%); } }
body.dark-mode .bg { body.dark-mode .bg {
opacity: 0 !important; } opacity: 0 !important;
body.dark-mode section:nth-child(even), body.dark-mode footer:nth-child(even) { }
background: #eee !important; } body.dark-mode section:nth-child(even), body.dark-mode footer:nth-child(even) {
body.dark-mode section:nth-child(odd), body.dark-mode footer:nth-child(odd) { background: #eee !important;
background: white !important; } }
body.dark-mode .works-card .text-container { body.dark-mode section:nth-child(odd), body.dark-mode footer:nth-child(odd) {
color: #333 !important; } background: white !important;
body.dark-mode .works-card .text-container a { }
color: inherit !important; body.dark-mode .works-card .text-container {
background: rgba(0, 0, 0, 0.1) !important; color: #333 !important;
-webkit-box-shadow: none !important; }
box-shadow: none !important; } body.dark-mode .works-card .text-container a {
body.dark-mode footer { color: inherit !important;
color: #333 !important; } background: rgba(0, 0, 0, 0.1) !important;
box-shadow: none !important;
}
body.dark-mode footer {
color: #333 !important;
}
.main { .main {
height: 100vh; height: 100vh;
position: relative; position: relative;
z-index: 10; z-index: 10;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center; justify-content: center;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start; align-items: flex-start;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column; flex-direction: column;
overflow-y: hidden; } overflow-y: hidden;
.main > * { }
position: relative; } .main > * {
.main > canvas#bg { position: relative;
position: absolute; }
top: 0; .main > canvas#bg {
left: 0; } position: absolute;
.main .text-container { top: 0;
text-align: left; left: 0;
max-width: 50rem; }
margin: auto auto auto 13vw; } .main .text-container {
.main h1 { text-align: left;
font-size: 4rem; max-width: 50rem;
font-weight: 500; margin: auto auto auto 13vw;
margin: 0 0 2rem; }
color: #333; } .main h1 {
.main h3 { font-size: 4rem;
margin: 1rem 0 0; font-weight: 500;
font-size: 1.7rem; margin: 0 0 2rem;
line-height: 1.4; color: #333;
font-weight: normal; }
color: #999; } .main h3 {
.main a { margin: 1rem 0 0;
color: #333; font-size: 1.7rem;
text-decoration: none; line-height: 1.4;
border-bottom: 0.2rem solid transparent; font-weight: normal;
white-space: nowrap; color: #999;
position: relative; } }
.main a:before { .main em {
content: ''; color: #333;
bottom: 0.2rem; font: inherit;
left: 0; }
width: 100%; .main a {
height: 0.1rem; color: #333;
background: rgba(51, 51, 51, 0.2); text-decoration: none;
position: absolute; border-bottom: 0.2rem solid transparent;
-webkit-transform: scaleX(0); white-space: nowrap;
-ms-transform: scaleX(0); position: relative;
transform: scaleX(0); }
-webkit-transform-origin: center left; .main a:before {
-ms-transform-origin: center left; content: "";
transform-origin: center left; bottom: 0.2rem;
opacity: 0.2; left: 0;
-webkit-transition: all 0.2s ease; width: 100%;
-o-transition: all 0.2s ease; height: 0.1rem;
transition: all 0.2s ease; } background: rgba(51, 51, 51, 0.2);
.main a:hover:before { position: absolute;
-webkit-transform: scaleX(1); transform: scaleX(0);
-ms-transform: scaleX(1); transform-origin: center left;
transform: scaleX(1); opacity: 0.2;
opacity: 1; } transition: all 0.2s ease;
}
.main a:hover:before {
transform: scaleX(1);
opacity: 1;
}
.works-card { .works-card {
height: 100vh; height: 100vh;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start; justify-content: flex-start;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
max-width: 100%; max-width: 100%;
position: relative; position: relative;
z-index: 10; } z-index: 10;
.works-card > div { }
width: 50%; .works-card > div {
position: relative; width: 50%;
height: 100%; } position: relative;
.works-card .image-container img { height: 100%;
width: 133%; }
position: absolute; .works-card .image-container img {
top: 0; width: 133%;
bottom: 0; position: absolute;
margin: auto; top: 0;
border-radius: 0.2rem; bottom: 0;
-webkit-box-shadow: 0 0 10rem rgba(0, 0, 0, 0.1), 0 0.25rem 1rem rgba(0, 0, 0, 0.33); margin: auto;
box-shadow: 0 0 10rem rgba(0, 0, 0, 0.1), 0 0.25rem 1rem rgba(0, 0, 0, 0.33); } border-radius: 0.2rem;
.works-card .image-container:nth-child(1) img { box-shadow: 0 0 10rem rgba(0, 0, 0, 0.1), 0 0.25rem 1rem rgba(0, 0, 0, 0.33);
right: 0; } }
.works-card .image-container:nth-child(2) img { .works-card .image-container:nth-child(1) img {
left: 0; } right: 0;
.works-card .text-container { }
display: -webkit-box; .works-card .image-container:nth-child(2) img {
display: -ms-flexbox; left: 0;
display: flex; }
-webkit-box-pack: center; .works-card .text-container {
-ms-flex-pack: center; display: flex;
justify-content: center; justify-content: center;
-webkit-box-align: center; align-items: center;
-ms-flex-align: center; flex-direction: column;
align-items: center; padding: 0 2rem;
-webkit-box-orient: vertical; transition: all 0.225s ease;
-webkit-box-direction: normal; }
-ms-flex-direction: column; .works-card .text-container > * {
flex-direction: column; max-width: 30rem;
padding: 0 2rem; width: 100%;
-webkit-transition: all 0.225s ease; }
-o-transition: all 0.225s ease; .works-card .text-container h1 {
transition: all 0.225s ease; } font-size: 3.3rem;
.works-card .text-container > * { margin: 0 0 1rem;
max-width: 30rem; }
width: 100%; } .works-card .text-container p {
.works-card .text-container h1 { font-size: 1.15rem;
font-size: 3.3rem; line-height: 1.5;
margin: 0 0 1rem; } margin: 1rem 0 0;
.works-card .text-container p { }
font-size: 1.15rem; .works-card .text-container a {
line-height: 1.5; color: black;
margin: 1rem 0 0; } text-decoration: none;
.works-card .text-container a { position: relative;
color: black; background: rgba(0, 0, 0, 0.05);
text-decoration: none; display: inline-block;
position: relative; padding: 1rem 2rem 1rem 1.25rem;
background: rgba(0, 0, 0, 0.05); border-radius: 0.1rem;
display: inline-block; margin-top: 1rem;
padding: 1rem 2rem 1rem 1.25rem; box-shadow: 0 0.05rem 0.025rem rgba(0, 0, 0, 0.3);
border-radius: 0.1rem; margin-right: 1rem;
margin-top: 1rem; }
-webkit-box-shadow: 0 0.05rem 0.025rem rgba(0, 0, 0, 0.3); .works-card .text-container a:before {
box-shadow: 0 0.05rem 0.025rem rgba(0, 0, 0, 0.3); position: absolute;
margin-right: 1rem; } bottom: 1.2rem;
.works-card .text-container a:before { left: 1.25rem;
position: absolute; width: calc(100% - 3.25rem);
bottom: 1.2rem; content: "";
left: 1.25rem; height: 0.115rem;
width: calc(100% - 3.25rem); transition: all 0.2s ease;
content: ''; border-top: 0.115rem solid black;
height: 0.115rem; opacity: 0.2;
-webkit-transition: all 0.2s ease; box-sizing: border-box;
-o-transition: all 0.2s ease; transform: scaleX(0);
transition: all 0.2s ease; transform-origin: center left;
border-top: 0.115rem solid black; }
opacity: 0.2; .works-card .text-container a:after {
-webkit-box-sizing: border-box; content: "";
box-sizing: border-box; position: absolute;
-webkit-transform: scaleX(0); right: 1.25rem;
-ms-transform: scaleX(0); pointer-events: none;
transform: scaleX(0); font-size: 0.66rem;
-webkit-transform-origin: center left; top: 0;
-ms-transform-origin: center left; bottom: 0;
transform-origin: center left; } height: 0.33rem;
.works-card .text-container a:after { width: 0.33rem;
content: ''; transform: rotate(45deg);
position: absolute; border: 1px solid black;
right: 1.25rem; border-bottom: 0;
pointer-events: none; border-left: 0;
font-size: 0.66rem; line-height: 1.2rem;
top: 0; margin: auto;
bottom: 0; opacity: 0.7;
height: 0.33rem; transition: all 0.2s ease;
width: 0.33rem; }
-webkit-transform: rotate(45deg); .works-card .text-container a:hover:before {
-ms-transform: rotate(45deg); transform: scaleX(1);
transform: rotate(45deg); }
border: 1px solid black; .works-card .text-container a:hover:after {
border-bottom: 0; right: 1.15rem;
border-left: 0; }
line-height: 1.2rem; .works-card .text-container a.dark {
margin: auto; color: rgba(255, 255, 255, 0.8);
opacity: 0.7; background: rgba(255, 255, 255, 0.9);
-webkit-transition: all 0.2s ease; }
-o-transition: all 0.2s ease; .works-card .text-container a.dark:before {
transition: all 0.2s ease; } border-color: inherit;
.works-card .text-container a:hover:before { }
-webkit-transform: scaleX(1); .works-card .text-container a.dark:after {
-ms-transform: scaleX(1); border-color: inherit;
transform: scaleX(1); } }
.works-card .text-container a:hover:after {
right: 1.15rem; }
.works-card .text-container a.dark {
color: rgba(255, 255, 255, 0.8);
background: rgba(255, 255, 255, 0.9); }
.works-card .text-container a.dark:before {
border-color: inherit; }
.works-card .text-container a.dark:after {
border-color: inherit; }
#contact { #contact {
position: relative; position: relative;
z-index: 10; z-index: 10;
text-align: center; text-align: center;
padding: 5rem 2rem 3rem; } padding: 5rem 2rem 3rem;
#contact h1 { }
font-size: 3.3rem; #contact h1 {
margin: 0 0 2rem; } font-size: 3.3rem;
#contact p { margin: 0 0 2rem;
font-size: 1.15rem; }
line-height: 1.5; #contact p {
margin: 1rem auto 0; } font-size: 1.15rem;
#contact .contact-info-container { line-height: 1.5;
max-width: 40rem; margin: 1rem auto 0;
margin: 2rem auto; }
text-align: left; #contact .contact-info-container {
display: -webkit-box; max-width: 40rem;
display: -ms-flexbox; margin: 2rem auto;
display: flex; text-align: left;
-webkit-box-orient: vertical; display: flex;
-webkit-box-direction: normal; flex-direction: column;
-ms-flex-direction: column; flex-wrap: wrap;
flex-direction: column; height: 12rem;
-ms-flex-wrap: wrap; }
flex-wrap: wrap; #contact .contact-info-container a.contact-method {
height: 12rem; } text-decoration: none;
#contact .contact-info-container a.contact-method { color: inherit;
text-decoration: none; display: block;
color: inherit; width: 50%;
display: block; height: 6rem;
width: 50%; position: relative;
height: 6rem; padding-left: 6rem;
position: relative; display: flex;
padding-left: 6rem; flex-direction: column;
display: -webkit-box; align-items: flex-start;
display: -ms-flexbox; justify-content: center;
display: flex; overflow: hidden;
-webkit-box-orient: vertical; }
-webkit-box-direction: normal; #contact .contact-info-container a.contact-method h3, #contact .contact-info-container a.contact-method p {
-ms-flex-direction: column; font-weight: normal;
flex-direction: column; margin: 0;
-webkit-box-align: start; transition: all 0.2s ease;
-ms-flex-align: start; }
align-items: flex-start; #contact .contact-info-container a.contact-method h3 {
-webkit-box-pack: center; font-size: 1.5rem;
-ms-flex-pack: center; line-height: 1.4;
justify-content: center; transform: translateY(0.6rem);
overflow: hidden; } }
#contact .contact-info-container a.contact-method h3, #contact .contact-info-container a.contact-method p { #contact .contact-info-container a.contact-method p {
font-weight: normal; line-height: 1.25rem;
margin: 0; height: 1.25rem;
-webkit-transition: all 0.2s ease; transform: translateY(1rem);
-o-transition: all 0.2s ease; opacity: 0;
transition: all 0.2s ease; } color: #777;
#contact .contact-info-container a.contact-method h3 { font-size: 0.9rem;
font-size: 1.5rem; }
line-height: 1.4; #contact .contact-info-container a.contact-method i {
-webkit-transform: translateY(0.6rem); font-size: 2rem;
-ms-transform: translateY(0.6rem); line-height: 6rem;
transform: translateY(0.6rem); } position: absolute;
#contact .contact-info-container a.contact-method p { top: 0;
line-height: 1.25rem; left: 0;
height: 1.25rem; width: 6rem;
-webkit-transform: translateY(1rem); height: 6rem;
-ms-transform: translateY(1rem); text-align: center;
transform: translateY(1rem); }
opacity: 0; #contact .contact-info-container a.contact-method i:before {
color: #777; position: relative;
font-size: 0.9rem; } z-index: 10;
#contact .contact-info-container a.contact-method i { }
font-size: 2rem; #contact .contact-info-container a.contact-method i:after {
line-height: 6rem; position: absolute;
position: absolute; top: 0;
top: 0; left: 0;
left: 0; right: 0;
width: 6rem; bottom: 0;
height: 6rem; margin: auto;
text-align: center; } width: 60%;
#contact .contact-info-container a.contact-method i:before { height: 60%;
position: relative; border-radius: 50%;
z-index: 10; } opacity: 0;
#contact .contact-info-container a.contact-method i:after { transform: scale(0.7);
position: absolute; content: "";
top: 0; transition: all 0.2s ease;
left: 0; background: #333;
right: 0; }
bottom: 0; #contact .contact-info-container a.contact-method i.email:before {
margin: auto; content: "@";
width: 60%; font-style: normal;
height: 60%; font-weight: 500;
border-radius: 50%; line-height: 5.5rem;
opacity: 0; top: 0;
-webkit-transform: scale(0.7); left: 0;
-ms-transform: scale(0.7); width: 100%;
transform: scale(0.7); height: 100%;
content: ''; position: absolute;
-webkit-transition: all 0.2s ease; text-align: center;
-o-transition: all 0.2s ease; }
transition: all 0.2s ease; #contact .contact-info-container a.contact-method:hover h3 {
background: #333; } transform: translateY(0);
#contact .contact-info-container a.contact-method i.email:before { }
content: '@'; #contact .contact-info-container a.contact-method:hover p {
font-style: normal; transform: translateY(0);
font-weight: 500; opacity: 1;
line-height: 5.5rem; }
top: 0;
left: 0;
width: 100%;
height: 100%;
position: absolute;
text-align: center; }
#contact .contact-info-container a.contact-method:hover h3 {
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0); }
#contact .contact-info-container a.contact-method:hover p {
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
opacity: 1; }
footer { footer {
position: relative; position: relative;
@ -355,134 +328,143 @@ footer {
padding: 3rem 0; padding: 3rem 0;
background: #1f2e3a; background: #1f2e3a;
color: white; color: white;
font-size: 1.2rem; } font-size: 1.2rem;
}
.ticker { .ticker {
padding: 2rem 0 0; padding: 2rem 0 0;
font-size: 0.9rem; font-size: 0.9rem;
opacity: 0.7; opacity: 0.7;
font-family: monospace; font-family: monospace;
letter-spacing: 1px; } letter-spacing: 1px;
}
.ticker:after { .ticker:after {
content: '_'; content: "_";
opacity: 0.4; opacity: 0.4;
-webkit-animation: blink 0.5s infinite; animation: blink 0.5s infinite;
animation: blink 0.5s infinite; } }
@-webkit-keyframes blink {
0% {
opacity: 0; }
49% {
opacity: 0; }
51% {
opacity: 1; }
100% {
opacity: 1; } }
@keyframes blink { @keyframes blink {
0% { 0% {
opacity: 0; } opacity: 0;
}
49% { 49% {
opacity: 0; } opacity: 0;
}
51% { 51% {
opacity: 1; } opacity: 1;
}
100% { 100% {
opacity: 1; } } opacity: 1;
}
}
@media (max-width: 900px), (orientation: portrait) { @media (max-width: 900px), (orientation: portrait) {
.main > .text-container { .main > .text-container {
margin: auto; margin: auto;
padding: 2rem; } padding: 2rem;
.works-card { }
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: auto; }
.works-card > div {
height: auto;
width: 100%; }
.works-card .text-container {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
padding-bottom: 2rem; }
.works-card .image-container {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
padding-top: 3rem;
min-height: calc(45vw + 5rem); }
.works-card .image-container img {
width: 80vw;
margin: auto;
display: block;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
-webkit-box-shadow: 0 0 5rem rgba(0, 0, 0, 0.1), 0 0.25rem 1rem rgba(0, 0, 0, 0.33);
box-shadow: 0 0 5rem rgba(0, 0, 0, 0.1), 0 0.25rem 1rem rgba(0, 0, 0, 0.33); }
#contact {
text-align: left; }
#contact .contact-info-container a.contact-method h3 {
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0); }
#contact .contact-info-container a.contact-method p {
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
opacity: 1; } }
.works-card {
flex-direction: column;
height: auto;
}
.works-card > div {
height: auto;
width: 100%;
}
.works-card .text-container {
order: 2;
padding-bottom: 2rem;
}
.works-card .image-container {
order: 1;
padding-top: 3rem;
min-height: calc(45vw + 5rem);
}
.works-card .image-container img {
width: 80vw;
margin: auto;
display: block;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
box-shadow: 0 0 5rem rgba(0, 0, 0, 0.1), 0 0.25rem 1rem rgba(0, 0, 0, 0.33);
}
#contact {
text-align: left;
}
#contact .contact-info-container a.contact-method h3 {
transform: translateY(0);
}
#contact .contact-info-container a.contact-method p {
transform: translateY(0);
opacity: 1;
}
}
@media (max-width: 600px) { @media (max-width: 600px) {
#contact .contact-info-container { #contact .contact-info-container {
height: auto; } height: auto;
#contact .contact-info-container a.contact-method { }
width: 100%; } } #contact .contact-info-container a.contact-method {
width: 100%;
}
}
@media (max-width: 400px) { @media (max-width: 400px) {
.main > .text-container h1 { .main > .text-container h1 {
font-size: 3rem; } font-size: 3rem;
}
.main > .text-container h3 { .main > .text-container h3 {
font-size: 1.5rem; } font-size: 1.5rem;
.works-card > .text-container p { }
font-size: 1rem; }
.works-card > .text-container h1 {
font-size: 2.6rem; } }
.works-card > .text-container p {
font-size: 1rem;
}
.works-card > .text-container h1 {
font-size: 2.6rem;
}
}
.bg-scroller { .bg-scroller {
z-index: 5; z-index: 5;
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100vh; } height: 100vh;
.bg-scroller .bg { }
position: absolute; .bg-scroller .bg {
top: 0; position: absolute;
left: 0; top: 0;
width: 100%; left: 0;
height: 100%; width: 100%;
opacity: 0; height: 100%;
-webkit-transition: all 0.225s ease; opacity: 0;
-o-transition: all 0.225s ease; transition: all 0.225s ease;
transition: all 0.225s ease; } }
@media (min-width: 1800px) { @media (min-width: 1800px) {
html { html {
font-size: 20px; } } font-size: 20px;
}
}
@media (min-width: 2400px) { @media (min-width: 2400px) {
html { html {
font-size: 24px; } } font-size: 24px;
}
}
@media (min-width: 2800px) { @media (min-width: 2800px) {
html { html {
font-size: 32px; } } font-size: 32px;
}
}
@media (min-width: 3600px) { @media (min-width: 3600px) {
html { html {
font-size: 36px; } } font-size: 36px;
}
}
/*# sourceMappingURL=style.css.map */

View file

@ -87,6 +87,11 @@ body.dark-mode {
color: #999; color: #999;
} }
em {
color: #333;
font: inherit;
}
a { a {
color: #333; color: #333;
text-decoration: none; text-decoration: none;

BIN
resume.pdf Normal file

Binary file not shown.