import { For } from "solid-js"; import { A } from "@solidjs/router"; import { styled } from "@macaron-css/solid"; import { keyframes } from "@macaron-css/core"; import { useAccount } from "../providers/account"; import SteamAvatar from "../components/profile-picture"; import { Container, Screen as FullScreen, theme } from "@nestri/www/ui"; const Background = styled("div", { base: { position: "fixed", zIndex: "-1", inset: 0, ":after": { inset: 0, content: "", userSelect: "none", position: "absolute", pointerEvents: "none", background: `linear-gradient(0deg,${theme.color.background.d200} 30%,transparent),linear-gradient(0deg,${theme.color.background.d200} 30%,transparent)` } } }) const gradient = keyframes({ "0%": { backgroundPosition: "0% 50%", }, "50%": { backgroundPosition: "100% 50%", }, "100%": { backgroundPosition: "0% 50%", }, }) const BackgroundImage = styled("div", { base: { width: "100%", height: "70%", position: "relative", filter: "saturate(120%)", backgroundSize: "300% 100%", backgroundPosition: "0% 0%", backgroundRepeat: "repeat-x", animation: `${gradient} 35s linear 0s infinite`, backgroundImage: "linear-gradient(120deg, rgb(232,23,98) 1.26%, rgb(30,134,248) 18.6%, rgb(91,108,255) 34.56%, rgb(52,199,89) 49.76%, rgb(245,197,5) 64.87%, rgb(236,62,62) 85.7%)", } }) const Wrapper = styled("div", { base: { margin: "100px 0", textAlign: "center", justifyContent: "center", display: "flex", flexDirection: "column", width: "100%", maxWidth: 700, } }) const Title = styled("h1", { base: { fontSize: "50px", fontFamily: theme.font.family.heading, letterSpacing: "-0.515px", } }) const Profiles = styled("div", { base: { // width: "100%", gridTemplateColumns: "repeat(auto-fit, minmax(150px, auto))", display: "grid", columnGap: 12, rowGap: 10, margin: "100px 0", alignItems: "center", justifyContent: "center" } }) const Profile = styled("div", { base: { width: 150, } }) const ProfilePicture = styled("div", { base: { width: 150, height: 150, cursor: "pointer", borderRadius: 75, overflow: "hidden", border: `6px solid ${theme.color.gray.d700}`, transition: "all 200ms ease", ":hover": { transform: "scale(1.07)", borderColor: theme.color.blue.d700 } } }) const ProfileName = styled("div", { base: { margin: "20px 0", lineHeight: "1.25em", color: theme.color.gray.d900, transition: "all 300ms ease", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontSize: theme.font.size.lg } }) const NewButton = styled(A, { base: { display: "flex", justifyContent: "center", textDecoration: "none", alignItems: "center", cursor: "pointer", color: "inherit", padding: "0px 14px", gap: 10, width: "max-content", alignSelf: "center", height: 48, borderRadius: theme.space["3"], transition: "all .2s ease", border: `1px solid ${theme.color.gray.d400}`, backgroundColor: theme.color.background.d100, ":hover": { transform: "scale(1.02)", borderColor: theme.color.blue.d700 } } }) export function ProfilesRoute() { const account = useAccount() return ( Who's playing? {(profile) => ( {profile.name} )} Add Steam account ) }