colors
This commit is contained in:
@@ -8,7 +8,6 @@ interface Props {
|
|||||||
|
|
||||||
export default function ArticleCard(props: Props) {
|
export default function ArticleCard(props: Props) {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
// TODO: Retrieve author id => author name
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
|
|||||||
@@ -1,43 +1,41 @@
|
|||||||
import { Button, Input } from '@mui/material';
|
import { Button, Input, Typography } from '@mui/material';
|
||||||
import { Link } from 'react-router-dom';
|
import { useNavigate } from "react-router";
|
||||||
import ProfilePlaceholder from "../assets/provile.svg";
|
import ProfilePlaceholder from "../assets/provile.svg";
|
||||||
import "../style.css";
|
|
||||||
|
|
||||||
export default function Navbar() {
|
export default function Navbar() {
|
||||||
// TODO: create search function
|
let navigate = useNavigate();
|
||||||
// TODO: Profile integration
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-color-bold-1 flex flex-row justify-between">
|
<div className="navbar bg-dark flex flex-row justify-between">
|
||||||
<div className="flex flex-row justify-start items-center gap-3">
|
<div id="left" className="flex flex-row" >
|
||||||
<Button
|
<div
|
||||||
component={Link}
|
id="home-link"
|
||||||
to="/"
|
className="flex items-center bg-bold-1 pl-3 pr-3 cursor-pointer"
|
||||||
variant="outlined"
|
onClick={() => navigate("/")}
|
||||||
>
|
>
|
||||||
|
<Typography className="text-tb1">
|
||||||
Home
|
Home
|
||||||
</Button>
|
</Typography>
|
||||||
|
</div>
|
||||||
<Button
|
<div
|
||||||
component={Link}
|
id="articleslist-link"
|
||||||
to="/articleList"
|
className="flex items-center bg-bold-2 pl-3 pr-3 cursor-pointer"
|
||||||
variant="outlined"
|
onClick={() => navigate("/articleList")}
|
||||||
>
|
>
|
||||||
|
<Typography className="text-tb2">
|
||||||
Articles
|
Articles
|
||||||
</Button>
|
</Typography>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="right" className="flex flex-row bg-neutral-3 flex flex-row">
|
||||||
|
<div id="search-bar" className="flex items-center pl-3 pr-3">
|
||||||
|
<Input />
|
||||||
|
</div>
|
||||||
|
<div id="profile-link" className="flex items-center pl-3 pr-3">
|
||||||
|
<Typography className="text-tn3">
|
||||||
|
Profile
|
||||||
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-row justify-end items-center gap-3">
|
|
||||||
<Input
|
|
||||||
placeholder="Search" fullWidth={false} disableUnderline={true}
|
|
||||||
/>
|
|
||||||
<img
|
|
||||||
className="
|
|
||||||
flex
|
|
||||||
h-[3em]
|
|
||||||
w-[3em]
|
|
||||||
rounded-full"
|
|
||||||
src={ProfilePlaceholder} alt="PFP"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
+34
-5
@@ -6,8 +6,8 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
color: rgba(0, 0, 0, 1);
|
color: #000000;
|
||||||
background-color: #ffffff;
|
background-color: var(--color-neutral-2);
|
||||||
|
|
||||||
font-synthesis: none;
|
font-synthesis: none;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
@@ -15,9 +15,38 @@
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding-top: 1rem;
|
margin: 0;
|
||||||
padding-left: 2rem;
|
}
|
||||||
padding-right: 2rem;
|
|
||||||
|
.navbar {
|
||||||
|
height: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-container {
|
||||||
|
padding: 2rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 1300px;
|
||||||
|
min-height: calc(100vh - 2.5rem);
|
||||||
|
margin: 0 auto;
|
||||||
|
background-color: var(--color-neutral-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme {
|
||||||
|
--color-bold-1: #ffbf00;
|
||||||
|
--color-bold-2: #008b8b;
|
||||||
|
--color-bold-3: #d9645c;
|
||||||
|
--color-neutral-1: #d6bb87;
|
||||||
|
--color-neutral-2: #4a7070;
|
||||||
|
--color-neutral-3: #7a7570;
|
||||||
|
--color-dark: #2b3b3b;
|
||||||
|
|
||||||
|
--color-tb1: #1b2a2a;
|
||||||
|
--color-tb2: #ffffff;
|
||||||
|
--color-tb3: #ffffff;
|
||||||
|
--color-tn1: #1b2a2a;
|
||||||
|
--color-tn2: #ffffff;
|
||||||
|
--color-tn3: #ffffff;
|
||||||
|
--color-td: #ffffff;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default function Article() {
|
|||||||
let { slug } = useParams();
|
let { slug } = useParams();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="article">
|
<div id="article" className="page-container">
|
||||||
<h1>Article: {slug}</h1>
|
<h1>Article: {slug}</h1>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default function ArticleList() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-3 flex flex-col gap-5">
|
<div className="page-container p-3 flex flex-col gap-5">
|
||||||
{/*<Button
|
{/*<Button
|
||||||
style={{ border: "solid", borderWidth: "1px" }}
|
style={{ border: "solid", borderWidth: "1px" }}
|
||||||
onClick={() => getAllArticles()}
|
onClick={() => getAllArticles()}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export default function Home() {
|
export default function Home() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="home">
|
<div id="home" className="page-container">
|
||||||
<h1>Home</h1>
|
<h1>Home</h1>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
@import "tailwindcss";
|
|
||||||
|
|
||||||
@theme {
|
|
||||||
--color-bold-1: #ffbf00;
|
|
||||||
--color-bold-2: #008b8b;
|
|
||||||
--color-bold-3: #d9645c;
|
|
||||||
--color-neutral-1: #d4a5a5;
|
|
||||||
--color-neutral-2: #9caf88;
|
|
||||||
--color-neutral-3: #8B8680;
|
|
||||||
--color-dark: #1a3a3a;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user