Skip to content

Commit f420dd9

Browse files
author
Predrag
authored
Address feedback for community stats (#13)
* Address feedback for tables and naming * Add nav shadow
1 parent 6d50006 commit f420dd9

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

src/components/common/Navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const Navigation = ({ navClass, children, isDark }) => {
165165
className="text-midnight-900 text-center font-semibold inline-block w-full px-6 lg:px-5 py-4 lg:py-2 lg:border border-b border-midnight-50 lg:rounded-lg lg:bg-[rgba(30,30,105,0.04)] group-hover:bg-[#0505580f] group-active:bg-[#132e891c]"
166166
href="https://datacebo.com/contact"
167167
>
168-
Contact us
168+
Contact Us
169169
</a>
170170
</li>
171171
)}

src/components/community-stats/SdvCoreSection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function SdvCoreSection({ dependenciesData }) {
2424
setTableColDimensions(
2525
isMobile
2626
? "minmax(134px, 199px) minmax(136px, 488px)"
27-
: "minmax(1px, 199px) minmax(136px, 488px) minmax(136px, 488px)"
27+
: "minmax(134px, 199px) minmax(136px, 488px) minmax(136px, 488px)"
2828
);
2929
}, [isMobile]);
3030

src/components/community-stats/SdvInNumbersSection.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function SdvInNumbersSection({ data }) {
1414
const metricKeys = ["toDate", "yearToDate"];
1515
const metricLabels = ["To date", currentYear];
1616
const [tableColDimensions, setTableColDimensions] = useState(
17-
"minmax(199px, 199px) minmax(136px, 488px) minmax(136px, 488px)"
17+
"minmax(199px, 199px) minmax(130px, 488px) minmax(136px, 488px)"
1818
);
1919
const width = useWindowWidth();
2020
const isMobile = width < 768;
@@ -25,8 +25,8 @@ export default function SdvInNumbersSection({ data }) {
2525
useEffect(() => {
2626
setTableColDimensions(
2727
isMobile
28-
? "minmax(199px, 199px) minmax(136px, 488px)"
29-
: "minmax(199px, 199px) minmax(136px, 488px) minmax(136px, 488px)"
28+
? "minmax(199px, 199px) minmax(130px, 488px)"
29+
: "minmax(199px, 199px) minmax(130px, 488px) minmax(136px, 488px)"
3030
);
3131
}, [isMobile]);
3232

src/styles/navbar.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,22 @@
2222

2323
&.white-start {
2424
background-color: white;
25+
--tw-shadow: 0px 4px 6px -2px rgba(0, 0, 54, 0.06),
26+
0px 10px 15px -3px rgba(0, 0, 54, 0.1);
27+
--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color),
28+
0px 10px 15px -3px var(--tw-shadow-color);
29+
background-color: #fff;
30+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
31+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2532
.nav-bg-white & {
2633
transition: all 400ms ease-in-out;
27-
box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.05);
34+
--tw-shadow: 0px 4px 6px -2px rgba(0, 0, 54, 0.06),
35+
0px 10px 15px -3px rgba(0, 0, 54, 0.1);
36+
--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color),
37+
0px 10px 15px -3px var(--tw-shadow-color);
38+
background-color: #fff;
39+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
40+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
2841
background-color: white;
2942
}
3043
.white-logo {

0 commit comments

Comments
 (0)