Skip to content

Commit

Permalink
Style main cards
Browse files Browse the repository at this point in the history
  • Loading branch information
wdsrocha committed Apr 4, 2021
1 parent 39ef62f commit 68aea9f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/app/pages/contest/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ const ContestHeader = ({
useInterval(() => setNow(dayjs()), contestStatus !== "ended" ? 1000 : null);

return (
<Card title={<Title level={1}>{title}</Title>}>
<Card
className="card"
title={<Title level={1}>{title}</Title>}
>
<Progress percent={percentage} showInfo={false} />
<div className="flex flex-col md:flex-row md:justify-between md:items-center">
<div>
Expand Down
2 changes: 1 addition & 1 deletion packages/app/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Card } from "antd";
import Paragraph from "antd/lib/typography/Paragraph";

const Home = () => (
<Card>
<Card className="card">
<Paragraph>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quam pariatur
eius, praesentium omnis ullam expedita laboriosam ipsum, magni, earum
Expand Down
1 change: 1 addition & 0 deletions packages/app/pages/problem/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const Problem = ({

return (
<Card
className="card"
title={<Title level={2}>{data.title}</Title>}
extra={
screens.sm ? (
Expand Down
2 changes: 1 addition & 1 deletion packages/app/pages/problem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const Problem = () => {
};

return (
<Card title={<Title level={2}>Problemas</Title>}>
<Card className="card" title={<Title level={2}>Problemas</Title>}>
<Table<Problem>
size="middle"
bordered
Expand Down
5 changes: 5 additions & 0 deletions packages/app/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ body {
box-sizing: border-box;
white-space: pre-line;
}

.card {
@apply rounded-md;
@apply shadow-md;
}

0 comments on commit 68aea9f

Please sign in to comment.