Skip to content

Commit 40087c0

Browse files
committed
Add shadows to HomePage
1 parent fbd977a commit 40087c0

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

src/components/content/home-page/blocks/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default function Blocks(props: {
1111
}) {
1212
return (
1313
<div className='border border-(--border-color) bg-(--comp-bg-color)
14-
rounded-lg w-full md:w-[48%] max-w-xl md:min-w-132 my-4 md:my-8 md:mr-12'>
14+
shadow-xl/20 dark:shadow-[#484848] rounded-lg
15+
w-full md:w-[48%] max-w-xl md:min-w-132 my-4 md:my-8 md:mr-12'>
1516
<h2 className='text-[1.15rem] font-bold p-2 pl-4 md:p-3 md:pl-4 border-b border-(--border-color)'>Latest Blocks</h2>
1617
{
1718
props.latestBlockData.error ?

src/components/content/home-page/node-banner.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ export default function NodeBanner(props: { className?: string }) {
228228

229229
return (
230230
<div className={`${props.className} bg-(--banner-bg-color) w-full
231+
shadow-xl/12 dark:shadow-xl/5 dark:shadow-[#484848]
231232
h-(--node-banner-height-px) -mt-(--content-y-margin)`}>
232233
{/* The following 2 spans are required to make the conditional
233234
`window.getComputedStyle()` on line 90 work properly: */}

src/components/content/home-page/stats/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export default function Stats() {
102102

103103
return (
104104
<div className='border border-(--border-color) bg-(--comp-bg-color)
105+
shadow-xl/20 dark:shadow-[#484848]
105106
rounded-lg w-full max-w-xl md:max-w-300 my-4 md:my-8 md:mr-12 py-2 md:py-0'>
106107
<div className='flex flex-col md:flex-row justify-between'>
107108
<StatCard

src/components/content/home-page/transactions/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export default function Transactions(props: {
4343
}
4444
return (
4545
<div className='border border-(--border-color) bg-(--comp-bg-color)
46-
rounded-lg w-full md:w-[48%] max-w-xl md:min-w-132 mt-4 md:mt-8 md:mr-12'>
46+
shadow-xl/20 dark:shadow-[#484848] rounded-lg
47+
w-full md:w-[48%] max-w-xl md:min-w-132 mt-4 md:mt-8 md:mr-12'>
4748
<h2 className='text-[1.15rem] font-bold p-2 pl-4 md:p-3 md:pl-4 border-b border-(--border-color)'>
4849
Latest Transactions
4950
</h2>

0 commit comments

Comments
 (0)