From deb4ba91f5e0f04b3d1d2370f90acde2a6fac9c9 Mon Sep 17 00:00:00 2001 From: damedotblog Date: Fri, 28 Feb 2025 16:27:59 -0500 Subject: [PATCH] change shouldshow --- src/components/Navbar/Navbar.css | 11 +++++++++++ src/components/Navbar/Navbar.js | 2 +- src/components/Resources/Resources.js | 5 ++++- src/components/UserProfile/UserProfile.css | 8 ++++---- .../UserProfile/components/NarrativeCard.js | 2 +- 5 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/components/Navbar/Navbar.css b/src/components/Navbar/Navbar.css index 4902bf1..83606cb 100644 --- a/src/components/Navbar/Navbar.css +++ b/src/components/Navbar/Navbar.css @@ -317,6 +317,17 @@ padding-bottom: 10px !important; } +.nav-icon-discord { + align-items: center; + color: #004f84; + display: inline-flex; + justify-content: center; + padding: .5rem; + scale: 1.7; + padding-right: 10px; + transition: color .2s ease; +} + /* Adjust hover state for dropdown items */ .dropdown-menu li a:hover { background-color: rgba(59, 154, 248, 0.1); diff --git a/src/components/Navbar/Navbar.js b/src/components/Navbar/Navbar.js index 9f4a345..2f5c601 100644 --- a/src/components/Navbar/Navbar.js +++ b/src/components/Navbar/Navbar.js @@ -183,7 +183,7 @@ const Navbar = () => { href="https://discord.gg/95ypHb2qPE" target="_blank" rel="noopener noreferrer" - className="nav-icon" + className="nav-icon-discord" aria-label="Discord Profile" > diff --git a/src/components/Resources/Resources.js b/src/components/Resources/Resources.js index f44cab1..c8a3c5f 100644 --- a/src/components/Resources/Resources.js +++ b/src/components/Resources/Resources.js @@ -294,7 +294,10 @@ const filteredResources = useMemo(() => { }, [filteredResources, activeCategory, categories]); // Should show featured section only when All category is selected and search query is empty - const shouldShowFeatured = activeCategory === 'All' && searchQuery.trim() === ''; + const shouldShowFeatured = activeCategory === 'All' && + searchQuery.trim() === '' && + !showNewOnly && + !showScoreImpactOnly; // Handle search input change const handleSearchChange = (e) => { diff --git a/src/components/UserProfile/UserProfile.css b/src/components/UserProfile/UserProfile.css index 5ac6a3b..c99d78e 100644 --- a/src/components/UserProfile/UserProfile.css +++ b/src/components/UserProfile/UserProfile.css @@ -362,10 +362,6 @@ tspan { opacity: 0.5; } -.narrative-methodology-link { - font-size: 0.9em; -} - .post-type-card .recharts-surface { margin-left: -15px; } @@ -497,6 +493,10 @@ tspan { max-width: 400px; } +.learn-more-text { + font-size: 0.9em +} + .score-breakdown-container .disclaimer { margin-left: 3px; } diff --git a/src/components/UserProfile/components/NarrativeCard.js b/src/components/UserProfile/components/NarrativeCard.js index d795ac6..ceb4348 100644 --- a/src/components/UserProfile/components/NarrativeCard.js +++ b/src/components/UserProfile/components/NarrativeCard.js @@ -19,7 +19,7 @@ const NarrativeCard = () => { {narrative2 &&

{narrative2}

} {narrative3 &&

{narrative3}

} -

Learn more about the scoring methodology and key terms/definitions contained in this summary. Then check out the resources page to take action!

+

Learn more about the scoring methodology and key terms/definitions contained in this summary. Then check out the resources page to take action!

NOTE: This summary was not generated using AI.

-- 2.51.2