Move weather widget to sidebar and update gallery image links
Ensure the weather widget is displayed exclusively in the sidebar and update various image URLs within the gallery data. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: cea847a5-9a97-406c-93a6-4d8296cf7e3a Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/nFw7xof Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
1fecc39035
commit
daf7203739
BIN
attached_assets/image_1772471018106.png
Normal file
BIN
attached_assets/image_1772471018106.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 376 KiB |
@ -12,7 +12,7 @@ import { PhotoGalleryWidget } from "@/components/photo-gallery";
|
||||
import { HoroscopeWidget } from "@/components/horoscope-widget";
|
||||
import { RecipeWidget } from "@/components/recipe-widget";
|
||||
import { NewsWidget } from "@/components/news-widget";
|
||||
import { WeatherWidget, SidebarWeatherWidget } from "@/components/weather-widget";
|
||||
import { SidebarWeatherWidget } from "@/components/weather-widget";
|
||||
import { BreakingNewsWidget } from "@/components/breaking-news-widget";
|
||||
import { useState, useEffect, useCallback, useRef, useMemo } from "react";
|
||||
|
||||
@ -456,7 +456,7 @@ export default function Home() {
|
||||
const widgets = useMemo(() => {
|
||||
const w = [
|
||||
{ id: "recipe", el: <RecipeWidget key="recipe" /> },
|
||||
{ id: "horoscope-weather", el: <div key="horoscope-weather" className="flex flex-col gap-4"><HoroscopeWidget /><WeatherWidget /></div> },
|
||||
{ id: "horoscope", el: <HoroscopeWidget key="horoscope" /> },
|
||||
{ id: "gallery", el: <PhotoGalleryWidget key="gallery" /> },
|
||||
{ id: "news", el: <div key="news" className="flex flex-col gap-4"><NewsWidget /></div> },
|
||||
{ id: "breaking", el: <div key="breaking" className="flex flex-col gap-4"><BreakingNewsWidget /></div> },
|
||||
@ -548,7 +548,7 @@ export default function Home() {
|
||||
const bottomSection = useMemo(() => {
|
||||
const items: { type: "widget" | "ad"; el: JSX.Element }[] = [
|
||||
{ type: "widget", el: <NewsWidget key="bottom-news" /> },
|
||||
{ type: "widget", el: <div key="bottom-horoscope" className="flex flex-col gap-4"><HoroscopeWidget /><WeatherWidget /></div> },
|
||||
{ type: "widget", el: <HoroscopeWidget key="bottom-horoscope" /> },
|
||||
{ type: "widget", el: <BreakingNewsWidget key="bottom-breaking" /> },
|
||||
{ type: "widget", el: <RecipeWidget key="bottom-recipe" /> },
|
||||
{ type: "ad", el: <div key="ad-bottom-1"><ArticleCardAd /></div> },
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user