From e24e48cc898a3f2e37c02082d1960c434b3628e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s?= Date: Wed, 23 Aug 2023 12:20:58 +0200 Subject: [PATCH] updates --- src/datas/what-is-celestia/toc.js | 30 +++++++++++-- src/pages/what-is-celestia.js | 53 ++++------------------- src/scss/pages/page-what-is-celestia.scss | 10 ++--- 3 files changed, 40 insertions(+), 53 deletions(-) diff --git a/src/datas/what-is-celestia/toc.js b/src/datas/what-is-celestia/toc.js index 495b7a0dd..fe2c340b0 100644 --- a/src/datas/what-is-celestia/toc.js +++ b/src/datas/what-is-celestia/toc.js @@ -1,10 +1,32 @@ export const tableOfContent = [ { - section: "Get started", - type: "anchor", + depth: 1, + id: "what-is-a-modular-blockchain", + value: "What is a modular blockchain?", }, { - text: "Current openings", - type: "anchor", + depth: 1, + id: "what-is-data-availability", + value: "What is data availability?", + }, + { + depth: 1, + id: "what-are-rollups", + value: "What are rollups?", + }, + { + depth: 1, + id: "whats-it-like-to-build-on-Celestia", + value: "What's it like to build on Celestia?", + }, + { + depth: 1, + id: "modularism-not-maximalism", + value: "Modularism, not maximalism", + }, + { + depth: 1, + id: "layer-0-social-consensus", + value: "Layer 0 social consensus", }, ]; diff --git a/src/pages/what-is-celestia.js b/src/pages/what-is-celestia.js index 1236bc180..d983a2804 100644 --- a/src/pages/what-is-celestia.js +++ b/src/pages/what-is-celestia.js @@ -1,19 +1,17 @@ import React, { useState } from "react"; import Layout from "../components/layout"; import { FooterBoxes2 } from "../datas/what-is-celestia/content"; +import { tableOfContent } from "../datas/what-is-celestia/toc"; import { StaticImage } from "gatsby-plugin-image"; import { AnchorLink } from "gatsby-plugin-anchor-links"; import { seoContent } from "../datas/what-is-celestia/seoContent"; import SEO from "../components/seo"; -import celestia_modular from "../images/what-is-celestia/celestia-modular.png"; import celestia_what_are_rollups from "../images/what-is-celestia/celestia-what-are-rollups.png"; import celestia_data_availability from "../images/what-is-celestia/celestia-data-availability.png"; import celestia_what_is_modular from "../images/what-is-celestia/celestia-what-is-modular.png"; import celestia_modularizm from "../images/what-is-celestia/celestia-modularizm.png"; -import celestia_transactions from "../images/what-is-celestia/celestia-transactions.png"; -import monolithic_modular_aproach from "../images/what-is-celestia/monolithic-modular-aproach.png"; import celestia_connections from "../images/what-is-celestia/celestia-connections.png"; const WhatIsCelestia = () => { @@ -23,39 +21,6 @@ const WhatIsCelestia = () => { setSelectedItem(index); }; - const sections = [ - { - depth: 1, - id: "what-is-a-modular-blockchain", - value: "What is a modular blockchain?", - }, - { - depth: 1, - id: "what-is-data-availability", - value: "What is data availability?", - }, - { - depth: 1, - id: "what-are-rollups", - value: "What are rollups?", - }, - { - depth: 1, - id: "whats-it-like-to-build-on-Celestia", - value: "What's it like to build on Celestia?", - }, - { - depth: 1, - id: "modularism-not-maximalism", - value: "Modularism, not maximalism", - }, - { - depth: 1, - id: "layer-0-social-consensus", - value: "Layer 0 social consensus", - }, - ]; - return ( @@ -97,7 +62,7 @@ const WhatIsCelestia = () => {
- {sections.map((item, index) => { + {tableOfContent.map((item, index) => { return (
{
-
-
+
+

And what is a modular blockchain?

@@ -131,7 +96,7 @@ const WhatIsCelestia = () => {

-
+

What is data availability and why does it matter?

@@ -155,7 +120,7 @@ const WhatIsCelestia = () => {
-
+
@@ -178,7 +143,7 @@ const WhatIsCelestia = () => {
-
+

What’s it like to build on Celestia?

@@ -245,7 +210,7 @@ const WhatIsCelestia = () => {
-
+

What the Celestia community stands for

@@ -270,7 +235,7 @@ const WhatIsCelestia = () => {
-
+
diff --git a/src/scss/pages/page-what-is-celestia.scss b/src/scss/pages/page-what-is-celestia.scss index 0a4874b01..27ed8c1ab 100644 --- a/src/scss/pages/page-what-is-celestia.scss +++ b/src/scss/pages/page-what-is-celestia.scss @@ -266,12 +266,12 @@ margin-bottom: 40px; } .gatsby-image-wrapper { - height: 75%; - transform: translateX(-10%) scale(0.96); + height: 64%; + transform: translateX(-20%) scale(1); overflow: visible; @include media-breakpoint-down(xl) { - height: 70%; - transform: translateX(-25%); + height: 52%; + transform: translateX(-30%); width: 125%; } @include media-breakpoint-down(lg) { @@ -290,7 +290,7 @@ width: 140%; } @include media-breakpoint-down(lg) { - width: 140%; + width: 120%; } @include media-breakpoint-down(md) { width: 100%;