Revamp the Graphite website (#1265)

Revamp the website with more content
This commit is contained in:
Keavon Chambers
2023-08-10 18:37:04 -07:00
parent f2b0abc164
commit f429db6369
76 changed files with 3506 additions and 1670 deletions
+51
View File
@@ -0,0 +1,51 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');
.loading-data:empty::after {
content: "(loading...)";
font-style: italic;
opacity: 0;
animation: fadeInAfterWait 2s ease-in 2s forwards;
@keyframes fadeInAfterWait {
0% { opacity: 0; }
100% { opacity: 1; }
}
}
#core-team {
background-color: var(--color-parchment);
background-blend-mode: color-burn;
h2,
h2 + p,
h3,
h3 + p {
width: 100%;
text-align: center;
}
h2 + p {
margin-top: 4px;
opacity: 0.75;
}
h3 + p {
margin-top: 0;
}
h2 .flag {
font-family: "Noto Color Emoji", sans-serif;
font-size: 0.8em;
margin-left: 0.2em;
cursor: default;
}
p:first-child {
width: 100%;
text-align: center;
img {
max-width: Min(100%, 480px);
}
}
}
+2 -28
View File
@@ -1,5 +1,6 @@
#article {
.reading-material {
max-width: 800px;
flex: 0 1 auto;
.details {
display: flex;
@@ -18,33 +19,6 @@
}
}
hr {
margin-top: 40px;
margin-bottom: 40px;
}
article {
h1,
h2,
h3 {
font-family: "Inter", sans-serif;
line-height: 1.5;
font-weight: 800;
}
h1 {
font-size: var(--font-size-article-h1);
}
h2 {
font-size: var(--font-size-article-h2);
}
h3 {
font-size: var(--font-size-article-h3);
}
}
.social {
width: 100%;
display: flex;
+687 -119
View File
File diff suppressed because it is too large Load Diff
+9 -5
View File
@@ -28,6 +28,7 @@
.link {
vertical-align: top;
margin-top: 0;
}
}
}
@@ -37,9 +38,8 @@
#articles {
display: flex;
flex-direction: column;
gap: 80px;
article {
section {
display: flex;
gap: 20px 80px;
@@ -58,9 +58,13 @@
flex-direction: column;
gap: 20px;
.headline a {
text-decoration: none;
color: var(--color-navy);
.headline {
margin-top: -0.5em;
a {
text-decoration: none;
color: var(--color-navy);
}
}
.publication {
+111
View File
@@ -0,0 +1,111 @@
.three-column-layout {
display: flex;
.reading-material {
width: 800px;
.prev-next {
display: flex;
justify-content: space-between;
width: 100%;
a {
display: flex;
align-items: center;
gap: 20px;
svg {
fill: var(--color-navy);
}
}
}
}
aside {
position: sticky;
align-self: flex-start;
overflow-y: auto;
top: 0;
width: 300px;
max-height: 100vh;
margin-top: -40px;
li {
margin-top: 0.5em;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
a {
color: var(--color-walnut);
&:hover {
color: var(--color-crimson);
}
}
&:not(.title) a {
text-decoration: none;
}
&.title,
&.chapter {
font-weight: bold;
}
}
&.chapters li.active a {
color: var(--color-ale);
}
&.contents {
li {
position: relative;
padding-left: 12px;
&.active::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 4px;
background: var(--color-ale);
}
a:not(:hover) span {
display: none;
}
}
}
ul {
list-style: none;
padding: 0;
margin: 0;
margin-top: 40px;
ul {
margin-top: 0;
text-indent: 1em;
ul {
text-indent: 2em;
ul {
text-indent: 3em;
ul {
text-indent: 4em;
ul {
text-indent: 5em;
}
}
}
}
}
}
}
}
+8
View File
@@ -0,0 +1,8 @@
#fundraising {
background-color: var(--color-seaside);
color: rgba(0, 0, 0, 0.9);
.graphic {
max-width: 400px;
}
}
+76 -5
View File
@@ -1,8 +1,79 @@
#upcoming-tech {
background-color: var(--color-navy);
color: var(--color-fog);
#roadmap {
width: 100%;
text-align: center;
}
a {
color: var(--color-mustard);
.roadmap {
margin: auto;
margin-top: 20px;
padding: 0 16px;
.informational-group {
flex-direction: column;
gap: 0;
width: 100%;
.informational {
position: relative;
padding-left: calc(16px + 8px);
&::before {
content: "";
position: absolute;
left: 0;
width: 4px;
height: 100%;
background: #ddd;
}
&:first-of-type::before {
bottom: 0;
height: 50%;
}
&:last-of-type::before {
top: 0;
height: 50%;
}
&::after {
content: "";
position: absolute;
left: calc((24px - 4px) / -2);
width: 24px;
height: 24px;
border-radius: 50%;
}
&:not(.complete, .ongoing)::after {
background: white;
border: 4px solid #ddd;
width: 16px;
height: 16px;
}
&.complete::after {
background: var(--color-seaside);
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="%2316323f"><polygon points="6.69 14.57 0 9 1.8 6.84 6.32 10.61 13.83 1.43 16 3.2 6.69 14.57" /></svg>');
background-repeat: no-repeat;
background-position: center;
}
&.ongoing::after {
background: var(--color-lemon);
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="%2316323f"><path d="m8,2c3.31,0,6,2.69,6,6s-2.69,6-6,6-6-2.69-6-6,2.69-6,6-6m0-2C3.58,0,0,3.58,0,8s3.58,8,8,8,8-3.58,8-8S12.42,0,8,0h0Zm2.83,9.41l-1.83-1.83v-2.59c0-.55-.45-1-1-1s-1,.45-1,1v3c0,.13.03.26.08.38.05.12.12.23.22.33l2.12,2.12c.2.2.45.29.71.29s.51-.1.71-.29c.39-.39.39-1.02,0-1.41Z" /></svg>');
background-repeat: no-repeat;
background-position: center;
}
&.heading {
background: none;
h3 {
width: 100%;
text-align: center;
}
}
}
}
}
+177 -192
View File
@@ -1,3 +1,7 @@
.page {
overflow: hidden;
}
#logo {
display: flex;
@@ -23,7 +27,7 @@
}
#quick-links {
margin-bottom: calc(120 * var(--variable-px));
margin-top: calc(80 * var(--variable-px));
display: flex;
gap: calc(var(--font-size-link) * 0.8);
flex-wrap: wrap;
@@ -41,8 +45,14 @@
}
#hero-message {
@media screen and (max-width: 1400px) {
p {
h1 {
font-size: var(--font-size-intro-heading);
}
p {
font-size: var(--font-size-intro-body);
@media screen and (max-width: 1400px) {
max-width: unset !important;
}
}
@@ -80,162 +90,13 @@
}
}
#screenshots {
transform: translate(0);
.carousel {
display: flex;
white-space: nowrap;
touch-action: pan-y pinch-zoom;
cursor: grab;
img {
position: relative;
display: inline-block;
width: 100%;
flex: 0 0 auto;
padding: 0 20px;
&:first-child {
margin-left: -20px;
}
&:last-child {
margin-right: -20px;
}
}
}
&:not(.dragging) .carousel img {
transition: transform 500ms;
}
.carousel:not(.torn) {
overflow: hidden;
}
.carousel.torn {
position: fixed;
top: 0;
z-index: -1;
// Torn edge mask
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-size: contain;
mask-size: contain;
&.left {
padding-left: 80px;
margin-left: -80px;
-webkit-mask-image: url("https://static.graphite.rs/textures/torn-edge-left.png");
mask-image: url("https://static.graphite.rs/textures/torn-edge-left.png");
-webkit-mask-position: top left;
mask-position: top left;
}
&.right {
padding-right: 120px;
margin-right: -120px;
-webkit-mask-image: url("https://static.graphite.rs/textures/torn-edge-right.png");
mask-image: url("https://static.graphite.rs/textures/torn-edge-right.png");
-webkit-mask-position: top right;
mask-position: top right;
}
}
.screenshot-details {
display: flex;
margin: 20px 0;
gap: 20px 40px;
@media screen and (max-width: 800px) {
flex-wrap: wrap;
justify-content: center;
}
.carousel-controls {
display: flex;
align-items: center;
button {
outline: none;
background: none;
border: none;
padding: 0;
color: inherit;
cursor: pointer;
svg {
display: block;
}
+ button {
margin-left: 20px;
}
}
.direction {
fill: currentColor;
}
.dot {
width: 16px;
height: 16px;
box-sizing: border-box;
border-radius: 50%;
border: var(--border-thickness) solid currentColor;
&.active {
border: none;
background: var(--color-crimson);
}
}
}
.screenshot-description {
display: flex;
align-items: center;
min-height: calc(2em * 1.5);
p + p {
margin: 0;
}
p:not(.active) {
display: none;
}
}
}
@media screen and (max-width: 1000px) {
margin-left: calc(-1 * var(--page-edge-padding));
margin-right: calc(-1 * var(--page-edge-padding));
.screenshot-details {
margin-left: var(--page-edge-padding);
margin-right: var(--page-edge-padding);
}
hr {
width: calc(100% - (32px + var(--page-edge-padding)) * 2);
margin-left: auto;
margin-right: auto;
}
}
// 1600px is var(--max-width)
@media screen and (max-width: 1600px) {
.carousel.torn {
display: none;
}
}
}
#demo-video {
max-width: 1000px;
#graphite-tomorrow > img {
margin: 16px 0;
}
#disciplines {
align-items: center;
.informational-group {
margin-top: 0;
@@ -245,7 +106,145 @@
}
}
// #node-graph {
// #node-graph-intro {
// .section {
// align-items: center;
// }
// ~ section {
// margin-top: calc(80 * var(--variable-px));
// }
// }
// }
#vector-art {
.section {
align-items: center;
.background-video {
position: relative;
font-size: 0;
video {
max-width: Min(100%, 1280px);
}
// Uses a white border over the video to cover up the edges of the video which, due to a Chrome rendering bug, displays black edges sometimes when scrolling
&::after {
content: "";
position: absolute;
inset: 0;
border: 2px solid white;
pointer-events: none;
}
}
.download-artwork {
display: flex;
align-items: center;
img {
width: 128px;
height: 128px;
border: 12px solid var(--color-walnut);
vertical-align: top;
}
span {
margin-left: 40px;
}
}
}
}
#imaginate {
#imaginate-intro {
.alternating-text {
position: relative;
span {
// Move left by half (since it's centered) the average (half the 74px difference) of the variance in word lengths
margin-left: calc(-1.54em / 2 / 2);
opacity: 0;
$alternate-duration: 15s;
$alternate-words: 5;
animation: $alternate-duration infinite linear 0s fade-word;
// The 1st child is the widest
&:not(:nth-child(1)) {
position: absolute;
right: 0;
}
@for $i from 1 through $alternate-words {
&:nth-child(#{$i}) {
animation-delay: ($alternate-duration / $alternate-words * ($i - 1));
}
}
@keyframes fade-word {
// Fade in at the start (which begins staggered on each item by `animation-delay`)
#{0.0%} { opacity: 0; }
#{2.5%} { opacity: 1; }
// Remain visible for this item's slice of time, then fade out
#{0.0% + 100% / ($alternate-words + 1)} { opacity: 1; }
#{2.5% + 100% / ($alternate-words + 1)} { opacity: 0; }
}
}
}
.section {
align-items: center;
}
~ section {
margin-top: calc(80 * var(--variable-px));
}
}
.image-comparison {
aspect-ratio: 1;
max-width: Min(100%, 512px);
}
// #imaginate-creative-concepts-carousel {
// margin-top: 20px;
// .screenshot-details {
// justify-content: center;
// }
// + blockquote {
// margin-top: 0;
// }
// }
}
.feature-explainer {
margin-top: 40px;
.diptych {
width: 100%;
.section {
justify-content: center;
align-items: center;
h2 {
text-align: center;
}
}
}
.section {
flex: 1 1 calc(50% - (80 * var(--variable-px)) / 2);
}
}
#community {
background-color: var(--color-lime);
#newsletter {
#newsletter-success {
background: var(--color-crimson);
@@ -276,6 +275,10 @@
gap: 20px;
flex: 100000 1 0;
div {
min-height: auto;
}
@media screen and (max-width: 1200px) {
flex-direction: column;
flex: 1 1 100%;
@@ -291,6 +294,7 @@
display: flex;
flex-direction: column;
justify-content: flex-end;
--input-focus-color: var(--color-ale);
&.name {
flex: 1 0 0;
@@ -314,7 +318,7 @@
}
&.submit {
flex: 1 0 0;
flex: 1 0 auto;
}
label,
@@ -344,7 +348,7 @@
box-sizing: border-box;
&:focus {
border-color: var(--color-mustard);
border-color: var(--input-focus-color);
}
}
@@ -354,8 +358,8 @@
cursor: pointer;
&:focus {
border-color: var(--color-mustard);
color: var(--color-mustard);
border-color: var(--input-focus-color);
color: var(--input-focus-color);
}
}
}
@@ -384,6 +388,7 @@
span {
line-height: 48px;
margin: 0;
margin-left: 20px;
}
}
@@ -391,40 +396,20 @@
}
}
#upcoming-tech {
background-color: var(--color-navy);
color: var(--color-fog);
#demo-video {
max-width: 1000px;
}
a {
color: var(--color-mustard);
#fundraising {
background-color: var(--color-seaside);
color: rgba(0, 0, 0, 0.9);
.graphic {
max-width: 400px;
}
}
#recent-news {
background-color: var(--color-mustard);
color: var(--color-navy);
article {
display: flex;
flex-direction: column;
gap: 20px;
.headline a {
text-decoration: none;
color: var(--color-navy);
}
.publication {
font-weight: 800;
}
.summary {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 8;
}
}
#get-involved-box {
background-color: var(--color-lemon);
background-blend-mode: color-burn;
}
+19
View File
@@ -0,0 +1,19 @@
.creative-contributions .info-box {
&:nth-of-type(1) {
background-color: var(--color-seaside);
}
&:nth-of-type(2) {
background-color: var(--color-cove);
}
}
.code-contributions .info-box {
&:nth-of-type(1) {
background-color: var(--color-mustard);
}
&:nth-of-type(2) {
background-color: var(--color-ale);
}
}