Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit ff1c5c1

Browse files
committed
unified search ui for world map and position detail page. containts overwriting of some nice paras of position detail (trend) page, up for discussion what to keep now
1 parent df40f1e commit ff1c5c1

4 files changed

Lines changed: 801 additions & 279 deletions

File tree

frontend/src/components/shared/SearchForm.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const SearchForm = ({
1414
onAuthorClick,
1515
onInstitutionClick,
1616
loading,
17-
darkMode = false
17+
darkMode = false,
18+
description = "Enter keywords and apply filters to find relevant research"
1819
}) => {
1920
const labelStyle = {
2021
fontWeight: 700,
@@ -72,7 +73,7 @@ const SearchForm = ({
7273
marginBottom: 12,
7374
paddingLeft: 2
7475
}}>
75-
Enter keywords and apply filters to find relevant research
76+
{description}
7677
</div>
7778
<input
7879
type="text"

frontend/src/components/shared/SearchHeader.jsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import React from "react";
22

3-
const SearchHeader = ({ darkMode = false }) => (
3+
const SearchHeader = ({
4+
darkMode = false,
5+
title = "Publication Search",
6+
subtitle = "Search and filter through millions of research publications"
7+
}) => (
48
<div style={{ maxWidth: 900, margin: '0 auto', textAlign: 'left', paddingLeft: 2 }}>
59
<h1 style={{
610
color: '#4F6AF6',
@@ -9,15 +13,17 @@ const SearchHeader = ({ darkMode = false }) => (
913
marginBottom: '0.5rem',
1014
lineHeight: 1.1
1115
}}>
12-
Publication Search
16+
{title}
1317
</h1>
14-
<p style={{
15-
color: darkMode ? '#ccc' : '#555',
16-
fontSize: '1.2rem',
17-
marginBottom: 32
18-
}}>
19-
Search and filter through millions of research publications
20-
</p>
18+
{subtitle && (
19+
<p style={{
20+
color: darkMode ? '#ccc' : '#555',
21+
fontSize: '1.2rem',
22+
marginBottom: 32
23+
}}>
24+
{subtitle}
25+
</p>
26+
)}
2127
</div>
2228
);
2329

0 commit comments

Comments
 (0)