Skip to content
Snippets Groups Projects
Commit 7c3df0d1 authored by xaralis's avatar xaralis
Browse files

feat: improve aligning and hero banner

parent 3b2231a3
No related branches found
No related tags found
No related merge requests found
Pipeline #5955 passed
...@@ -15,6 +15,8 @@ import Team from "./pages/Team"; ...@@ -15,6 +15,8 @@ import Team from "./pages/Team";
import Volunteers from "./pages/Volunteers"; import Volunteers from "./pages/Volunteers";
import partyLogo from "./logo-full-black.svg"; import partyLogo from "./logo-full-black.svg";
import "./styles.css";
/** /**
* If configured, set up Sentry client that reports uncaught errors down to * If configured, set up Sentry client that reports uncaught errors down to
* https://sentry.io. * https://sentry.io.
...@@ -31,7 +33,7 @@ const WithNav = ({ children }) => { ...@@ -31,7 +33,7 @@ const WithNav = ({ children }) => {
return ( return (
<div className="flex flex-col md:flex-row md:space-x-8"> <div className="flex flex-col md:flex-row md:space-x-8">
{children} {children}
<VNav className="mt-8 md:mt-0 md:w-1/4" /> <VNav className="mt-8 md:mt-0 md:w-1/4 p-4 md:p-8" />
</div> </div>
); );
}; };
...@@ -47,7 +49,7 @@ function BaseApp() { ...@@ -47,7 +49,7 @@ function BaseApp() {
</Helmet> </Helmet>
<div className="container container--default my-4 md:my-16 space-y-8 md:space-y-16"> <div className="container container--default my-4 md:my-16 space-y-8 md:space-y-16">
<div className="md:flex items-center"> <div className="md:flex items-center text-center md:text-left">
<h1 className="head-alt-xl"> <h1 className="head-alt-xl">
<Link to="/" className="no-underline hover:no-underline"> <Link to="/" className="no-underline hover:no-underline">
{basics.appTitle} {basics.appTitle}
...@@ -91,7 +93,7 @@ function BaseApp() { ...@@ -91,7 +93,7 @@ function BaseApp() {
</Route> </Route>
</Switch> </Switch>
<div className="border-t border-grey-125 pt-4 flex flex-col md:flex-row md:justify-between space-y-4"> <div className="border-t border-grey-125 pt-4 flex flex-col md:flex-row items-center md:justify-between space-y-4 text-center md:text-left">
<img src={partyLogo} className="w-32" alt="Pirátská strana" /> <img src={partyLogo} className="w-32" alt="Pirátská strana" />
<p>Piráti, {year}. Všechna práva vyhlazena.</p> <p>Piráti, {year}. Všechna práva vyhlazena.</p>
</div> </div>
......
const PageTitle = ({ children }) => { const PageTitle = ({ children }) => {
return ( return (
<h1 className="head-alt-md md:head-alt-lg max-w-5xl mb-8">{children}</h1> <h1 className="head-alt-md md:head-alt-lg max-w-5xl mb-8 text-center md:text-left">
{children}
</h1>
); );
}; };
......
...@@ -2,7 +2,7 @@ import React from "react"; ...@@ -2,7 +2,7 @@ import React from "react";
import classNames from "classnames"; import classNames from "classnames";
const CardBody = ({ children, className, ...props }) => { const CardBody = ({ children, className, ...props }) => {
const cls = classNames("card__body", className); const cls = classNames("card__body p-4 md:p-8", className);
return ( return (
<div className={cls} {...props}> <div className={cls} {...props}>
{children} {children}
......
File added
...@@ -14,8 +14,8 @@ const Accommodation = () => { ...@@ -14,8 +14,8 @@ const Accommodation = () => {
const priceClassClass = (priceClass) => { const priceClassClass = (priceClass) => {
return classNames("text-white font-bold px-2 py-2 text-xs ml-auto", { return classNames("text-white font-bold px-2 py-2 text-xs ml-auto", {
"bg-blue-100": priceClass === "$", "bg-blue-300 bg-opacity-75": priceClass === "$",
"bg-blue-200": priceClass === "$$", "bg-blue-300 bg-opacity-85": priceClass === "$$",
"bg-blue-300": priceClass === "$$$", "bg-blue-300": priceClass === "$$$",
}); });
}; };
......
...@@ -2,7 +2,9 @@ import Button from "components/Button"; ...@@ -2,7 +2,9 @@ import Button from "components/Button";
import CrossroadCard from "components/CrossroadCard"; import CrossroadCard from "components/CrossroadCard";
import { nav } from "config"; import { nav } from "config";
import cfPattern from "./gingerbread-pattern-384px.svg"; import cfLogo from "../gingerbread.svg";
import cfPattern from "./gingerbread-pattern-colourful-384px.svg";
const Home = () => { const Home = () => {
const delta = Math.abs(new Date(2022, 0, 8) - new Date()) / 1_000; const delta = Math.abs(new Date(2022, 0, 8) - new Date()) / 1_000;
...@@ -12,10 +14,16 @@ const Home = () => { ...@@ -12,10 +14,16 @@ const Home = () => {
return ( return (
<> <>
<div <div
className="card elevation-10 bg-opacity-25 flex flex-col lg:flex-row lg:items-center p-8 md:p-16 my-8 xl:-mx-16 container-padding--zero md:container-padding--auto" className="card elevation-10 bg-opacity-25 flex flex-col lg:flex-row lg:items-center my-8 xl:-mx-16 container-padding--zero md:container-padding--auto"
style={{ backgroundImage: `url(${cfPattern})` }} style={{ backgroundImage: `url(${cfPattern})` }}
> >
<div className="p-4 md:p-8 lg:pr-16 bg-white text-center lg:text-left"> <div className="w-full flex items-center justify-center bg-blur text-center lg:text-left p-8 py-16 md:p-16">
<img
src={cfLogo}
alt="CF 2022"
className="hidden lg:block w-48 mr-16"
/>
<div>
<h1 className="head-alt-lg md:head-alt-xl mb-4"> <h1 className="head-alt-lg md:head-alt-xl mb-4">
Začínáme za Začínáme za
<br /> <br />
...@@ -32,6 +40,7 @@ const Home = () => { ...@@ -32,6 +40,7 @@ const Home = () => {
</Button> </Button>
</div> </div>
</div> </div>
</div>
<div className="grid md:grid-cols-3 gap-4 md:gap-8"> <div className="grid md:grid-cols-3 gap-4 md:gap-8">
{nav.map((navItem) => ( {nav.map((navItem) => (
......
This diff is collapsed.
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
.bg-blur {
backdrop-filter: blur(6px);
background-color: rgba(255, 255, 255, 0.8);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment