Compare commits
2 Commits
2fbc9a764f
...
e2f5bbbe9c
| Author | SHA1 | Date | |
|---|---|---|---|
| e2f5bbbe9c | |||
| f030da549e |
@@ -10,7 +10,7 @@ const { dayName, label, icon, temp } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="smooth-reveal-2 group flex flex-col">
|
||||
<div class="card-base w-32 md:w-40">
|
||||
<div class="card-base w-40">
|
||||
<div class="p-5 text-center">
|
||||
<span class="card-text-description block font-bold text-xs uppercase tracking-widest">
|
||||
{dayName}
|
||||
|
||||
@@ -98,7 +98,7 @@ const categories = (await directus.request(readItems('categories')))
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
<div class="col-span-full">
|
||||
<div class="col-span-full mt-8">
|
||||
<LargeCategoryCard
|
||||
title="All Posts"
|
||||
description="Here you can forgoe the organization and browse everything I've posted"
|
||||
|
||||
@@ -24,13 +24,15 @@ const { forecastDays, error } = await getFiveDayForecast(latitude, longitude, ti
|
||||
</div>
|
||||
) : (
|
||||
<div class="flex flex-wrap justify-center gap-4 lg:gap-6">
|
||||
{forecastDays.map((forecastDay) => (
|
||||
<WeatherCard
|
||||
dayName={forecastDay.dayName}
|
||||
label={forecastDay.label}
|
||||
icon={forecastDay.icon}
|
||||
temp={forecastDay.temp}
|
||||
/>
|
||||
{forecastDays.map((forecastDay, index) => (
|
||||
<div class={index === 3 ? "hidden min-[800px]:block" : index >= 4 ? "hidden min-[1100px]:block" : ""}>
|
||||
<WeatherCard
|
||||
dayName={forecastDay.dayName}
|
||||
label={forecastDay.label}
|
||||
icon={forecastDay.icon}
|
||||
temp={forecastDay.temp}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user