From 6f1e0854e0c4b406903d46e6755ad2eee40f7ad6 Mon Sep 17 00:00:00 2001 From: Belle Date: Sat, 17 Aug 2024 22:28:28 +0800 Subject: [PATCH] fix styling bug + name --- components/arcade/showcase/project-view.js | 34 +++++++++++++++++-- pages/api/arcade/showcase/projects/my.js | 2 +- pages/arcade/showcase/my.js | 2 +- .../showcase/project/[projectID]/index.js | 16 +++++---- 4 files changed, 42 insertions(+), 12 deletions(-) diff --git a/components/arcade/showcase/project-view.js b/components/arcade/showcase/project-view.js index 572f7e05..eea9e33e 100644 --- a/components/arcade/showcase/project-view.js +++ b/components/arcade/showcase/project-view.js @@ -1,5 +1,6 @@ import styles from './project-view.module.css' -import { Button } from 'theme-ui' +import { Button, Text } from 'theme-ui' +import Icon from '@hackclub/icons' /** @jsxImportSource theme-ui */ const ProjectView = ({ @@ -20,9 +21,36 @@ const ProjectView = ({ : 'View project source' return (
-
-

{title}

+
+

{title}

By {user}

+ + View all my ships +
{ }} > - {status == 'success' ? `Welcome, ${projects.user}` : ''} + {status == 'success' ? `Welcome, ${name}` : ''} diff --git a/pages/arcade/showcase/project/[projectID]/index.js b/pages/arcade/showcase/project/[projectID]/index.js index 6b60b5e7..254abfc6 100644 --- a/pages/arcade/showcase/project/[projectID]/index.js +++ b/pages/arcade/showcase/project/[projectID]/index.js @@ -4,7 +4,8 @@ import Nav from '../../../../../components/Nav' import Footer from '../../../../../components/arcade/Footer' import BGImg from '../../../../../components/background-image' import styles from '../../../../../components/arcade/showcase/project-view.module.css' -import { Box } from 'theme-ui' +import { Box, Text } from 'theme-ui' +import Icon from '@hackclub/icons' /** @jsxImportSource theme-ui */ const styled = ` @@ -118,20 +119,21 @@ const ProjectShowPage = ({ projectID }) => { maxWidth: '200px', position: 'absolute', top: '20px', - right: '20px' + right: '20px', + zIndex: 10 }} />
- { + {/* { status == 'loading' && } { status == 'error' && - } + } */} - { - status == 'success' && + {/* { + status == 'success' && */} { githubProf={project.githubProf} user={project.user} /> - } + {/* } */}