generated from dwd/boilarplate-astro-tailwind
last worked in weather API
parent
10e2829ced
commit
12c6a9584c
File diff suppressed because it is too large
Load Diff
|
@ -3,7 +3,7 @@
|
|||
<nav>
|
||||
<div class="logo">
|
||||
<!-- <img class="w-[50px] rounded-full drop-shadow-2xl p-0.5 animate-[spin_3s_ease]" src="/img/logo.svg" alt="" /> animate-[bounce_3s_ease] -->
|
||||
<a href="/"><img class=" border-2 rounded-md border-white shadow-md shadow-white drop-shadow-2xl " src="/img/barta_logo.png" alt="Barta Logo" /></a>
|
||||
<a href="/en"><img class=" border-2 rounded-md border-white shadow-md shadow-white drop-shadow-2xl " src="/img/barta_logo.png" alt="Barta Logo" /></a>
|
||||
</div>
|
||||
<div class="hamburger">
|
||||
<div class="line1"></div>
|
||||
|
@ -12,7 +12,7 @@
|
|||
</div>
|
||||
<ul class="nav-links">
|
||||
<li><a class="text-yellow-500" href="/bn">বাংলা</a></li>
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/en">Home</a></li>
|
||||
<li><a href="/national">National</a></li>
|
||||
<li><a href="/politics">Politics</a></li>
|
||||
<li><a href="/local">Local</a></li>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<div class="line3"></div>
|
||||
</div>
|
||||
<ul class="nav-links">
|
||||
<li><a class="text-yellow-500" href="/">English</a></li>
|
||||
<li><a class="text-yellow-500" href="/en">English</a></li>
|
||||
<li><a href="/bn">হোম</a></li>
|
||||
<li><a href="/bn/national">জাতীয়</a></li>
|
||||
<li><a href="/bn/politics">রাজনীতি</a></li>
|
||||
|
|
|
@ -14,7 +14,7 @@ import Layout from "../../layouts/Layout.astro";
|
|||
</Layout>
|
||||
<script is:inline>
|
||||
function getWeather(){
|
||||
fetch(`https://apisp.dev2.cicdhosting.com/_dedicated/dwd/runner/weather/openweathermap/`)
|
||||
fetch(`https://apisp.dev2.cicdhosting.com/_dedicated/dwd/runner/weather/openweathermap/test/`)
|
||||
.then(data => data.json())
|
||||
.then(data => {
|
||||
console.log(data)
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
async function getWeatherData(city) {
|
||||
const apiKey = 'aed8dd87581613e1d2bbbf63eeb618da';
|
||||
const apiUrl = `https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${apiKey}`;
|
||||
const apiUrl = `https://api.openweathermap.org/data/2.5/weather?q=Los%20Angeles&appid=${apiKey}`;
|
||||
|
||||
try {
|
||||
const response = await fetch(apiUrl);
|
||||
|
|
Loading…
Reference in New Issue