Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: landing page redesign #7566

Merged
merged 52 commits into from
Jan 25, 2019
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
86f5b82
style: Homepage section
montogeek Dec 30, 2018
d3b6881
style: Features section
montogeek Dec 30, 2018
5257642
style: Docs and talks section
montogeek Dec 30, 2018
d2b3857
style: OpenCollective section
montogeek Dec 30, 2018
c294607
style: Navigation bar
montogeek Dec 30, 2018
332d0d4
style: Homepage section
montogeek Dec 30, 2018
fd144f6
style: Features section
montogeek Dec 30, 2018
aa0c162
style: Docs and talks section
montogeek Dec 30, 2018
98cec33
style: OpenCollective section
montogeek Dec 30, 2018
bf397fd
style: Navigation bar
montogeek Dec 30, 2018
5b82673
chore: Uncomment features section
montogeek Dec 30, 2018
4e08ff2
ALL HAIL HYPNOTOAD
brainkim Dec 30, 2018
f4cf4d2
fix lint failures
brainkim Dec 30, 2018
2aec4f7
cross-browser fixes
brainkim Dec 31, 2018
9ad6962
Update the colors on the cards to match the new palette
orta Jan 1, 2019
de65b44
Don't move the cards so high when you hover, mainly so that there's a…
orta Jan 1, 2019
0f7edf1
fix card asymmetry (sorry had to fix it or it would literally kill me)
brainkim Jan 2, 2019
c767dd0
[website] Handle merging in the two website PRs
orta Jan 2, 2019
18e0164
reduce initial card load time, max 2 failures, make circles undulate …
brainkim Jan 3, 2019
36a2ad1
Merge branch 'new_landing_page' of github.com:montogeek/jest into new…
montogeek Jan 6, 2019
3242f25
style: Update sections title styles
montogeek Jan 6, 2019
5d58bea
style: Style card links buttons
montogeek Jan 6, 2019
38a1c82
style: Add styles to logo
montogeek Jan 6, 2019
ff25628
style: Features section
montogeek Jan 6, 2019
f0e4c3d
script: Move landing JS to its own file
montogeek Jan 6, 2019
e10eb74
style: Added Philosophy section
montogeek Jan 10, 2019
794b014
style: Added intro section
montogeek Jan 10, 2019
c06a400
Merge branch 'master' into new_landing_page
montogeek Jan 12, 2019
48fc350
lint: Fix landing.js lint issues
montogeek Jan 12, 2019
967225d
style: Fix several look and feel issues
montogeek Jan 12, 2019
fa985a1
lint: Fix copyright headers
montogeek Jan 12, 2019
fdf8fb7
chore: Removed file
montogeek Jan 12, 2019
ab18279
style: Align GitHub button and company logos
montogeek Jan 12, 2019
a406577
chore: Removed debug class
montogeek Jan 12, 2019
4198069
Some design tweaks
orta Jan 13, 2019
c592ccc
WIP on new screenshots
orta Jan 13, 2019
3d74524
Updates images and tweak css
orta Jan 13, 2019
8e75669
More work on the Jest index re-design
orta Jan 19, 2019
9baf756
More fixes for the website, this one changes the default colors to green
orta Jan 20, 2019
2e8d1df
Makes VSCode automatically format on save, and more tweaks to the nav
orta Jan 20, 2019
3bdc317
Merge branch 'master' into new_landing_page
orta Jan 20, 2019
8ed00a7
Fix the URL for the landing page
orta Jan 21, 2019
09cb7b0
Merge branch 'new_landing_page' of github.com:montogeek/jest into new…
orta Jan 21, 2019
6d04b15
More website fixes
orta Jan 21, 2019
ef47b2d
Adds custom syntax highlighting
orta Jan 21, 2019
973db98
Some intro copy changes, and gives a hover state to links around the …
orta Jan 21, 2019
43f6c9e
Adds the FB copyright header to the CSS
orta Jan 21, 2019
7f7947e
Adds support for halving the base animation timeout on the second run…
orta Jan 21, 2019
6e823d2
Update the different types image
orta Jan 22, 2019
be30037
Merge branch 'master' into new_landing_page
SimenB Jan 25, 2019
9a068b1
link style
SimenB Jan 25, 2019
db1e95b
moar tweaks
SimenB Jan 25, 2019
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
580 changes: 336 additions & 244 deletions website/pages/en/index.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const users = [
image: '/img/logos/facebook.png',
infoLink: 'https://code.facebook.com',
},

{
caption: 'Twitter',
image: '/img/logos/twitter.png',
Expand Down
272 changes: 268 additions & 4 deletions website/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,50 +22,314 @@ div.jest-repl {
position: relative;
width: 600px;
}

div.jest-repl iframe {
display: block;
margin: 0 auto 10px;
min-height: 420px;
width: 100%;
}

@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
div.jest-repl {
display: none;
}
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
div.jest-repl {
display: none;
}
}

@media only screen and (max-width: 1023px) {
div.jest-repl {
display: none;
}
}

div.video {
margin: 0 5%;
margin: 0 2%;
position: relative;
width: 100%;
min-width: 300px;
max-width: 600px;
max-width: 300px;
}

