mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: i am having too much fun
This commit is contained in:
1 parent
28e2139683
commit
c7e2780d17
3 files changed
+32
-16
No files matched your search
@@ -98,8 +98,8 @@ Promise.all(
|
|||||||
tree_type: isCollector
|
tree_type: isCollector
|
||||||
? 'collector'
|
? 'collector'
|
||||||
: isPremium
|
: isPremium
|
||||||
? 'premium'
|
? 'premium'
|
||||||
: 'tech-tree',
|
: 'tech-tree',
|
||||||
tier,
|
tier,
|
||||||
type,
|
type,
|
||||||
};
|
};
|
||||||
@@ -164,7 +164,9 @@ Promise.all(
|
|||||||
// ).flat() as FileChange[];
|
// ).flat() as FileChange[];
|
||||||
const flagChanges = await readdir(
|
const flagChanges = await readdir(
|
||||||
`${TEMP}/${directoriesOfInterest.flags}`,
|
`${TEMP}/${directoriesOfInterest.flags}`,
|
||||||
).then((flags) => flags.filter((flag) => flag.startsWith('flag_text')));
|
).then((flags) =>
|
||||||
|
flags.filter((flag) => flag.startsWith('flag_tutor-tank_')),
|
||||||
|
);
|
||||||
|
|
||||||
console.log(flagChanges);
|
console.log(flagChanges);
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
import { theme } from '../../../stitches.config';
|
import { theme } from '../../../stitches.config';
|
||||||
|
|
||||||
export const listing = style({
|
export const listing = style({});
|
||||||
transition: `background-position ${theme.durations.regular}`,
|
|
||||||
|
|
||||||
backgroundPosition: 'left center',
|
export const flag = style({
|
||||||
|
transitionDuration: theme.durations.regular,
|
||||||
|
left: '0',
|
||||||
|
top: '0',
|
||||||
|
|
||||||
':hover': {
|
[`.${listing}:hover &, .${listing}:active &`]: {
|
||||||
backgroundPosition: '-256px center',
|
transform: 'translateX(-25%)',
|
||||||
|
filter: 'blur(3rem)',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ import { useTankopedia } from '../../../stores/tankopedia';
|
|||||||
import { Options } from './components/Options';
|
import { Options } from './components/Options';
|
||||||
import * as styles from './page.css';
|
import * as styles from './page.css';
|
||||||
|
|
||||||
|
const flags = [
|
||||||
|
'https://i.imgur.com/Iho9ATV.png',
|
||||||
|
'https://i.imgur.com/uKWdnOn.png',
|
||||||
|
'https://i.imgur.com/kf4GwjJ.png',
|
||||||
|
];
|
||||||
|
|
||||||
const TANKS_PER_PAGE = 30;
|
const TANKS_PER_PAGE = 30;
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
@@ -154,14 +160,7 @@ export default function Page() {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Card
|
<Card className={styles.listing}>
|
||||||
className={styles.listing}
|
|
||||||
style={{
|
|
||||||
backgroundImage: `url(https://i.imgur.com/Iho9ATV.png)`,
|
|
||||||
backgroundSize: 'contain',
|
|
||||||
backgroundRepeat: 'no-repeat',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Inset
|
<Inset
|
||||||
key={tank.id}
|
key={tank.id}
|
||||||
style={{
|
style={{
|
||||||
@@ -171,6 +170,18 @@ export default function Page() {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<img
|
||||||
|
className={styles.flag}
|
||||||
|
// pick a random flag
|
||||||
|
src={flags[Math.floor(Math.random() * flags.length)]}
|
||||||
|
style={{
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
objectFit: 'contain',
|
||||||
|
position: 'absolute',
|
||||||
|
}}
|
||||||
|
></img>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
width: 256,
|
width: 256,
|
||||||
|
|||||||
Reference in new issue
Block a user