mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding border to profile hero
This commit is contained in:
parent
446b03eeff
commit
0241d8752b
2 changed files with 37 additions and 2 deletions
|
@ -1,5 +1,17 @@
|
||||||
import { SPACING_UNIT, vars } from "../../../theme.css";
|
import { SPACING_UNIT, vars } from "../../../theme.css";
|
||||||
import { style } from "@vanilla-extract/css";
|
import { keyframes, style } from "@vanilla-extract/css";
|
||||||
|
|
||||||
|
const animateBackground = keyframes({
|
||||||
|
"0%": {
|
||||||
|
backgroundPosition: "0% 50%",
|
||||||
|
},
|
||||||
|
"50%": {
|
||||||
|
backgroundPosition: "100% 50%",
|
||||||
|
},
|
||||||
|
"100%": {
|
||||||
|
backgroundPosition: "0% 50%",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
export const profileContentBox = style({
|
export const profileContentBox = style({
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
@ -16,12 +28,12 @@ export const profileAvatarButton = style({
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
backgroundColor: vars.color.background,
|
backgroundColor: vars.color.background,
|
||||||
overflow: "hidden",
|
|
||||||
border: `solid 1px ${vars.color.border}`,
|
border: `solid 1px ${vars.color.border}`,
|
||||||
boxShadow: "0px 0px 5px 0px rgba(0, 0, 0, 0.7)",
|
boxShadow: "0px 0px 5px 0px rgba(0, 0, 0, 0.7)",
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
transition: "all ease 0.3s",
|
transition: "all ease 0.3s",
|
||||||
color: vars.color.muted,
|
color: vars.color.muted,
|
||||||
|
position: "relative",
|
||||||
":hover": {
|
":hover": {
|
||||||
boxShadow: "0px 0px 10px 0px rgba(0, 0, 0, 0.7)",
|
boxShadow: "0px 0px 10px 0px rgba(0, 0, 0, 0.7)",
|
||||||
},
|
},
|
||||||
|
@ -87,3 +99,25 @@ export const currentGameDetails = style({
|
||||||
gap: `${SPACING_UNIT}px`,
|
gap: `${SPACING_UNIT}px`,
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const xdTotal = style({
|
||||||
|
background: `linear-gradient(
|
||||||
|
60deg,
|
||||||
|
#f79533,
|
||||||
|
#f37055,
|
||||||
|
#ef4e7b,
|
||||||
|
#a166ab,
|
||||||
|
#5073b8,
|
||||||
|
#1098ad,
|
||||||
|
#07b39b,
|
||||||
|
#6fba82
|
||||||
|
)`,
|
||||||
|
width: "102px",
|
||||||
|
minWidth: "102px",
|
||||||
|
height: "102px",
|
||||||
|
animation: `${animateBackground} 4s ease alternate infinite`,
|
||||||
|
backgroundSize: "300% 300%",
|
||||||
|
zIndex: -1,
|
||||||
|
borderRadius: "4px",
|
||||||
|
position: "absolute",
|
||||||
|
});
|
||||||
|
|
|
@ -330,6 +330,7 @@ export function ProfileHero() {
|
||||||
className={styles.profileAvatarButton}
|
className={styles.profileAvatarButton}
|
||||||
onClick={handleAvatarClick}
|
onClick={handleAvatarClick}
|
||||||
>
|
>
|
||||||
|
<div className={styles.xdTotal} />
|
||||||
{userProfile?.profileImageUrl ? (
|
{userProfile?.profileImageUrl ? (
|
||||||
<img
|
<img
|
||||||
className={styles.profileAvatar}
|
className={styles.profileAvatar}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue