Skip to content

Commit

Permalink
chore(site): format
Browse files Browse the repository at this point in the history
  • Loading branch information
cor committed Sep 10, 2024
1 parent 48fec8a commit a848c00
Show file tree
Hide file tree
Showing 18 changed files with 155 additions and 153 deletions.
24 changes: 12 additions & 12 deletions site/src/components/sections/DeepDiveSection.astro
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
import {Image} from 'astro:assets';
import H1 from "../typography/h1.astro";
import { Image } from "astro:assets"
import H1 from "../typography/h1.astro"
import trails from "../../assets/images/spline-holders/union-trails.png"
import execution from "../../assets/images/spline-holders/modular.png"
import useCase from "../../assets/images/spline-holders/use-case.png"
import unionWorks from "../../assets/images/spline-holders/union-works.png"
import trust from "../../assets/images/spline-holders/trust.png"
import TextP from "../typography/TextP.astro";
import TextP from "../typography/TextP.astro"
import bubbles from "../../assets/images/spline-holders/bubbles.png"
import smallWhale from "../../assets/images/whale.png"
import cube from "../../spline/cube-rotating-optimized.splinecode"
import lighthouse from "../../spline/lighthouse.splinecode"
import Spline from "../Spline.astro"
const diver = [
{text: "What is Union?", meter: '200m'},
{text: "What is Interoperability?", meter: '400m'},
{text: "What is Modularity?", meter: '600m'},
{text: "Union Use Cases", meter: '800m'},
{text: "How Union Works", meter: '1000m'},
{text: "Trust Verification", meter: '1200m'},
{text: "Galois", meter: '1400m'},
{text: "CometBLS", meter: '1600m'},
{text: "Voyager", meter: '1800m'},
{ text: "What is Union?", meter: "200m" },
{ text: "What is Interoperability?", meter: "400m" },
{ text: "What is Modularity?", meter: "600m" },
{ text: "Union Use Cases", meter: "800m" },
{ text: "How Union Works", meter: "1000m" },
{ text: "Trust Verification", meter: "1200m" },
{ text: "Galois", meter: "1400m" },
{ text: "CometBLS", meter: "1600m" },
{ text: "Voyager", meter: "1800m" }
]
---

Expand Down
125 changes: 68 additions & 57 deletions site/src/components/sections/EcosystemSection.astro
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
---
import LanderSection from "../LanderSection.astro";
import H1 from "../typography/h1.astro";
import QuoteSubTitle from "../typography/QuoteSubTitle.astro";
import H3 from "../typography/h3.astro";
import LanderSection from "../LanderSection.astro"
import H1 from "../typography/h1.astro"
import QuoteSubTitle from "../typography/QuoteSubTitle.astro"
import H3 from "../typography/h3.astro"
// logos
import stride_logo from "../../assets/images/fins/logos/stride.png";
import stargaze_logo from "../../assets/images/fins/logos/stargaze.png";
import skip_logo from "../../assets/images/fins/logos/skip.png";
import secret_logo from "../../assets/images/fins/logos/secret.png";
import scroll_logo from "../../assets/images/fins/logos/scroll.png";
import polygon_logo from "../../assets/images/fins/logos/polygon.png";
import movement_logo from "../../assets/images/fins/logos/movement.png";
import bera_logo from "../../assets/images/fins/logos/bera.png";
import arbitrum_logo from "../../assets/images/fins/logos/arbitrum.png";
import landslide_logo from "../../assets/images/fins/logos/landslide.png";
import kodiak_logo from "../../assets/images/fins/logos/kodiak.png";
import leap_logo from "../../assets/images/fins/logos/leap.png";
import keplr_logo from "../../assets/images/fins/logos/keplr.png";
import aligned_logo from "../../assets/images/fins/logos/aligned.png";
import lava_logo from "../../assets/images/fins/logos/lava.png";
import canto_logo from "../../assets/images/fins/logos/canto.png";
import noble_logo from "../../assets/images/fins/logos/noble.png";
import quasar_logo from "../../assets/images/fins/logos/quasar.png";
import abstract_logo from "../../assets/images/fins/logos/abstract.png";
import nomos_logo from "../../assets/images/fins/logos/nomos.png";
import celestia_logo from "../../assets/images/fins/logos/celestia.png";
import talus_logo from "../../assets/images/fins/logos/talus.png";
import stride_logo from "../../assets/images/fins/logos/stride.png"
import stargaze_logo from "../../assets/images/fins/logos/stargaze.png"
import skip_logo from "../../assets/images/fins/logos/skip.png"
import secret_logo from "../../assets/images/fins/logos/secret.png"
import scroll_logo from "../../assets/images/fins/logos/scroll.png"
import polygon_logo from "../../assets/images/fins/logos/polygon.png"
import movement_logo from "../../assets/images/fins/logos/movement.png"
import bera_logo from "../../assets/images/fins/logos/bera.png"
import arbitrum_logo from "../../assets/images/fins/logos/arbitrum.png"
import landslide_logo from "../../assets/images/fins/logos/landslide.png"
import kodiak_logo from "../../assets/images/fins/logos/kodiak.png"
import leap_logo from "../../assets/images/fins/logos/leap.png"
import keplr_logo from "../../assets/images/fins/logos/keplr.png"
import aligned_logo from "../../assets/images/fins/logos/aligned.png"
import lava_logo from "../../assets/images/fins/logos/lava.png"
import canto_logo from "../../assets/images/fins/logos/canto.png"
import noble_logo from "../../assets/images/fins/logos/noble.png"
import quasar_logo from "../../assets/images/fins/logos/quasar.png"
import abstract_logo from "../../assets/images/fins/logos/abstract.png"
import nomos_logo from "../../assets/images/fins/logos/nomos.png"
import celestia_logo from "../../assets/images/fins/logos/celestia.png"
import talus_logo from "../../assets/images/fins/logos/talus.png"
// covers
import stride_cover from "../../assets/images/fins/covers/stride.png";
import stargaze_cover from "../../assets/images/fins/covers/stargaze.png";
import skip_cover from "../../assets/images/fins/covers/skip.png";
import secret_cover from "../../assets/images/fins/covers/secret.png";
import scroll_cover from "../../assets/images/fins/covers/scroll.png";
import polygon_cover from "../../assets/images/fins/covers/polygon.png";
import movement_cover from "../../assets/images/fins/covers/movement.png";
import bera_cover from "../../assets/images/fins/covers/bera.png";
import arbitrum_cover from "../../assets/images/fins/covers/arbitrum.png";
import landslide_cover from "../../assets/images/fins/covers/landslide.png";
import kodiak_cover from "../../assets/images/fins/covers/kodiak.png";
import leap_cover from "../../assets/images/fins/covers/leap.png";
import keplr_cover from "../../assets/images/fins/covers/keplr.png";
import aligned_cover from "../../assets/images/fins/covers/aligned.png";
import lava_cover from "../../assets/images/fins/covers/lava.png";
import canto_cover from "../../assets/images/fins/covers/canto.png";
import noble_cover from "../../assets/images/fins/covers/noble.png";
import quasar_cover from "../../assets/images/fins/covers/quasar.png";
import abstract_cover from "../../assets/images/fins/covers/abstract.png";
import nomos_cover from "../../assets/images/fins/covers/nomos.png";
import celestia_cover from "../../assets/images/fins/covers/celestia.png";
import talus_cover from "../../assets/images/fins/covers/talus.png";
import stride_cover from "../../assets/images/fins/covers/stride.png"
import stargaze_cover from "../../assets/images/fins/covers/stargaze.png"
import skip_cover from "../../assets/images/fins/covers/skip.png"
import secret_cover from "../../assets/images/fins/covers/secret.png"
import scroll_cover from "../../assets/images/fins/covers/scroll.png"
import polygon_cover from "../../assets/images/fins/covers/polygon.png"
import movement_cover from "../../assets/images/fins/covers/movement.png"
import bera_cover from "../../assets/images/fins/covers/bera.png"
import arbitrum_cover from "../../assets/images/fins/covers/arbitrum.png"
import landslide_cover from "../../assets/images/fins/covers/landslide.png"
import kodiak_cover from "../../assets/images/fins/covers/kodiak.png"
import leap_cover from "../../assets/images/fins/covers/leap.png"
import keplr_cover from "../../assets/images/fins/covers/keplr.png"
import aligned_cover from "../../assets/images/fins/covers/aligned.png"
import lava_cover from "../../assets/images/fins/covers/lava.png"
import canto_cover from "../../assets/images/fins/covers/canto.png"
import noble_cover from "../../assets/images/fins/covers/noble.png"
import quasar_cover from "../../assets/images/fins/covers/quasar.png"
import abstract_cover from "../../assets/images/fins/covers/abstract.png"
import nomos_cover from "../../assets/images/fins/covers/nomos.png"
import celestia_cover from "../../assets/images/fins/covers/celestia.png"
import talus_cover from "../../assets/images/fins/covers/talus.png"
type Category =
"defi"
| "defi"
| "infrastructure"
| "interchain token"
| "wallet"
Expand All @@ -63,13 +63,13 @@ type Category =
| "dex"
| "interchain native"
| "trading"
| "";
| ""
interface ItemData {
name: string;
url: string;
logo: any;
cover: any;
name: string
url: string
logo: any
cover: any
category: Category[]
}
Expand Down Expand Up @@ -227,10 +227,21 @@ const data: ItemData[] = [
logo: talus_logo,
cover: talus_cover,
category: ["defi", "infrastructure", "interchain token", "rwa"]
},
];
}
]
const categories: Category[] = ["defi", "infrastructure", "interchain token", "wallet", "enterprise", "rwa", "nft", "dex", "interchain native", "trading"];
const categories: Category[] = [
"defi",
"infrastructure",
"interchain token",
"wallet",
"enterprise",
"rwa",
"nft",
"dex",
"interchain native",
"trading"
]
---

<LanderSection>
Expand Down
7 changes: 3 additions & 4 deletions site/src/components/sections/TopSection.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
import { Image } from 'astro:assets';
import { Image } from "astro:assets"
import wave from "../../assets/images/spline-holders/wave-collateral.png"
import LightedTitle from "../typography/LightedTitle.astro";
import Spline from "#/components/Spline.astro";
import LightedTitle from "../typography/LightedTitle.astro"
import Spline from "#/components/Spline.astro"
import newWave from "#/spline/new-wave.splinecode"
const { title } = Astro.props
---

Expand Down
2 changes: 1 addition & 1 deletion site/src/components/sections/blogIntroSection.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { Image } from 'astro:assets';
import { Image } from "astro:assets"
import H1 from "../typography/h1.astro"
import wave from "#/assets/images/spline-holders/wave-collateral.png"
---
Expand Down
4 changes: 2 additions & 2 deletions site/src/components/sections/landing/ComeSwimSection.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
import { Image } from "astro:assets"
import H1 from "../../typography/h1.astro";
import H1 from "../../typography/h1.astro"
import swim from "#/assets/images/spline-holders/come-swim.png"
import ContainedSection from "../../ContainedSection.astro";
import ContainedSection from "../../ContainedSection.astro"
---

<ContainedSection>
Expand Down
7 changes: 3 additions & 4 deletions site/src/components/sections/landing/ConsensusSection.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
import { Image } from 'astro:assets';
import { Image } from "astro:assets"
import H1 from "../../typography/h1.astro"
import ButtonA from "../../ButtonA.astro"
import QuoteSubTitle from "../../typography/QuoteSubTitle.astro";
import QuoteSubTitle from "../../typography/QuoteSubTitle.astro"
import trails from "#/assets/images/spline-holders/union-trails.png"
import ContainedSection from "../../ContainedSection.astro";
import ContainedSection from "../../ContainedSection.astro"
---

<ContainedSection>
Expand Down
6 changes: 3 additions & 3 deletions site/src/components/sections/landing/ExecutionSection.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
import {Image} from 'astro:assets';
import { Image } from "astro:assets"
import H1 from "../../typography/h1.astro"
import ButtonA from "../../ButtonA.astro"
import QuoteSubTitle from "../../typography/QuoteSubTitle.astro";
import QuoteSubTitle from "../../typography/QuoteSubTitle.astro"
import executionImage from "#/assets/images/spline-holders/modular.png"
import ContainedSection from "../../ContainedSection.astro";
import ContainedSection from "../../ContainedSection.astro"
---

