mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: today embeds
This commit is contained in:
1 parent
8f6388b42b
commit
438feefa83
8 files changed
+48
-10
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import getWN8Percentile from '../../../core/blitz/getWN8Percentile.js';
|
||||
import { theme } from '../../../stitches.config.js';
|
||||
import { theme, themeTransparent } from '../../../stitches.config.js';
|
||||
import { RowDiscriminator } from './RowDiscriminator.js';
|
||||
import { RowStat } from './RowStat.js';
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface RowProps {
|
||||
icon?: string;
|
||||
minimized: boolean;
|
||||
isListing: boolean;
|
||||
naked?: boolean;
|
||||
}
|
||||
|
||||
export function Row({
|
||||
@@ -31,6 +32,7 @@ export function Row({
|
||||
battles,
|
||||
careerBattles,
|
||||
icon,
|
||||
naked,
|
||||
}: RowProps) {
|
||||
return (
|
||||
<div
|
||||
@@ -38,7 +40,11 @@ export function Row({
|
||||
display: 'flex',
|
||||
borderRadius: 4,
|
||||
backgroundColor: isListing
|
||||
? theme.colors.componentInteractive
|
||||
? naked
|
||||
? themeTransparent.colors.componentInteractive
|
||||
: theme.colors.componentInteractive
|
||||
: naked
|
||||
? themeTransparent.colors.appBackground2
|
||||
: theme.colors.appBackground2,
|
||||
padding: 8,
|
||||
}}
|
||||
|
||||
@@ -3,9 +3,10 @@ import { theme } from '../stitches.config.js';
|
||||
|
||||
export interface WrapperProps {
|
||||
children: ReactNode;
|
||||
naked?: boolean;
|
||||
}
|
||||
|
||||
export default function Wrapper({ children }: WrapperProps) {
|
||||
export default function Wrapper({ children, naked }: WrapperProps) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
@@ -14,8 +15,11 @@ export default function Wrapper({ children }: WrapperProps) {
|
||||
padding: 16,
|
||||
gap: 32,
|
||||
width: 640,
|
||||
background: 'url(https://i.imgur.com/PhS06NJ.png)',
|
||||
color: theme.colors.textHighContrast,
|
||||
|
||||
...(!naked && {
|
||||
background: 'url(https://i.imgur.com/PhS06NJ.png)',
|
||||
}),
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in new issue
Block a user