Skip to content

Commit

Permalink
Merge pull request #22 from aidan-yip/v2.0.0
Browse files Browse the repository at this point in the history
Changed style to Neumorphism
  • Loading branch information
aidan-yip authored May 23, 2024
2 parents ad174c9 + 42f85ce commit 6526b54
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 51 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

.DS_Store
public/.DS_Store
35 changes: 12 additions & 23 deletions dark_mode.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
@media (prefers-color-scheme: dark) {
#background {
background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
background-image: linear-gradient(to top, #1b7474 0%, #290753 100%);
}

.container {
background: linear-gradient(
137deg,
rgba(93, 93, 93, 0.4) 0%,
rgba(0, 0, 0, 0.4) 100%
);
border: solid 1px #515151;
box-shadow: 0px 0px 80px #eaeaea3b;
border-radius: 35px;
background: linear-gradient(145deg, #282828, #212121);
box-shadow: 13px 13px 28px #104747, -13px -13px 28px #290753;
}

.side_block {
background: linear-gradient(
137deg,
rgba(93, 93, 93, 0.6) 0%,
rgba(0, 0, 0, 0.6) 100%
);
border: solid 1px #6e6e6e;
box-shadow: 0px 0px 50px #eaeaea3b;
border-radius: 35px;
background: #252525;
box-shadow: 9px 9px 18px #131313, -9px -9px 18px #373737;
}

#inner {
background: linear-gradient(
137deg,
rgba(93, 93, 93, 0.6) 0%,
rgba(0, 0, 0, 0.6) 100%
);
border: solid 1px #6e6e6e;
box-shadow: 0px 0px 50px #eaeaea3b;
border-radius: 35px;
background: #252525;
box-shadow: 9px 9px 18px #131313, -9px -9px 18px #373737;
}

h1, #location {
h1,
#location {
color: #ffffff;
}

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h1 id="location">TODAY</h1>
</div>

<div id="side_out">
<div class="side_block">
<div class="side_block" id="block_one">
<div class="column">
<input
type="text"
Expand Down
51 changes: 25 additions & 26 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
}

body {
background-color: #0052bc;
background-color: #4183bd;
padding-top: 0px;
min-width: 375px;
}

#background {
background-image: linear-gradient(to top, #92fe9d 0%, #00c9ff 100%);
background-image: linear-gradient(to top, #b6fabd 0%, #a7ecff 100%);
background-size: cover;
background-position: center;
background-repeat: repeat;
Expand All @@ -67,15 +67,11 @@ body {
height: auto;
text-align: center;
padding: 25px;
background: linear-gradient(
328deg,
rgba(209, 209, 209, 0.4) 0%,
rgba(186, 186, 186, 0.4) 100%
);
box-shadow: 0 0 80px #0000006b;
border-radius: 35px;
border: solid 1px #f1f1f1;
margin-bottom: 10px;
border-radius: 35px;
background: #ebebeb;
box-shadow: 20px 20px 60px #b6fabd, -20px -20px 60px #a7ecff;
z-index: 1;
/* fade in */
animation: fadeInAnimation ease 5s;
animation-iteration-count: 1;
Expand All @@ -86,24 +82,21 @@ body {
#side_out {
width: 32%;
height: 100%;
margin-left: 20px;
}

.side_block {
display: flex;
justify-content: center;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
width: 100%;
height: 200px;
z-index: 2;
border-radius: 35px;
border: solid 1px #ffffff;
box-shadow: 0px 0px 20px #5b5b5b3b;
background: linear-gradient(
328deg,
rgba(255, 255, 255, 0.7) 0%,
rgba(255, 255, 255, 0.7) 100%
);
z-index: 1;
background: #ebebeb;
box-shadow: 10px 10px 20px #a5a5a5, -10px -10px 20px #ffffff;
}

#block_two {
Expand Down Expand Up @@ -150,15 +143,10 @@ iframe {
height: auto;
margin-left: auto;
margin-right: auto;
z-index: 1;
border-radius: 35px;
border: solid 1px #ffffff;
box-shadow: 0px 0px 20px #5b5b5b3b;
background: linear-gradient(
328deg,
rgba(255, 255, 255, 0.7) 0%,
rgba(255, 255, 255, 0.7) 100%
);
z-index: 0;
background: #ebebeb;
box-shadow: 10px 10px 20px #a5a5a5, -10px -10px 20px #ffffff;
}

h1,
Expand Down Expand Up @@ -322,6 +310,7 @@ a:visited {

button {
font-size: 15px;
margin-bottom: 0px;
}

#clock {
Expand All @@ -332,11 +321,21 @@ a:visited {
height: auto;
width: 100%;
margin-top: 20px;
margin-bottom: 20px;
}

#side_out {
width: 100%;
padding-top: 20px;
margin-left: 0px;
}

.side_block {
margin-bottom: 20px;
}

#block_one {
height: 180px;
}

#block_two {
Expand Down

0 comments on commit 6526b54

Please sign in to comment.