<ContainedSection>
Expand Down
8 changes: 3 additions & 5 deletions site/src/components/sections/landing/IntroSection.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
---
import {Image} from 'astro:assets';
import { Image } from "astro:assets"
import H1 from "../../typography/h1.astro"
import ButtonA from "../../ButtonA.astro"
import QuoteSubTitle from "../../typography/QuoteSubTitle.astro";
import Spline from "#/components/Spline.astro";
import QuoteSubTitle from "../../typography/QuoteSubTitle.astro"
import Spline from "#/components/Spline.astro"
import newWave from "#/spline/new-wave.splinecode"
---

<section class="relative flex w-full justify-center mb-24 lg:mb-48 -mt-[56px] md:-mt-[80px]">
Expand Down
8 changes: 4 additions & 4 deletions site/src/components/sections/landing/MarqueeSection.astro
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
import '../../../styles/marquee.css'
import ContainedSection from "../../ContainedSection.astro";
import LightedTitle from "../../typography/LightedTitle.astro";
import "../../../styles/marquee.css"
import ContainedSection from "../../ContainedSection.astro"
import LightedTitle from "../../typography/LightedTitle.astro"
interface Props {
title: string
}
const {title, data, reverse} = Astro.props
const { title, data, reverse } = Astro.props
---

<ContainedSection>
Expand Down
10 changes: 5 additions & 5 deletions site/src/components/sections/landing/ZkSection.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
import { Image } from 'astro:assets';
import H1 from "../../typography/h1.astro";
import ButtonA from "../../ButtonA.astro";
import Subtitle from "../../typography/subtitle.astro";
import { Image } from "astro:assets"
import H1 from "../../typography/h1.astro"
import ButtonA from "../../ButtonA.astro"
import Subtitle from "../../typography/subtitle.astro"
import whale from "#/assets/images/spline-holders/whale.png"
import ContainedSection from "../../ContainedSection.astro";
import ContainedSection from "../../ContainedSection.astro"
---

<ContainedSection>
Expand Down
1 change: 0 additions & 1 deletion site/src/components/sections/old/CodeSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Card from "#/components/Card.astro"
import IntroHeading from "#/components/typography/IntroHeading.astro"
import { codeSnippets } from "#/content/_snippets/landing.ts"
// import { Tabs, TabItem } from "@astrojs/starlight/components"
---

<LanderSection gradient="to-b">
Expand Down
10 changes: 5 additions & 5 deletions site/src/components/typography/LightedTitle.astro
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
import H1 from "./h1.astro";
import H1 from "./h1.astro"
interface Props {
title: string
}
const {title} = Astro.props
const { title } = Astro.props
const words = title.split(' ');
const lastWord = words.pop();
const restOfTitle = words.join(' ');
const words = title.split(" ")
const lastWord = words.pop()
const restOfTitle = words.join(" ")
---

<H1>
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/typography/QuoteSubTitle.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Subtitle from "./subtitle.astro";
import Subtitle from "./subtitle.astro"
---

<div class="flex -ml-4 gap-2">
Expand Down
1 change: 0 additions & 1 deletion site/src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Astro.response.headers.set("netlify-cdn-cache-control", "s-maxage=31536000")
Astro.response.headers.set("netlify-cache-tag", "blog")
const imageWithProtocol = (url: string) => `https:${url}`
---

<SectionsLayout title="Union Blog" gapless>
Expand Down
7 changes: 3 additions & 4 deletions site/src/pages/ecosystem.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
import TopSection from "../components/sections/TopSection.astro";
import SectionsLayout from "../layouts/SectionsLayout.astro";
import EcosystemSection from "../components/sections/EcosystemSection.astro";
import TopSection from "../components/sections/TopSection.astro"
import SectionsLayout from "../layouts/SectionsLayout.astro"
import EcosystemSection from "../components/sections/EcosystemSection.astro"
---

<SectionsLayout gapless>
Expand Down
Loading

0 comments on commit a848c00

Please sign in to comment.