Skip to content

Commit

Permalink
fix: corrects styles
Browse files Browse the repository at this point in the history
  • Loading branch information
eriandev committed Jun 2, 2022
1 parent 8c87f42 commit f53d859
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
<Loading />
{:else}
<Header title={$currentWeather.locationName} date={$currentWeather.locationDate} />
<Picture animated name={$currentWeather.tempImage} class="mt-12 aspect-square" />
<Picture animated name={$currentWeather.tempImage} class="w-[324px] mt-12 mx-auto aspect-square" />
<Temperature tempDegrees={$currentWeather.tempDegrees} tempCondition={$currentWeather.tempCondition} />
{/if}
3 changes: 2 additions & 1 deletion src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
}

body {
@apply grid min-h-screen place-items-center bg-gray-100 bg-[url('/icons/bullseye.svg')] bg-center bg-cover font-manrope sm:py-4;
@apply grid min-h-screen place-items-center font-manrope bg-gray-100 bg-[url('/icons/bullseye.svg')] bg-center bg-cover md:py-4;
@apply dark:bg-black dark:bg-[url('/icons/dark-bullseye.svg')];
-webkit-tap-highlight-color: transparent;
}

svg,
Expand Down
7 changes: 4 additions & 3 deletions src/styles/components.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
@layer components {
.container {
@apply block relative h-full p-6 border-8 border-gray-50 sm:p-10 sm:pt-14 sm:h-auto sm:w-[420px] sm:aspect-[9/16] sm:rounded-[42px];
@apply block relative text-center p-6 h-full md:w-[420px] md:min-h-[796px];
@apply bg-gradient-to-t from-white via-gray-50 to-[rgb(243,244,246,0.95)];
@apply md:border-8 md:border-gray-50 md:p-10 md:pt-14 md:h-auto md:w-[420px] md:rounded-[42px];
@apply dark:from-[rgb(17,24,39,0.75)] dark:via-gray-800 dark:to-gray-900 dark:border-gray-800;
}

.container::after {
@apply content-none sm:content-[''] sm:h-[176px] sm:w-[176px] sm:rounded-full sm:absolute sm:-top-[80px] sm:-left-[88px] sm:-z-[1];
@apply content-none md:content-[''] md:h-[176px] md:w-[176px] md:rounded-full md:absolute md:-top-[80px] md:-left-[88px] md:-z-[1];
@apply bg-gradient-to-t from-white via-gray-50 to-[rgb(243,244,246,0.95)];
background: radial-gradient(circle, rgba(255,177,51,1) 0%, rgba(255,177,51,1) 50%, rgba(255,142,39,1) 100%);
}

html.dark .container::after {
@apply sm:h-[128px] sm:w-[128px] sm:top-auto sm:left-auto sm:-bottom-[40px] sm:-right-[60px];
@apply md:h-[128px] md:w-[128px] md:top-auto md:left-auto md:-bottom-[40px] md:-right-[60px];
@apply bg-gradient-to-t from-white via-gray-50 to-[rgb(243,244,246,0.95)];
background: radial-gradient(circle, rgba(147,152,219,1) 0%, rgba(147,152,219,1) 50%, rgba(110,114,201,1) 100%);
}
Expand Down

1 comment on commit f53d859

@vercel
Copy link

@vercel vercel bot commented on f53d859 Jun 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

weather-app – ./

erianvc-weather-app.vercel.app
weather-app-erianvc.vercel.app
weather-app-git-main-erianvc.vercel.app

Please sign in to comment.