Skip to content

Commit

Permalink
Unify colors
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkucerak committed Feb 14, 2024
1 parent 7232e89 commit b9149f4
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 529 deletions.
4 changes: 2 additions & 2 deletions components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import Link from "next/link";

export default function Footer() {
return (
<footer className=" py-6 border-t-violet-light border-t mx-4 flex flex-row justify-between">
<footer className=" py-6 border-t-primary-light border-t mx-4 flex flex-row justify-between">
<Link href={"/"}>
<img
src="/icon.svg"
className="w-8 inline"
alt="Fialový rozcestník"
title="Ikona aplikace"
/>{" "}
<span className="font-semibold text-violet-light">Adventní cesta</span>
<span className="font-semibold text-primary-light">Adventní cesta</span>
</Link>
<div>
<span>
Expand Down
62 changes: 1 addition & 61 deletions components/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,14 @@ import Head from "next/head";

const appName = `Adventní cesta`;
const appDescription = `Tvůj průvodce na cestě Adventem`;
const mainColor = `#543fb6`;
const mainColor = `#50A2A7`;
const appUrl = `https://adventnicesta.cz/`;
const coverImage = `https://adventnicesta.cz/icon.png`;
const appAuthor = `Petr Kučera`;

export default function Meta() {
return (
<Head>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon/favicon-16x16.png"
/>
<link rel="manifest" href="/manifest.json" />
<link
rel="mask-icon"
href="/favicon/safari-pinned-tab.svg"
color={mainColor}
/>
<meta name="msapplication-TileColor" content="#ffc40d" />
<meta
name="msapplication-TileImage"
content="/favicon/mstile-144x144.png"
/>
<meta name="theme-color" content={mainColor} />
<meta
name="viewport"
Expand All @@ -52,38 +24,6 @@ export default function Meta() {
<meta name="mobile-web-app-capable" content="yes" />
<meta name="msapplication-config" content="/favicon/browserconfig.xml" />
<meta name="msapplication-tap-highlight" content="no" />
<link
rel="apple-touch-icon"
sizes="152x152"
href="/favicon/touch-icon-ipad.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicon/touch-icon-iphone-retina.png"
/>
<link
rel="apple-touch-icon"
sizes="167x167"
href="/favicon/touch-icon-ipad-retina.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon/favicon-16x16.png"
/>
<link
rel="mask-icon"
href="/favicon/safari-pinned-tab.svg"
color="#5bbad5"
/>
<meta name="twitter:card" content={appDescription} />
<meta name="twitter:url" content={appUrl} />
<meta name="twitter:title" content={appName} />
Expand Down
2 changes: 1 addition & 1 deletion components/utils/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Button({ href, content, rel, target }) {
return (
<Link
href={href}
className="bg-violet-light rounded text-white px-4 py-2 font-semibold hover:scale-110 duration-200 my-4"
className="bg-primary-light rounded text-white px-4 py-2 font-semibold hover:scale-110 duration-200 my-4"
rel={rel}
target={target}
>
Expand Down
2 changes: 1 addition & 1 deletion components/utils/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Day({ post }) {
<Link
id={post.slug}
href={`/den/${post.slug}`}
className="text-lg hover:bg-stone-300 uppercase py-2 px-4 rounded font-semibold text-center duration-200 hover:text-violet-light"
className="text-lg hover:bg-stone-300 uppercase py-2 px-4 rounded font-semibold text-center duration-200 hover:text-primary-light"
>
{`${date.getDate()}. `}
</Link>
Expand Down
6 changes: 3 additions & 3 deletions components/utils/nav-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export default function NavButtons({ posts }) {
return (
<div className="mx-6 flex flex-row justify-around mt-6">
<Link href={`/den/${yesterdayDate}`} className={yesterdayStatus}>
<Button className={"bg-violet-light"}>včera</Button>
<Button className={"bg-primary-light"}>včera</Button>
</Link>
<Link href={`/den/${nowDate}`} className={nowStatus}>
<Button className={"bg-violet-dark"}>dnes</Button>
<Button className={"bg-primary-dark"}>dnes</Button>
</Link>
<Link href={`/den/${tomorrowDate}`} className={tomorrowStatus}>
<Button className={"bg-violet-light"}>zítra</Button>
<Button className={"bg-primary-light"}>zítra</Button>
</Link>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion pages/den/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Post({ post, preview }) {
<h1 className="text-4xl font-bold mb-4">{post.dayName}</h1>
<RenderDate
dateString={post.date}
className="font-bold text-xl text-violet-light"
className="font-bold text-xl text-primary-light"
/>
<h2 className={`${titleClass} text-2xl font-bold mt-8`}>Podcast</h2>
<p className={`${textClass} text-lg mb-4 italic`}>
Expand Down
Loading

0 comments on commit b9149f4

Please sign in to comment.