Skip to content

Commit

Permalink
info box about copying hexcode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagar-Sharma-7 committed Jun 24, 2023
1 parent ac0f3d1 commit 34386b8
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 1 deletion.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
<img src="./public/images/color-palette_logo.png" alt="">
</header>

<div class="info_box">
<div class="info_text">
<p>Click on palette to copy it's hex code!</p>
</div>
<button id="cross_info_btn"><i class="fa-solid fa-circle-xmark fa-shake" style="color: #b500ac;"></i></button>
</div>
<div class="left_social_box">
<a href="https://www.instagram.com/sagar._.sharma._.7/" target="_blank">
<i class="fa-brands fa-instagram" style="color: #ffffff;"></i>
Expand Down
49 changes: 49 additions & 0 deletions public/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions public/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ html {
body{
background-color: rgb(0, 0, 0);
font-family: 'Nunito', sans-serif;
overflow-x: hidden;
}

header{
Expand All @@ -63,6 +64,37 @@ header{
}
}

.info_box{
@include dimension(100vw, 100vh);
background-color: rgba(0, 0, 0, 0.9);
z-index: 99999;
position: fixed;
top: 0;
display: none !important;
@include flex(center, center);
flex-direction: column;
gap:50px;
transition: 600ms;
.info_text{
color: black;
background-color: #3eff21;
font-size: 20px;
font-weight: 600;
text-align: center;
padding: 40px;
border-radius: 10px;
}
button{
font-size: 50px;
background: transparent;
box-shadow: none;
border: none;
&:hover{
cursor: pointer;
}
}
}

.left_social_box{
background: #161616;
font-size: 20px;
Expand Down

0 comments on commit 34386b8

Please sign in to comment.