div.video iframe {
display: block;
margin: 0 auto 10px;
min-height: 340px;
min-height: 170px;
width: 100%;
height: auto;
}

@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
div.video {
display: none;
}
}

@media only screen and (max-width: 1023px) {
div.video {
display: none;
}
}

div.jest-hero-interactive {
position: relative;
}

div.hero-github-button-container {
min-height: 20px;
position: absolute;
left: initial;
right: 10px;
top: 20px;
visibility: hidden;
}

@media only screen and (min-width: 580px) {
div.hero-github-button-container {
visibility: visible;
}
}

div.jest-hand {
width: 100%;
height: 350px;
display: flex;
justify-content: center;
overflow: hidden;
position: relative;
perspective: 1000px;
}

div.jest-card-hitslop {
cursor: pointer;
position: absolute;
transform-origin: 50% 100%;
height: 400px;
}

div.jest-card {
position: relative;
top: 60px;
width: 240px;
height: 340px;
transition: transform 0.2s;
transform-style: preserve-3d;
}

div.jest-card-front,.jest-card-back {
position: absolute;
width: 100%;
height: 100%;
border-radius: 15px;
backface-visibility: hidden;
pointer-events: none;
display: flex;
justify-content: center;
align-items: center;
}

div.jest-card-front {
background-color: #fff;
border: 1px solid #bbb;
}

div.jest-card-back {
background-color: #C2A813;
background-image: url(/img/running-card-background.png);
background-size: 20px;
border: 5px solid #C2A813;
backface-visibility: hidden;
transform: rotateY(180deg) translateZ(1px);
}

div.jest-card-running {
cursor: auto;
transform: translateY(-10px) rotateY(180deg);
}

div.jest-card-hitslop:hover div.jest-card:not(.jest-card-running):not(.jest-card-pass) {
transform: translateY(-40px);
}

div.jest-card.jest-card-popping {
transform: translateY(-50px);
}

div.jest-card-hitslop:nth-child(1) {
visibility: hidden;
}

div.jest-card-hitslop:nth-child(3) {
z-index: 2;
}

div.jest-card-hitslop:nth-child(4) {
z-index: 1;
}

div.jest-card-hitslop:nth-child(5) {
visibility: hidden;
}

@media only screen and (min-width: 580px) {
div.jest-card-hitslop:nth-child(1) {
visibility: visible;
}

div.jest-card-hitslop:nth-child(5) {
visibility: visible;
}
}

div.jest-button-container {
position: absolute;
bottom: 0;
background-color: rgba(255,255,255,0.5);
width: 100%;
/* height: 56px; */
margin: 0 auto;
display: flex;
justify-content: center;
flex-wrap: wrap;
}

a.jest-button {
text-transform: uppercase;
color: #fff;
background-color: var(--red);
margin: 10px;
padding: 0 1em;
font-size: 16px;
line-height: 2.2em;
}

div.jest-card-label {
position: absolute;
top: 15px;
left: 15px;
color: white;
background-color:var(--red);
font-size: 16px;
font-weight: bold;
display: inline;
padding: 0 0.5em;
}

div.jest-card-label.jest-card-label-reverse {
color: white;
top: auto;
left: auto;
bottom: 15px;
right: 15px;
transform: rotateX(180deg);
}

div.jest-card-logo-container {
width: 120px;
height: 120px;
}

div.jest-card-logo {
width: 100%;
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: 80% 80%;
}

div.jest-card-pass {
cursor: auto;
}

div.jest-card-pass .jest-card-label {
background-color: var(--green);
}

div.jest-card-pass .jest-card-logo-container {
background-color: var(--green);
transform: rotate(45deg);
}

div.jest-card-pass .jest-card-logo {
width: 90%;
height: 90%;
background-image: url(/img/jest-card-pass.svg);
transform: rotate(-65deg);
background-size: 65% 65%;
background-position: 50% 75%;
}

div.jest-card-fail .jest-card-logo-container {
background-color:var(--red);
}

div.jest-card-fail .jest-card-logo {
background-position: 50% 65%;
background-size: 65% 65%;
background-image: url(/img/jest-card-fail.svg);
}

div.jest-card-run .jest-card-logo-container {
background-color: white;
}

div.jest-card-run .jest-card-logo {
background-image: url(/img/jest-card-run.svg);
}

@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

@keyframes undulate {
0% {
transform: scale(0.8);
}
50% {
transform: scale(1);
}
90% {
transform: scale(0.9);
}
100% {
transform: scale(0.8);
}
}

g.run-text {
transform-origin: 50% 50%;
animation-name: spin;
animation-duration: 5s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}

circle.run-circle {
transform-origin: 50% 50%;
animation-name: undulate;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}

circle.run-circle:nth-child(1) {
animation-delay: -1s;
}
circle.run-circle:nth-child(2) {
animation-delay: -2.2s;
}
circle.run-circle:nth-child(3) {
animation-delay: -2.6s;
}
circle.run-circle:nth-child(4) {
animation-delay: -3.3s;
}
Loading