Skip to content

Commit

Permalink
add Topbar construct
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoowon committed Jan 24, 2022
1 parent 743b3ef commit 63ad3d2
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Intro from "./Intro/Intro";
import Topbar from "./Topbar/Topbar";
import "./App.scss"
import Skill from "./Skill/Skill";
import Portfolio from "./Portfolio/Portfolio";

function App() {
return (
Expand All @@ -10,6 +11,7 @@ function App() {
<div className="sections">
<Intro />
<Skill />
<Portfolio />
</div>
</div>
);
Expand Down
7 changes: 5 additions & 2 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

.app {
height: 100vh;
background-color: $mainColor;

.sections {
width: 100%;
height: calc(100vh - 70px);
background-color: $mainColor;
position: relative;
top: 70px;
// scroll effect type
scroll-behavior: smooth;
scroll-snap-type: y mandatory;

// scroll bar hidden
scrollbar-width: 0;
&::-webkit-scrollbar{
display: none;
}
// each section width, height size
> *{
width: 100vw;
height: calc(100vh - 70px);
Expand Down
4 changes: 2 additions & 2 deletions src/Portfolio/Portfolio.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import "./Portfolio.scss";

export default function Portfolio() {
return (
<div className="portfolio" id="portfolio">

adf
</div>
)
}
5 changes: 5 additions & 0 deletions src/Portfolio/Portfolio.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "../global.scss";

.portfolio {
background-color: $subColor4;
}
5 changes: 3 additions & 2 deletions src/Topbar/Topbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ export default function Topbar() {
<div className="topBar">
<div className="warpper">
<div className="left">
<a href="#intro">adf</a>
<a href="#intro" className="logo">kyulee</a>
</div>
<h1>hel1o</h1>
<div className="right">

<h2>this is right</h2>
</div>
</div>
</div>
Expand Down
20 changes: 19 additions & 1 deletion src/Topbar/Topbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@
.topBar {
width: 100%;
height: 70px;
background-color: $subColor1;
background-color: transparent;
color: $subColor5;
position:fixed;
top: 0;
z-index: 2;

.warpper {
padding: 10px 30px;
display: flex;
align-items: center;
justify-content: space-between;

.left{
.logo{
font-size: 40px;
font-weight: 700;
// delete hypertext style, color : same parent
text-decoration: none;
color: inherit;
}
}
}
}

0 comments on commit 63ad3d2

Please sign in to comment.