From 6a7e40bc4ad53708c35a88ddb02b0703514d2ac5 Mon Sep 17 00:00:00 2001 From: Vince Au Date: Sat, 30 Sep 2023 12:43:25 +1000 Subject: [PATCH] make it look good --- src/renderer/pages/home/HomePage.tsx | 3 +- src/renderer/pages/home/StartggLinks.tsx | 102 +++++++++++++++-------- 2 files changed, 67 insertions(+), 38 deletions(-) diff --git a/src/renderer/pages/home/HomePage.tsx b/src/renderer/pages/home/HomePage.tsx index 696dfd990..31752e278 100644 --- a/src/renderer/pages/home/HomePage.tsx +++ b/src/renderer/pages/home/HomePage.tsx @@ -30,6 +30,7 @@ const Main = styled.div` const Right = styled.div` display: flex; + flex: 1; flex-direction: column; overflow-x: hidden; `; @@ -58,8 +59,8 @@ export const HomePage = React.memo(function HomePage() { } rightSide={ - + } rightStyle={{ backgroundColor: colors.purpleDark }} diff --git a/src/renderer/pages/home/StartggLinks.tsx b/src/renderer/pages/home/StartggLinks.tsx index 253053188..1c67e9e37 100644 --- a/src/renderer/pages/home/StartggLinks.tsx +++ b/src/renderer/pages/home/StartggLinks.tsx @@ -1,51 +1,79 @@ +import styled from "@emotion/styled"; +import EmojiEventsIcon from "@mui/icons-material/EmojiEvents"; +import LanguageIcon from "@mui/icons-material/Language"; +import LocationOnIcon from "@mui/icons-material/LocationOn"; +import { Typography } from "@mui/material"; import Button from "@mui/material/Button"; -import Card from "@mui/material/Card"; -import CardActions from "@mui/material/CardActions"; -import CardHeader from "@mui/material/CardHeader"; import React from "react"; import { ExternalLink } from "@/components/ExternalLink"; import { ReactComponent as StartggLogo } from "@/styles/images/startgg-logo.svg"; const NearMeUrl = - "https://www.start.gg/search/near_me" + - "?range%5BeffectiveRegistrationClosesAt%5D%5Bmin%5D=1" + - "&refinementList%5Bevents.videogame.id%5D=1" + - "&refinementList%5BhasOnlineEvents%5D=" + - "&refinementList%5Bstate%5D%5B0%5D=1" + - "&page=1" + - "&configure%5BhitsPerPage%5D=15" + - "&configure%5Bfilters%5D=profileType%3Atournament" + - "&configure%5BaroundLatLngViaIP%5D=true" + - "&configure%5BaroundRadius%5D=160934"; + "https://start.gg/search/near_me?range%5BeffectiveRegistrationClosesAt%5D%5Bmin%5D=1&refinementList%5Bevents.videogame.id%5D=1&refinementList%5BhasOnlineEvents%5D=&refinementList%5Bstate%5D%5B0%5D=1&page=1&configure%5BhitsPerPage%5D=15&configure%5Bfilters%5D=profileType%3Atournament&configure%5BaroundLatLngViaIP%5D=true&configure%5BaroundRadius%5D=160934"; const OnlineUrl = - "https://www.start.gg/search/tournaments" + - "?refinementList%5Bevents.videogame.id%5D=1" + - "&refinementList%5BhasOnlineEvents%5D%5B0%5D=true" + - "&page=1" + - "&configure%5BhitsPerPage%5D=15" + - "&configure%5Bfilters%5D=profileType%3Atournament" + - "&range%5BeffectiveRegistrationClosesAt%5D%5Bmin%5D=1"; + "https://start.gg/search/tournaments?refinementList%5Bevents.videogame.id%5D=1&refinementList%5BhasOnlineEvents%5D%5B0%5D=true&page=1&configure%5BhitsPerPage%5D=15&configure%5Bfilters%5D=profileType%3Atournament&range%5BeffectiveRegistrationClosesAt%5D%5Bmin%5D=1"; + +const PoweredByContainer = styled.div` + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: end; + align-items: center; + padding: 4px 10px; + font-size: 9pt; + color: rgba(255, 255, 255, 0.6); +`; + +const Outer = styled.div` + background-color: rgba(0, 0, 0, 0.35); + padding: 15px; +`; + +const LinksGrid = styled.div` + display: grid; + grid-template-columns: 1fr 1fr; + justify-items: center; + align-items: center; +`; export const StartggLinks = React.memo(function StartggLinks() { return ( - - - } - title="Tournaments" - titleTypographyProps={{ component: "h2", variant: "h5" }} - /> - - - - - +
+ +
+ + Tournaments + + +
+ + + + +
+ +
powered by start.gg
+ +
+
); });