Skip to content

Commit

Permalink
fixes Jaishree2310#325: width for mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
jainaryan04 committed Oct 26, 2024
1 parent 801b88f commit 4923f40
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 14 deletions.
25 changes: 20 additions & 5 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@
@import 'tailwindcss/utilities';

@keyframes blob {
0% { transform: translate(0px, 0px) scale(1); }
33% { transform: translate(30px, -50px) scale(1.1); }
66% { transform: translate(-20px, 20px) scale(0.9); }
100% { transform: translate(0px, 0px) scale(1); }
0% {
transform: translate(0px, 0px) scale(1);
}
33% {
transform: translate(30px, -50px) scale(1.1);
}
66% {
transform: translate(-20px, 20px) scale(0.9);
}
100% {
transform: translate(0px, 0px) scale(1);
}
}

@media only screen and (max-width: 768px) {
* {
width: 100vw;
box-sizing: border-box;
}
}

.animate-blob {
Expand Down Expand Up @@ -125,4 +140,4 @@

.shine-effect:hover::before {
opacity: 1;
}
}
33 changes: 24 additions & 9 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
@tailwind components;
@tailwind utilities;

@media only screen and (max-width: 768px) {
* {
width: 100vw;
box-sizing: border-box;
}
}

/*body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
Expand All @@ -16,8 +23,8 @@ body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -27,7 +34,6 @@ body {
transition: background 0.5s ease-in-out;
}


/* Enhanced Background */
.enhanced-bg {
position: absolute;
Expand All @@ -37,13 +43,25 @@ body {
height: 100%;
overflow: hidden;
z-index: 0;
background: radial-gradient(circle at center, #1b2735, #12122a, #2a2962, #4b2f6e);
background: radial-gradient(
circle at center,
#1b2735,
#12122a,
#2a2962,
#4b2f6e
);
opacity: 0.95;
}

/* Light Theme Background */
body.light-theme .enhanced-bg {
background: radial-gradient(circle at center, #f2f6ff, #dde7f0, #bcd0e0, #93b3cc);
background: radial-gradient(
circle at center,
#f2f6ff,
#dde7f0,
#bcd0e0,
#93b3cc
);
}

/* Floating Emojis */
Expand All @@ -60,8 +78,6 @@ body.light-theme .enhanced-bg {
animation: float 10s ease-in-out infinite;
}



/* Floating Animation */
@keyframes float {
0% {
Expand Down Expand Up @@ -101,7 +117,6 @@ body.light-theme #theme-toggle {
color: #fff;
}


code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
Expand All @@ -122,7 +137,7 @@ code {
}

::-webkit-scrollbar-thumb:hover {
background-color: rgb(95, 19, 166);
background-color: rgb(95, 19, 166);
}

.glassmorphism {
Expand Down

0 comments on commit 4923f40

Please sign in to comment.