merge + remove underlines in search results
This commit is contained in:
@ -8,7 +8,7 @@ import { NewsList } from "@/components/news/NewsList";
|
|||||||
import { UpcomingEvents } from "@/components/events/UpcomingEvents";
|
import { UpcomingEvents } from "@/components/events/UpcomingEvents";
|
||||||
import { Pig } from "@/components/general/Pig";
|
import { Pig } from "@/components/general/Pig";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Icon from "@/components/general/Icon";
|
import { Icon } from "@/components/general/Icon";
|
||||||
import { SectionHeader } from "@/components/general/SectionHeader";
|
import { SectionHeader } from "@/components/general/SectionHeader";
|
||||||
|
|
||||||
const HomeFragmentDefinition = graphql(`
|
const HomeFragmentDefinition = graphql(`
|
||||||
|
@ -2,7 +2,7 @@ import { AssociationFragment } from "@/gql/graphql";
|
|||||||
import { Image } from "@/components/general/Image";
|
import { Image } from "@/components/general/Image";
|
||||||
import styles from './associationHeader.module.scss';
|
import styles from './associationHeader.module.scss';
|
||||||
import { Breadcrumb } from "../general/Breadcrumb";
|
import { Breadcrumb } from "../general/Breadcrumb";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
|
|
||||||
export const AssociationHeader = ({
|
export const AssociationHeader = ({
|
||||||
association,
|
association,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { ContactEntityBlock as ContactEntityBlockType } from "@/gql/graphql";
|
import { ContactEntityBlock as ContactEntityBlockType } from "@/gql/graphql";
|
||||||
import styles from "./contactEntityBlock.module.scss";
|
import styles from "./contactEntityBlock.module.scss";
|
||||||
import { formatNorwegianPhoneNumber, formatPhoneE164 } from "@/lib/common";
|
import { formatNorwegianPhoneNumber, formatPhoneE164 } from "@/lib/common";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
|
|
||||||
export const ContactEntityBlock = ({
|
export const ContactEntityBlock = ({
|
||||||
block,
|
block,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
import styles from "./neufAddressSectionBlock.module.scss";
|
import styles from "./neufAddressSectionBlock.module.scss";
|
||||||
|
|
||||||
export const NeufAddressSectionBlock = () => {
|
export const NeufAddressSectionBlock = () => {
|
||||||
|
@ -2,6 +2,7 @@ import { PageSectionBlock as PageSectionBlockType } from "@/gql/graphql";
|
|||||||
import styles from "./pageSection.module.scss";
|
import styles from "./pageSection.module.scss";
|
||||||
import { Blocks } from "./Blocks";
|
import { Blocks } from "./Blocks";
|
||||||
import slugify from "@sindresorhus/slugify";
|
import slugify from "@sindresorhus/slugify";
|
||||||
|
import { DecorativeIcon } from "../general/Icon";
|
||||||
|
|
||||||
export const PageSectionBlock = ({
|
export const PageSectionBlock = ({
|
||||||
block,
|
block,
|
||||||
@ -17,7 +18,9 @@ export const PageSectionBlock = ({
|
|||||||
>
|
>
|
||||||
<div className={styles.anchor} id={anchor}></div>
|
<div className={styles.anchor} id={anchor}></div>
|
||||||
<div className={styles.sectionHeader}>
|
<div className={styles.sectionHeader}>
|
||||||
<div className={styles.icon} data-icon={block.icon ?? "none"} />
|
<div className={styles.icon}>
|
||||||
|
{block.icon && <DecorativeIcon type={block.icon} />}
|
||||||
|
</div>
|
||||||
<h2>{block.title}</h2>
|
<h2>{block.title}</h2>
|
||||||
</div>
|
</div>
|
||||||
<Blocks blocks={block.body} />
|
<Blocks blocks={block.body} />
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
img {
|
img, svg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -21,7 +21,7 @@ import {
|
|||||||
parse,
|
parse,
|
||||||
} from "date-fns";
|
} from "date-fns";
|
||||||
import { unique } from "@/lib/common";
|
import { unique } from "@/lib/common";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { VenueFragment } from "@/gql/graphql";
|
import { VenueFragment } from "@/gql/graphql";
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { EventFragment } from "@/lib/event";
|
import { EventFragment } from "@/lib/event";
|
||||||
import styles from "./eventDetails.module.scss";
|
import styles from "./eventDetails.module.scss";
|
||||||
import { OrganizerList } from "./OrganizerList";
|
import { OrganizerList } from "./OrganizerList";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
import { DateList } from "./DateList";
|
import { DateList } from "./DateList";
|
||||||
|
|
||||||
function formatPrice(price: number | string): string {
|
function formatPrice(price: number | string): string {
|
||||||
|
@ -2,7 +2,7 @@ import { EventCategory, EventOrganizer } from "@/lib/event";
|
|||||||
|
|
||||||
import styles from "./eventFilter.module.scss";
|
import styles from "./eventFilter.module.scss";
|
||||||
import { VenueFragment } from "@/gql/graphql";
|
import { VenueFragment } from "@/gql/graphql";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
|
|
||||||
export const EventFilter = ({
|
export const EventFilter = ({
|
||||||
eventCategories,
|
eventCategories,
|
||||||
|
@ -2,7 +2,7 @@ import { EventFragment } from "@/lib/event";
|
|||||||
import styles from "./eventHeader.module.scss";
|
import styles from "./eventHeader.module.scss";
|
||||||
import { ImageFigure } from "@/components/general/Image";
|
import { ImageFigure } from "@/components/general/Image";
|
||||||
import { Breadcrumb } from "../general/Breadcrumb";
|
import { Breadcrumb } from "../general/Breadcrumb";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
|
|
||||||
export const EventHeader = ({ event }: { event: EventFragment }) => {
|
export const EventHeader = ({ event }: { event: EventFragment }) => {
|
||||||
// TODO: where should we show image attribution for the featured image?
|
// TODO: where should we show image attribution for the featured image?
|
||||||
|
File diff suppressed because one or more lines are too long
@ -10,3 +10,13 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.decorativeIcon {
|
||||||
|
width: var(--size-icon-large);
|
||||||
|
height: var(--size-icon-large);
|
||||||
|
|
||||||
|
svg {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
@ -2,7 +2,7 @@ import Link from "next/link";
|
|||||||
import styles from "./footer.module.scss";
|
import styles from "./footer.module.scss";
|
||||||
import { NeonChillPig } from "../general/pigs/fun/NeonChillPig";
|
import { NeonChillPig } from "../general/pigs/fun/NeonChillPig";
|
||||||
import { ToTop } from "./ToTop";
|
import { ToTop } from "./ToTop";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
import {
|
import {
|
||||||
getOpeningHours,
|
getOpeningHours,
|
||||||
getTodaysOpeningHoursForFunction,
|
getTodaysOpeningHoursForFunction,
|
||||||
|
@ -4,7 +4,7 @@ import { usePathname, useRouter } from "next/navigation";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import styles from "./header.module.scss";
|
import styles from "./header.module.scss";
|
||||||
import { Logo, LogoIcon } from "@/components/general/Logo";
|
import { Logo, LogoIcon } from "@/components/general/Logo";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
import { useInView } from "react-intersection-observer";
|
import { useInView } from "react-intersection-observer";
|
||||||
import { getSearchPath } from "@/lib/common";
|
import { getSearchPath } from "@/lib/common";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import { useInView } from "react-intersection-observer";
|
import { useInView } from "react-intersection-observer";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
|
|
||||||
export const ToTop = () => {
|
export const ToTop = () => {
|
||||||
const scrollToTop = () => {
|
const scrollToTop = () => {
|
||||||
|
@ -3,8 +3,8 @@ import { useDebouncedCallback } from "use-debounce";
|
|||||||
import { PageHeader } from "../general/PageHeader";
|
import { PageHeader } from "../general/PageHeader";
|
||||||
import { useSearchParams, usePathname, useRouter } from "next/navigation";
|
import { useSearchParams, usePathname, useRouter } from "next/navigation";
|
||||||
import { getSearchPath } from "@/lib/common";
|
import { getSearchPath } from "@/lib/common";
|
||||||
import styles from "./searchContainer.module.scss";
|
import styles from './searchContainer.module.scss';
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
export function SearchContainer({
|
export function SearchContainer({
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
.searchContainer {
|
.searchContainer {
|
||||||
max-width: var(--size-width-lead);
|
max-width: var(--size-width-lead);
|
||||||
margin: 0 auto var(--spacing-section-bottom);
|
margin: 0 auto var(--spacing-section-bottom);
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.searchField {
|
.searchField {
|
||||||
|
@ -2,7 +2,7 @@ import { VenueFragment } from "@/gql/graphql";
|
|||||||
import styles from "./venueInfo.module.scss";
|
import styles from "./venueInfo.module.scss";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Image } from "@/components/general/Image";
|
import { Image } from "@/components/general/Image";
|
||||||
import Icon from "../general/Icon";
|
import { Icon } from "../general/Icon";
|
||||||
|
|
||||||
export const VenueInfo = ({ venue }: { venue: VenueFragment }) => {
|
export const VenueInfo = ({ venue }: { venue: VenueFragment }) => {
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user