Skip to content

Commit

Permalink
updating the proportions
Browse files Browse the repository at this point in the history
  • Loading branch information
HarukaYamamoto0 committed Mar 27, 2024
1 parent 6039788 commit 06c6754
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions scripts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
const minWidth = 768; // Minimum width for desktop devices
const isDesktop = window.innerWidth > minWidth || screen.width > minWidth;

if (isDesktop)
alert(
"Note: This site is optimized for mobile phones only. Sorry if you have it on the computer.",
);

function getCurrentTimestamp() {
const resultButton = document.getElementById(
"result-button-get-current-timestamp",
Expand Down
8 changes: 4 additions & 4 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ header {
}

main {
padding: 20px;
padding: 10vw;
padding-top: 4vh;
display: flex;
flex-direction: column;
Expand All @@ -52,13 +52,13 @@ section {
}

h1 {
font-size: 2rem;
font-size: 1.72rem;
margin: 2%;
color: var(--text-color);
}

h2 {
font-size: 1.25rem;
font-size: 1.24rem;
color: var(--text-color);
}

Expand Down Expand Up @@ -94,7 +94,7 @@ h2 {
.divider {
width: 100%;
border-bottom: 2px solid var(--border-color);
margin: 20px 0;
margin: 4vh 0;
background-color: #151121;
}

Expand Down

0 comments on commit 06c6754

Please sign in to comment.