Skip to content

Commit 0ef1b12

Browse files
authored
Merge pull request #169 from bitcoinsearch/staging
Staging to Prod (Boss banner Addition)
2 parents 9c5f1b9 + c6495f8 commit 0ef1b12

4 files changed

Lines changed: 6 additions & 20 deletions

File tree

src/components/Banner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const BossBanner = () => {
55
<div className={`w-full bg-bdp-background sticky top-0`}>
66
<Banner
77
headingText="Start your career in bitcoin open source —"
8-
linkText="APPLY TODAY"
9-
linkTo="https://learning.chaincode.com/#BOSS"
8+
linkText="APPLY TO THE ₿OSS CHALLENGE TODAY"
9+
linkTo="https://bosschallenge.xyz/"
1010
hasBoss
1111
styles={{
1212
container: "data-[has-heading='true']:h-auto",

src/components/customResults/Result.tsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import FilterTags from "../filterTag/FilterTags";
44
import sanitizeHtml from "sanitize-html";
55
import { Parser } from "html-to-react";
66
import { getDomainFavicon, getDomainName } from "@/config/mapping-helper";
7-
import { TruncateLengthInChar, TruncateLinkInChar } from "@/config/config";
7+
import { TruncateLengthInChar } from "@/config/config";
88
import { EsSearchResult } from "@/types";
99
import DateIcon from "../svgs/DateIcon";
1010
import ResultFavicon from "./ResultFavicon";
@@ -65,11 +65,6 @@ const Result = ({ result }: ResultProps) => {
6565

6666
const sanitizedBody = sanitizeHtml(getBodyData(result)).trim();
6767

68-
const strippedUrl = mappedUrl.replace(/^(https?:\/\/)/i, "");
69-
const truncatedUrl =
70-
strippedUrl.length > TruncateLinkInChar
71-
? strippedUrl.substring(0, TruncateLinkInChar) + "..."
72-
: strippedUrl;
7368
const truncatedBody =
7469
sanitizedBody.length > TruncateLengthInChar
7570
? sanitizedBody.substring(0, TruncateLengthInChar) + " ..."
@@ -122,17 +117,6 @@ const Result = ({ result }: ResultProps) => {
122117
>
123118
{siteName}
124119
</a>
125-
<div className="hidden lg:block w-[2px] h-[2px] lg:w-[6px] lg:h-[6px] rounded-full text-custom-secondary-text bg-custom-black" />
126-
<a
127-
target="_blank"
128-
className="text-[12px] lg:text-base leading-none"
129-
href={onlyDomainPath ? tldrUrl : mappedUrl}
130-
data-umami-event="URL Clicked"
131-
data-umami-event-src={mappedUrl}
132-
ref={linkRef}
133-
>
134-
{truncatedUrl}
135-
</a>
136120
</div>
137121
</div>
138122
<div className="font-mona pointer-events-none flex flex-col gap-2 lg:gap-5 ">

src/components/footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const Footer = () => {
156156
We&apos;d love to hear your feedback on this project
157157
</p>
158158
<a
159-
href="https://cryptpad.fr/form/#/2/form/view/3P2CsohsHOkcH7C+WdtX0-tvqjBHqXnAmz5D9yx0e04/"
159+
href="https://forms.gle/aLtBMjAeLZiKCFxn8"
160160
target="_blank"
161161
className="font-semibold text-white focus:outline-none px-3 py-3 md:py-4 md:px-6 bg-custom-primary-text rounded-xl dark:text-black"
162162
>

src/components/navBar/NavBar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import useSearchQuery from "@/hooks/useSearchQuery";
1212
import { removeMarkdownCharacters } from "@/utils/elastic-search-ui-functions";
1313
import { useTheme } from "@/context/Theme";
1414
import { Tooltip } from "@chakra-ui/react";
15+
import BossBanner from "../Banner";
1516

1617
function ThemeSwitcher() {
1718
const { theme, toggleTheme } = useTheme();
@@ -132,6 +133,7 @@ const NavBar = () => {
132133
hiddenHomeFacet ? "bg-custom-hover-state shadow-md" : ""
133134
}`}
134135
>
136+
{!hiddenHomeFacet && <BossBanner />}
135137
<div
136138
className={`flex items-center justify-between p-3 md:p-5 2xl:p-7 w-full max-w-[1920px] m-auto ${
137139
!hiddenHomeFacet ? "flex-row-reverse" : ""

0 commit comments

Comments
 (0)