refactor: clarify frontend module ownership
Frontend verify / commits (pull_request) Failing after 1m19s
Frontend verify / security (pull_request) Skipped
Frontend verify / verify (pull_request) Skipped

This commit is contained in:
2026-09-29 07:07:36 +03:00
parent 7c28a423dd
commit f9f0f6921e
91 changed files with 1292 additions and 1050 deletions
@@ -75,15 +75,14 @@
overflow-wrap: anywhere;
}
.metricsGrid {
--instrument-metric-padding: var(--mantine-spacing-sm);
--instrument-metric-background: var(--wl-color-subtle);
--instrument-metric-radius: var(--mantine-radius-md);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
gap: var(--mantine-spacing-lg);
}
.metricsGrid > div {
padding: var(--mantine-spacing-sm);
background: var(--wl-color-subtle);
border-radius: var(--mantine-radius-md);
}
@media (max-width: 48em) {
.metricsGrid {
grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -0,0 +1,31 @@
import type { FC, PropsWithChildren } from "react";
import { Stack, Text, type TextProps, Title } from "@mantine/core";
import classes from "./InstrumentDetails.module.css";
type InstrumentPriceProps = PropsWithChildren<Pick<TextProps, "mt">>;
type InstrumentTermsProps = PropsWithChildren<{ title: string }>;
const InstrumentPage: FC<PropsWithChildren> = props => (
<Stack className={classes.page} gap="lg">{props.children}</Stack>
);
const InstrumentPrice: FC<InstrumentPriceProps> = props => (
<Text className={classes.price} mt={props.mt}>{props.children}</Text>
);
const InstrumentMetrics: FC<PropsWithChildren> = props => (
<div className={classes.metricsGrid}>{props.children}</div>
);
const InstrumentTerms: FC<InstrumentTermsProps> = props => (
<div className={classes.embeddedSection}>
<Title mb="md" order={2} size="h3">{props.title}</Title>
{props.children}
</div>
);
export { InstrumentMetrics, InstrumentPage, InstrumentPrice, InstrumentTerms };
@@ -0,0 +1,5 @@
.metric {
padding: var(--instrument-metric-padding, 0);
background: var(--instrument-metric-background, transparent);
border-radius: var(--instrument-metric-radius, 0);
}
@@ -2,10 +2,12 @@ import type { FC } from "react";
import { Text } from "@mantine/core";
import classes from "./InstrumentMetric.module.css";
type InstrumentMetricProps = { label: string; value: string };
const InstrumentMetric: FC<InstrumentMetricProps> = props => (
<div>
<div className={classes.metric}>
<Text c="dimmed" size="xs">
{props.label}
</Text>