diff --git a/react_main/public/images/santahat.png b/react_main/public/images/santahat.png new file mode 100644 index 000000000..45f2927da Binary files /dev/null and b/react_main/public/images/santahat.png differ diff --git a/react_main/src/css/user.css b/react_main/src/css/user.css index ab1eaa042..a6452c710 100644 --- a/react_main/src/css/user.css +++ b/react_main/src/css/user.css @@ -65,8 +65,11 @@ iframe { align-items: center; justify-content: center; - width: 100%; - height: 100%; + /* width: 100%; + height: 100%; */ + width: inherit; + height: inherit; + position: fixed; border-radius: 50px; diff --git a/react_main/src/pages/User/User.jsx b/react_main/src/pages/User/User.jsx index 0612605af..36e901317 100644 --- a/react_main/src/pages/User/User.jsx +++ b/react_main/src/pages/User/User.jsx @@ -171,6 +171,8 @@ export function Avatar(props) { const avatarId = props.avatarId; const deckProfile = props.deckProfile; + const santaDir = "/images/santahat.png"; + const siteInfo = useContext(SiteInfoContext); const style = {}; const colors = [ @@ -214,19 +216,39 @@ export function Avatar(props) { style.backgroundColor = colors[Math.floor(rand * colors.length)]; } + var santaWidth; + var santaHorizAdjust; + var santaVertAdjust; + + if (large) { + santaWidth = "100px"; + santaHorizAdjust = -35; + santaVertAdjust = -40; + } else if (small) { + santaWidth = "20px;" + santaHorizAdjust = -5; + santaVertAdjust = -8; + } + else { + santaWidth = "40px"; + santaHorizAdjust = -12; + santaVertAdjust = -15; + } + return ( -
- {edit && ( - - - - )} -
+
+ {edit && ( + + + + )} + +
); }