Skip to content

Commit 448a164

Browse files
committed
fix: 🎨 Fixes banner style
1 parent 57663f9 commit 448a164

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

src/components/velog/VelogPageTemplate.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { createContext, useContext, useState } from 'react';
22
import styled from 'styled-components';
33
import { useTheme } from '../../lib/hooks/useTheme';
4+
import { themedPalette } from '../../lib/styles/themes';
45
import PageTemplate from '../base/PageTemplate';
56

67
const VelogPageTemplateBlock = styled(PageTemplate)`
@@ -15,10 +16,8 @@ const VelogPageTemplate: React.FC<VelogPageTemplateProps> = ({ children }) => {
1516
const [showFooter, setShowFooter] = useState(false);
1617
return (
1718
<FooterContext.Provider value={setShowFooter}>
18-
<VelogPageTemplateBlock>
19-
{children}
20-
{showFooter && <GraphCDNFooter />}
21-
</VelogPageTemplateBlock>
19+
<VelogPageTemplateBlock>{children}</VelogPageTemplateBlock>
20+
{showFooter && <GraphCDNFooter />}
2221
</FooterContext.Provider>
2322
);
2423
};
@@ -43,13 +42,17 @@ function GraphCDNFooter() {
4342
}
4443

4544
const Block = styled.div`
45+
background: ${themedPalette.bg_page1};
4646
display: flex;
4747
justify-content: center;
4848
padding-top: 1rem;
4949
padding-bottom: 1rem;
5050
position: relative;
51-
z-index: 50;
51+
a {
52+
display: block;
53+
}
5254
img {
55+
display: block;
5356
width: 150px;
5457
height: auto;
5558
}

src/containers/post/HorizontalAd.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function HorizontalAd({}: Props) {
3939
data-ad-client="ca-pub-5574866530496701"
4040
data-ad-slot="8809887603"
4141
data-ad-format="auto"
42-
// data-full-width-responsive="true"
42+
data-full-width-responsive="true"
4343
/>
4444
</Wrapper>
4545
</VelogResponsive>

src/containers/post/RelatedPost.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const Title = styled.div`
8787
`;
8888

8989
const Background = styled.div`
90-
z-index: 30;
90+
z-index: 5;
9191
position: relative;
9292
padding-top: 4rem;
9393
padding-bottom: 4rem;
@@ -98,7 +98,7 @@ const Background = styled.div`
9898
}
9999
margin-top: 4rem;
100100
background: ${themedPalette.bg_page1};
101-
box-shadow: 0px 0 32px rgb(0 0 0 / 8%);
101+
box-shadow: 0px -16px 16px rgb(0 0 0 / 4%);
102102
`;
103103
const Wrapper = styled.div`
104104
width: 1376px;

src/lib/styles/zIndexes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const zIndexes = {
22
OpaqueLayer: 10,
33
AuthModal: 20,
44
Toolbar: 10,
5-
Popup: 25,
5+
Popup: 60,
66
WriteFooter: 10,
77
PublishScreen: 15,
88
DragDropUpload: 100,

0 commit comments

Comments
 (0)