Skip to content

Commit

Permalink
FirstSection 폰트 사이즈
Browse files Browse the repository at this point in the history
  • Loading branch information
kichan05 committed Mar 11, 2024
1 parent 294633d commit 3fd09fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@ import {GlobalStyle} from "./style/GlobalStyle";
import styled, {ThemeProvider} from "styled-components";
import {Resize} from "./component/Resize";
import {Theme} from "./style/theme";
import Header from "./component/Header";
import Footer from "./component/Footer";
import UiSection from "./section/UiSection";
import React, {useEffect} from "react";
import {UiContextProvider} from "./context/UiReducer";
import Page from "./page/Page";
import {PortfolioPage} from "./page/PortfolioPage";

const Test = styled.div`
height: var(--footer-height);
background-color: #f00;
`

function App() {
useEffect(() => {
Expand Down
3 changes: 2 additions & 1 deletion src/component/Resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ export const Resize = () => {
document.documentElement.style.setProperty("--vh", `${vh}px`)
document.documentElement.style.setProperty("--vw", `${vw}px`)
}

useEffect(() => {
handleResize()
window.addEventListener("resize", handleResize)
return () => {
window.removeEventListener("resize", handleResize)
}
})
}, [])
return <div></div>
}
2 changes: 2 additions & 0 deletions src/section/FirstSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const FirstSectionStyle = styled.section`
animation-duration: 1200ms;
animation-delay: 2700ms;
animation-fill-mode: backwards;
word-break: keep-all;
}
.link {
Expand Down

0 comments on commit 3fd09fc

Please sign in to comment.