Compare commits
25 Commits
51db48cf2b
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| c75595b741 | |||
| 8fd1f94629 | |||
|
|
3d1a486912 | ||
|
|
733c398be0 | ||
| 4a528ac9f4 | |||
| a9fe87c827 | |||
|
|
cc10b266be | ||
|
|
7d95d64f9e | ||
|
|
8d6bedad24 | ||
|
|
5af60161c5 | ||
|
|
98e7021d7c | ||
|
|
b99917c87f | ||
| 9a8ad821e6 | |||
| 80bf4918c0 | |||
|
|
d3d14ac03a | ||
| 7c7dab3638 | |||
|
|
90949cfa69 | ||
|
|
23338f28b4 | ||
| d6b5b00ca8 | |||
|
|
634f248962 | ||
| e4daf09489 | |||
|
|
bf1083dc11 | ||
|
|
9defecb6fa | ||
|
|
b918651d5f | ||
|
|
49c020553f |
4
.htaccess
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /
|
||||||
|
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
|
||||||
|
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
|
||||||
@@ -15,7 +15,7 @@ Inside of your Astro project, you'll see the following folders and files:
|
|||||||
```
|
```
|
||||||
/
|
/
|
||||||
├── public/
|
├── public/
|
||||||
│ └── favicon.svg
|
│ └── favicon.ico
|
||||||
├── src/
|
├── src/
|
||||||
│ ├── components/
|
│ ├── components/
|
||||||
│ │ └── Card.astro
|
│ │ └── Card.astro
|
||||||
|
|||||||
@@ -4,10 +4,11 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev --host --port 2008",
|
"dev": "astro dev --host --port 2023",
|
||||||
"start": "astro dev --host --port 2008",
|
"start": "astro dev --host --port 2023",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
|
"push": "rsync -azP dist/ barta-india@51.222.206.100:/home/barta-india/public_html",
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
1
public/ads.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
google.com, pub-9252259454702469, DIRECT, f08c47fec0942fa0
|
||||||
BIN
public/favicon.ico
Normal file
|
After Width: | Height: | Size: 142 KiB |
@@ -1,13 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 36 36">
|
|
||||||
<path fill="#000" d="M22.25 4h-8.5a1 1 0 0 0-.96.73l-5.54 19.4a.5.5 0 0 0 .62.62l5.05-1.44a2 2 0 0 0 1.38-1.4l3.22-11.66a.5.5 0 0 1 .96 0l3.22 11.67a2 2 0 0 0 1.38 1.39l5.05 1.44a.5.5 0 0 0 .62-.62l-5.54-19.4a1 1 0 0 0-.96-.73Z"/>
|
|
||||||
<path fill="url(#gradient)" d="M18 28a7.63 7.63 0 0 1-5-2c-1.4 2.1-.35 4.35.6 5.55.14.17.41.07.47-.15.44-1.8 2.93-1.22 2.93.6 0 2.28.87 3.4 1.72 3.81.34.16.59-.2.49-.56-.31-1.05-.29-2.46 1.29-3.25 3-1.5 3.17-4.83 2.5-6-.67.67-2.6 2-5 2Z"/>
|
|
||||||
<defs>
|
|
||||||
<linearGradient id="gradient" x1="16" x2="16" y1="32" y2="24" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop stop-color="#000"/>
|
|
||||||
<stop offset="1" stop-color="#000" stop-opacity="0"/>
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
<style>
|
|
||||||
@media (prefers-color-scheme:dark){:root{filter:invert(100%)}}
|
|
||||||
</style>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 873 B |
BIN
public/img/barta_logo.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
1
public/img/facebook.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg width="40px" height="40px" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <circle cx="16" cy="16" r="14" fill="url(#paint0_linear_87_7208)"></circle> <path d="M21.2137 20.2816L21.8356 16.3301H17.9452V13.767C17.9452 12.6857 18.4877 11.6311 20.2302 11.6311H22V8.26699C22 8.26699 20.3945 8 18.8603 8C15.6548 8 13.5617 9.89294 13.5617 13.3184V16.3301H10V20.2816H13.5617V29.8345C14.2767 29.944 15.0082 30 15.7534 30C16.4986 30 17.2302 29.944 17.9452 29.8345V20.2816H21.2137Z" fill="white"></path> <defs> <linearGradient id="paint0_linear_87_7208" x1="16" y1="2" x2="16" y2="29.917" gradientUnits="userSpaceOnUse"> <stop stop-color="#18ACFE"></stop> <stop offset="1" stop-color="#0163E0"></stop> </linearGradient> </defs> </g></svg>
|
||||||
|
After Width: | Height: | Size: 908 B |
1
public/img/link.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg width="45px" height="45px" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <rect x="2" y="2" width="28" height="28" rx="14" fill="#1275B1"></rect> <path d="M12.6186 9.69215C12.6186 10.6267 11.8085 11.3843 10.8093 11.3843C9.81004 11.3843 9 10.6267 9 9.69215C9 8.7576 9.81004 8 10.8093 8C11.8085 8 12.6186 8.7576 12.6186 9.69215Z" fill="white"></path> <path d="M9.24742 12.6281H12.3402V22H9.24742V12.6281Z" fill="white"></path> <path d="M17.3196 12.6281H14.2268V22H17.3196C17.3196 22 17.3196 19.0496 17.3196 17.2049C17.3196 16.0976 17.6977 14.9855 19.2062 14.9855C20.911 14.9855 20.9008 16.4345 20.8928 17.5571C20.8824 19.0244 20.9072 20.5219 20.9072 22H24V17.0537C23.9738 13.8954 23.1508 12.4401 20.4433 12.4401C18.8354 12.4401 17.8387 13.1701 17.3196 13.8305V12.6281Z" fill="white"></path> </g></svg>
|
||||||
|
After Width: | Height: | Size: 981 B |
1
public/img/whatsapp.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg width="50px" height="50px" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16 31C23.732 31 30 24.732 30 17C30 9.26801 23.732 3 16 3C8.26801 3 2 9.26801 2 17C2 19.5109 2.661 21.8674 3.81847 23.905L2 31L9.31486 29.3038C11.3014 30.3854 13.5789 31 16 31ZM16 28.8462C22.5425 28.8462 27.8462 23.5425 27.8462 17C27.8462 10.4576 22.5425 5.15385 16 5.15385C9.45755 5.15385 4.15385 10.4576 4.15385 17C4.15385 19.5261 4.9445 21.8675 6.29184 23.7902L5.23077 27.7692L9.27993 26.7569C11.1894 28.0746 13.5046 28.8462 16 28.8462Z" fill="#BFC8D0"></path> <path d="M28 16C28 22.6274 22.6274 28 16 28C13.4722 28 11.1269 27.2184 9.19266 25.8837L5.09091 26.9091L6.16576 22.8784C4.80092 20.9307 4 18.5589 4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16Z" fill="url(#paint0_linear_87_7264)"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 18.5109 2.661 20.8674 3.81847 22.905L2 30L9.31486 28.3038C11.3014 29.3854 13.5789 30 16 30ZM16 27.8462C22.5425 27.8462 27.8462 22.5425 27.8462 16C27.8462 9.45755 22.5425 4.15385 16 4.15385C9.45755 4.15385 4.15385 9.45755 4.15385 16C4.15385 18.5261 4.9445 20.8675 6.29184 22.7902L5.23077 26.7692L9.27993 25.7569C11.1894 27.0746 13.5046 27.8462 16 27.8462Z" fill="white"></path> <path d="M12.5 9.49989C12.1672 8.83131 11.6565 8.8905 11.1407 8.8905C10.2188 8.8905 8.78125 9.99478 8.78125 12.05C8.78125 13.7343 9.52345 15.578 12.0244 18.3361C14.438 20.9979 17.6094 22.3748 20.2422 22.3279C22.875 22.2811 23.4167 20.0154 23.4167 19.2503C23.4167 18.9112 23.2062 18.742 23.0613 18.696C22.1641 18.2654 20.5093 17.4631 20.1328 17.3124C19.7563 17.1617 19.5597 17.3656 19.4375 17.4765C19.0961 17.8018 18.4193 18.7608 18.1875 18.9765C17.9558 19.1922 17.6103 19.083 17.4665 19.0015C16.9374 18.7892 15.5029 18.1511 14.3595 17.0426C12.9453 15.6718 12.8623 15.2001 12.5959 14.7803C12.3828 14.4444 12.5392 14.2384 12.6172 14.1483C12.9219 13.7968 13.3426 13.254 13.5313 12.9843C13.7199 12.7145 13.5702 12.305 13.4803 12.05C13.0938 10.953 12.7663 10.0347 12.5 9.49989Z" fill="white"></path> <defs> <linearGradient id="paint0_linear_87_7264" x1="26.5" y1="7" x2="4" y2="28" gradientUnits="userSpaceOnUse"> <stop stop-color="#5BD066"></stop> <stop offset="1" stop-color="#27B43E"></stop> </linearGradient> </defs> </g></svg>
|
||||||
|
After Width: | Height: | Size: 2.5 KiB |
1
public/img/x.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" stroke="#000000" fill="#000000" viewBox="0 0 50 50" width="43px" height="43px"><path d="M 11 4 C 7.1456661 4 4 7.1456661 4 11 L 4 39 C 4 42.854334 7.1456661 46 11 46 L 39 46 C 42.854334 46 46 42.854334 46 39 L 46 11 C 46 7.1456661 42.854334 4 39 4 L 11 4 z M 11 6 L 39 6 C 41.773666 6 44 8.2263339 44 11 L 44 39 C 44 41.773666 41.773666 44 39 44 L 11 44 C 8.2263339 44 6 41.773666 6 39 L 6 11 C 6 8.2263339 8.2263339 6 11 6 z M 13.085938 13 L 22.308594 26.103516 L 13 37 L 15.5 37 L 23.4375 27.707031 L 29.976562 37 L 37.914062 37 L 27.789062 22.613281 L 36 13 L 33.5 13 L 26.660156 21.009766 L 21.023438 13 L 13.085938 13 z M 16.914062 15 L 19.978516 15 L 34.085938 35 L 31.021484 35 L 16.914062 15 z"/></svg>
|
||||||
|
After Width: | Height: | Size: 751 B |
7
robots.txt
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
User-agent: Googlebot
|
||||||
|
Disallow: /nogooglebot/
|
||||||
|
|
||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: https://barta-india.in/sitemap.xml
|
||||||
367
sitemap.xml
Normal file
@@ -0,0 +1,367 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<urlset
|
||||||
|
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
|
||||||
|
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
||||||
|
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
|
||||||
|
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:37+00:00</lastmod>
|
||||||
|
<priority>1.00</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:46+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/national/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:40+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/politics/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:42+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/local/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:43+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/technology/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:38+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/contact/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:43+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/flipkart-is-offering-the-iphone15-for-rs68999-see-how-the-deal-works/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:26+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/first-t20-ibetween-new-zealandand-pakistan-finn-allen-hits-shaheen-afridi-for-24-runs-in-an-over-setting-a-record-for-the-mos-texpensive-over-in-t20-ihistory/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:26+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/west-bengal-minister-sujit-boseshomeisraidedbythe-ed-due-to-a-municipal-jobs-fraud/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:25+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/in-advance-of-the-ayodhya-ram-mandir-consecration-ceremony-pm-modi-starts-an11-day-anushthan/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:25+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/be-at-ease-everything-will-work-out-this-is-nitish-kumar-most-recent-assurancere-garding-seat-sharingin-bihar/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:24+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/in-manipur-four-villagers-were-kidnappedand-killedby-suspected-kuki-militants-including-father-son/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:24+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/mamata-banerjee-invites-pm-modi-to-visit-ganga-sagar-mela-despite-differences/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:23+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/mamata-banerjee-rejects-one-nation-one-election-writing-to-the-kovind-led-panel-that-it/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:22+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/article/</loc>
|
||||||
|
<lastmod>2024-01-12T06:57:29+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/terms-and-conditions/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:37+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/privacy-policy/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:37+00:00</lastmod>
|
||||||
|
<priority>0.80</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:49+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/politics/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:57+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/local/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:00+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/technology/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:47+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/shuvendu-adhikari-responding-to-eds-harassment-says-start-packing-bags-keep-winter-stuff-too/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:21+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/mercury-fell-before-makar-sankranti-what-is-the-temperature-of-kolkata-now/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:21+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/india-vs-afghanistan-ind-vs-afg-1st-t20-ilive-cricket-scorecard-updates-team-indiaface-afghanistanin-mohali/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:19+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/sonu-sood-released-his-new-film-fateh-gift-which-is-a-tribute-to-cybercrime-victims/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:18+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/finance-minister-nirmala-sitharaman-is-al-lset-to-present-the-interim-budgeton-february1/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:18+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/personally-dasand-rbi-as-an-institution-are-opposed-to-private-cryptocurrencies-on-the-grounds-that-they-pose-tremendous-threat-to-the-financial-stability/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:16+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/chandigarh-jaipur-earthquake-residentsin-chandigarh-jaipur-delhi-gurugram-noida-and-surrounding-are-as-felt-mild-tremors/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:15+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/the-stamp-bear-stheyear-2024-in-vikram-samvatthe-hindu-calendar-thatis-followed-in-nepal-and-some-parts-of-india/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:14+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/watchthe29th-critics-choice-awards-liv-eon-lionsgate-playon15th-january-2023/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:14+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/raptee-energy-showcases-high-voltage-electric-motorcycle-at-global-investors-meet2024/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:13+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/high-traar-queen-whois-mallika-srinivasan-1000-cror-erevenue-company-sanswer-trailblazer-woman/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:12+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/after-galwan-china-admits-india-is-no-longer-a-weak-nation-rajnath-singh/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:12+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/flipkart-republic-day-big-deal-sale-2024-date-announced-know-the-offers-on-smartphones/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:11+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/polycab-india-shares-jump-after-cable-and-wire-craftsman-denies-tax-evasion-reports/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:10+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/government-plan-that-empower-women-making-them-economically-strong/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:10+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/kolkata-accident-audi-car-collided-with-van-allegedly-rude-behave-with-police-after-being-detained/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:09+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/tmc-mp-abhishek-banerjee-petition-to-supreme-court-against-calcutta-high-court-justices-abhijit-gangopadhyay-and-amrita-sinha-s-remarks/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:07+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/sandeep-lamichhane-nepal-cricketer-gets-8-years-in-jail-for-physical-rape-get-to-know/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:07+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/north-24-pargana-physically-challenged-youth-going-to-ayodhya-ram-mandir-on-ramlalla-pran-pratistha-event-on-bicycle/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:06+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/tmc-supremo-mamatabanerjee-caution-party-members-for-inner-battle/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:05+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/bjp-suvenduadhikari-invasion-cpm-refer-minakshi-mukherjees-candidateship-from-nadigram/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:04+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/congress-will-not-attend-ram-mandir-commencement-in-ayodhya-calls-it-bjp-rss-event/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:04+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/national/in-advance-of-the-ayodhya-ram-mandir-consecration-ceremony-pm-modi-starts-an11-day-anushthan/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:41+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/national/mamata-banerjee-invites-pm-modi-to-visit-ganga-sagar-mela-despite-differences/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:40+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/politics/be-at-ease-everything-will-work-out-this-is-nitish-kumar-most-recent-assurancere-garding-seat-sharingin-bihar/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:43+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/politics/mamata-banerjee-rejects-one-nation-one-election-writing-to-the-kovind-led-panel-that-it/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:42+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/local/in-manipur-four-villagers-were-kidnappedand-killedby-suspected-kuki-militants-including-father-son/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:45+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/technology/flipkart-is-offering-the-iphone15-for-rs68999-see-how-the-deal-works/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:39+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/article/in-manipur-four-villagers-were-kidnappedand-killedby-suspected-kuki-militants-including-father-son/</loc>
|
||||||
|
<lastmod>2024-01-12T06:57:29+00:00</lastmod>
|
||||||
|
<priority>0.64</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/finance-minister-nirmala-sitharaman-is-al-lset-to-present-the-interim-budgeton-february1/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:56+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/personally-dasand-rbi-as-an-institution-are-opposed-to-private-cryptocurrencies-on-the-grounds-that-they-pose-tremendous-threat-to-the-financial-stability/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:55+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/the-stamp-bear-stheyear-2024-in-vikram-samvatthe-hindu-calendar-thatis-followed-in-nepal-and-some-parts-of-india/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:55+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/high-traar-queen-whois-mallika-srinivasan-1000-cror-erevenue-company-sanswer-trailblazer-woman/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:54+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/after-galwan-china-admits-india-is-no-longer-a-weak-nation-rajnath-singh/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:54+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/polycab-india-shares-jump-after-cable-and-wire-craftsman-denies-tax-evasion-reports/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:53+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/government-plan-that-empower-women-making-them-economically-strong/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:52+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/sandeep-lamichhane-nepal-cricketer-gets-8-years-in-jail-for-physical-rape-get-to-know/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:51+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/north-24-pargana-physically-challenged-youth-going-to-ayodhya-ram-mandir-on-ramlalla-pran-pratistha-event-on-bicycle/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:51+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/national/congress-will-not-attend-ram-mandir-commencement-in-ayodhya-calls-it-bjp-rss-event/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:50+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/politics/shuvendu-adhikari-responding-to-eds-harassment-says-start-packing-bags-keep-winter-stuff-too/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:59+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/politics/tmc-mp-abhishek-banerjee-petition-to-supreme-court-against-calcutta-high-court-justices-abhijit-gangopadhyay-and-amrita-sinha-s-remarks/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:58+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/politics/tmc-supremo-mamatabanerjee-caution-party-members-for-inner-battle/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:58+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/politics/bjp-suvenduadhikari-invasion-cpm-refer-minakshi-mukherjees-candidateship-from-nadigram/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:57+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/local/mercury-fell-before-makar-sankranti-what-is-the-temperature-of-kolkata-now/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:02+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/local/sonu-sood-released-his-new-film-fateh-gift-which-is-a-tribute-to-cybercrime-victims/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:02+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/local/watchthe29th-critics-choice-awards-liv-eon-lionsgate-playon15th-january-2023/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:01+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/local/kolkata-accident-audi-car-collided-with-van-allegedly-rude-behave-with-police-after-being-detained/</loc>
|
||||||
|
<lastmod>2024-01-12T16:30:01+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/technology/raptee-energy-showcases-high-voltage-electric-motorcycle-at-global-investors-meet2024/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:48+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://barta-india.in/bn/technology/flipkart-republic-day-big-deal-sale-2024-date-announced-know-the-offers-on-smartphones/</loc>
|
||||||
|
<lastmod>2024-01-12T16:29:48+00:00</lastmod>
|
||||||
|
<priority>0.51</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
|
||||||
|
</urlset>
|
||||||
@@ -1,169 +1,35 @@
|
|||||||
<footer class="text-center lg:text-left bg-gray-100 text-gray-600">
|
<main>
|
||||||
<div class="flex justify-center items-center lg:justify-between p-6 border-b border-gray-300">
|
<div class="mt-20">
|
||||||
<div class="mr-12 hidden lg:block">
|
<section class="container-fluid bg-[#780a0a]">
|
||||||
<span>Get connected with us on social networks:</span>
|
<div class="container mx-auto grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-4 p-4">
|
||||||
</div>
|
<div class="flex flex-col border-2 rounded-xl p-2 justify-center">
|
||||||
<div class="flex justify-center">
|
<img class="w-[150px]" src="/img/barta_logo.png" alt="Barta Logo" />
|
||||||
<a href="#!" class="mr-6 text-gray-600">
|
<p class="text-white text-justify">Barta India (barta-india.in) is your trusted online news hub, delivering timely and reliable updates on global events. Explore breaking news, in-depth analyses, and engaging stories covering diverse topics from politics to technology. Stay well-informed with Barta India - your window to the world.</p>
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-f"
|
|
||||||
class="w-2.5" role="img" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 320 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<a href="#!" class="mr-6 text-gray-600">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter"
|
|
||||||
class="w-4" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<a href="#!" class="mr-6 text-gray-600">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="google"
|
|
||||||
class="w-3.5" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 488 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<a href="#!" class="mr-6 text-gray-600">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram"
|
|
||||||
class="w-3.5" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<a href="#!" class="mr-6 text-gray-600">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in"
|
|
||||||
class="w-3.5" role="img" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 448 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<a href="#!" class="text-gray-600">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="github"
|
|
||||||
class="w-4" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="mx-6 py-10 text-center md:text-left">
|
|
||||||
<div class="grid grid-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
|
|
||||||
<div class="">
|
|
||||||
<h6 class="
|
|
||||||
uppercase
|
|
||||||
font-semibold
|
|
||||||
mb-4
|
|
||||||
flex
|
|
||||||
items-center
|
|
||||||
justify-center
|
|
||||||
md:justify-start
|
|
||||||
">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="cubes"
|
|
||||||
class="w-4 mr-3" role="img" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 512 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
Tailwind ELEMENTS
|
|
||||||
</h6>
|
|
||||||
<p>
|
|
||||||
Here you can use rows and columns to organize your footer content. Lorem ipsum dolor
|
|
||||||
sit amet, consectetur adipisicing elit.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div class="flex flex-col border-2 rounded-xl p-2 text-white ">
|
||||||
<h6 class="uppercase font-semibold mb-4 flex justify-center md:justify-start">
|
<h2 class="text-xl font-bold border-b-2 border-white pb-2 mb-3">Category Link</h2>
|
||||||
Products
|
<div class="flex flex-col space-y-5">
|
||||||
</h6>
|
<a href="/national">National</a>
|
||||||
<p class="mb-4">
|
<a href="/politics">Politics</a>
|
||||||
<a href="#!" class="text-gray-600">Angular</a>
|
<a href="/local">Local</a>
|
||||||
</p>
|
<a href="/article">Article</a>
|
||||||
<p class="mb-4">
|
<!-- <a href="/contact">Contact</a> -->
|
||||||
<a href="#!" class="text-gray-600">React</a>
|
</div>
|
||||||
</p>
|
|
||||||
<p class="mb-4">
|
|
||||||
<a href="#!" class="text-gray-600">Vue</a>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<a href="#!" class="text-gray-600">Laravel</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div class="flex flex-col border-2 rounded-xl p-2 text-white ">
|
||||||
<h6 class="uppercase font-semibold mb-4 flex justify-center md:justify-start">
|
<h2 class="text-xl font-bold border-b-2 border-white pb-2 mb-3">Other's Link</h2>
|
||||||
Useful links
|
<div class="flex flex-col space-y-8">
|
||||||
</h6>
|
<a href="/terms-and-conditions">Terms & Conditions</a>
|
||||||
<p class="mb-4">
|
<a href="/privacy-policy">Privacy Policy</a>
|
||||||
<a href="#!" class="text-gray-600">Pricing</a>
|
<a href="/contact">Contact Us</a>
|
||||||
</p>
|
<!-- <a href="/article">Article</a> -->
|
||||||
<p class="mb-4">
|
<!-- <a href="/contact">Contact</a> -->
|
||||||
<a href="#!" class="text-gray-600">Settings</a>
|
</div>
|
||||||
</p>
|
|
||||||
<p class="mb-4">
|
|
||||||
<a href="#!" class="text-gray-600">Orders</a>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<a href="#!" class="text-gray-600">Help</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="">
|
|
||||||
<h6 class="uppercase font-semibold mb-4 flex justify-center md:justify-start">
|
|
||||||
Contact
|
|
||||||
</h6>
|
|
||||||
<p class="flex items-center justify-center md:justify-start mb-4">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="home"
|
|
||||||
class="w-4 mr-4" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
New York, NY 10012, US
|
|
||||||
</p>
|
|
||||||
<p class="flex items-center justify-center md:justify-start mb-4">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="envelope"
|
|
||||||
class="w-4 mr-4" role="img" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 512 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
info@example.com
|
|
||||||
</p>
|
|
||||||
<p class="flex items-center justify-center md:justify-start mb-4">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="phone"
|
|
||||||
class="w-4 mr-4" role="img" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 512 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
+ 01 234 567 88
|
|
||||||
</p>
|
|
||||||
<p class="flex items-center justify-center md:justify-start">
|
|
||||||
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="print"
|
|
||||||
class="w-4 mr-4" role="img" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 512 512">
|
|
||||||
<path fill="currentColor"
|
|
||||||
d="M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z">
|
|
||||||
</path>
|
|
||||||
</svg>
|
|
||||||
+ 01 234 567 89
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
|
<div class="flex bg-[#780a0a] text-white justify-center place-items-center border-t-4 border-white py-4">
|
||||||
|
<a href="https://dwd.siliconpin.com/" target="_blank">Powered by <span class="font-bold">DWD Consultancy Services</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center p-6 bg-gray-200">
|
</div>
|
||||||
<span>© 2021 Copyright:</span>
|
</main>
|
||||||
<a class="text-gray-600 font-semibold" href="https://tailwind-elements.com/">Tailwind Elements</a>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
238
src/components/MainHeader.astro
Normal file
@@ -0,0 +1,238 @@
|
|||||||
|
<main>
|
||||||
|
<div>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
<div class="hamburger">
|
||||||
|
<div class="line1"></div>
|
||||||
|
<div class="line2"></div>
|
||||||
|
<div class="line3"></div>
|
||||||
|
</div>
|
||||||
|
<ul class="nav-links">
|
||||||
|
<li><a class="text-yellow-500" href="/bn">বাংলা</a></li>
|
||||||
|
<li><a href="/">Home</a></li>
|
||||||
|
<li><a href="/national">National</a></li>
|
||||||
|
<li><a href="/politics">Politics</a></li>
|
||||||
|
<li><a href="/local">Local</a></li>
|
||||||
|
<li><a href="/technology">Technology</a></li>
|
||||||
|
<!-- <li><a href="/about-us">About</a></li> -->
|
||||||
|
<li><a href="/contact">Contact</a></li>
|
||||||
|
|
||||||
|
<!-- <li><a href="/login">Login</a></li> -->
|
||||||
|
<!-- <li><a href="/sign-up">Signup</a></li> -->
|
||||||
|
|
||||||
|
<!-- <li><button class="login-button">Login</button></li>
|
||||||
|
<li><button class="join-button">Join</button></li> -->
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<script is:inline>
|
||||||
|
const hamburger = document.querySelector(".hamburger");
|
||||||
|
const navLinks = document.querySelector(".nav-links");
|
||||||
|
const links = document.querySelectorAll(".nav-links li");
|
||||||
|
|
||||||
|
hamburger.addEventListener('click', ()=>{
|
||||||
|
//Animate Links
|
||||||
|
navLinks.classList.toggle("open");
|
||||||
|
links.forEach(link => {
|
||||||
|
link.classList.toggle("fade");
|
||||||
|
});
|
||||||
|
|
||||||
|
//Hamburger Animation
|
||||||
|
hamburger.classList.toggle("toggle");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
*{
|
||||||
|
/* margin: 0;
|
||||||
|
padding: 0; */
|
||||||
|
color: #FFFFFF;
|
||||||
|
z-index: 0;
|
||||||
|
/* font-family: sans-serif;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
font-weight: 300; */
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
nav{
|
||||||
|
height: 6rem;
|
||||||
|
width: 100vw;
|
||||||
|
top: 0px;
|
||||||
|
/* margin-bottom: 800px; */
|
||||||
|
background-color: #780a0a;
|
||||||
|
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
|
||||||
|
display: flex;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Styling logo*/
|
||||||
|
.logo{
|
||||||
|
padding:1vh 1vw;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.logo img {
|
||||||
|
height: 5rem;
|
||||||
|
width: 8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Styling Links*/
|
||||||
|
.nav-links{
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
width: 88vw;
|
||||||
|
padding: 0 0.7vw;
|
||||||
|
justify-content: right;
|
||||||
|
/* justify-content: space-evenly; */
|
||||||
|
align-items: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.nav-links li a{
|
||||||
|
text-decoration: none;
|
||||||
|
margin: 0 0.7vw;
|
||||||
|
}
|
||||||
|
.nav-links li a:hover {
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
.nav-links li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.nav-links li a::before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
height: 3px;
|
||||||
|
width: 0%;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
position: absolute;
|
||||||
|
transition: all ease-in-out 250ms;
|
||||||
|
margin: 0 0 0 10%;
|
||||||
|
}
|
||||||
|
.nav-links li a:hover::before{
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Styling Buttons*/
|
||||||
|
.login-button{
|
||||||
|
background-color: transparent;
|
||||||
|
border: 1.5px solid #f2f5f7;
|
||||||
|
border-radius: 2em;
|
||||||
|
padding: 0.6rem 0.8rem;
|
||||||
|
margin-left: 2vw;
|
||||||
|
font-size: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
}
|
||||||
|
.login-button:hover {
|
||||||
|
color: #131418;
|
||||||
|
background-color: #f2f5f7;
|
||||||
|
border:1.5px solid #f2f5f7;
|
||||||
|
transition: all ease-in-out 350ms;
|
||||||
|
}
|
||||||
|
.join-button{
|
||||||
|
color: #131418;
|
||||||
|
background-color: #61DAFB;
|
||||||
|
border: 1.5px solid #61DAFB;
|
||||||
|
border-radius: 2em;
|
||||||
|
padding: 0.6rem 0.8rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.join-button:hover {
|
||||||
|
color: #f2f5f7;
|
||||||
|
background-color: transparent;
|
||||||
|
border:1.5px solid #f2f5f7;
|
||||||
|
transition: all ease-in-out 350ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Styling Hamburger Icon*/
|
||||||
|
.hamburger div{
|
||||||
|
width: 30px;
|
||||||
|
height:3px;
|
||||||
|
background: #7c4c23;
|
||||||
|
margin: 5px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
.hamburger{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Stying for small screens*/
|
||||||
|
@media screen and (max-width: 800px){
|
||||||
|
nav{
|
||||||
|
position: fixed;
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
.hamburger{
|
||||||
|
display:block;
|
||||||
|
position: absolute;
|
||||||
|
cursor: pointer;
|
||||||
|
right: 5%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-5%, -50%);
|
||||||
|
z-index: 2;
|
||||||
|
transition: all 0.7s ease;
|
||||||
|
}
|
||||||
|
.nav-links{
|
||||||
|
position: fixed;
|
||||||
|
background: #131418;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
/* margin-left: 50%; */
|
||||||
|
flex-direction: column;
|
||||||
|
clip-path: circle(50px at 90% -20%);
|
||||||
|
-webkit-clip-path: circle(50px at 90% -10%);
|
||||||
|
transition: all 1s ease-out;
|
||||||
|
pointer-events: none;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
.nav-links.open{
|
||||||
|
clip-path: circle(1000px at 90% -10%);
|
||||||
|
-webkit-clip-path: circle(1000px at 90% -10%);
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
.nav-links li{
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(1){
|
||||||
|
transition: all 0.5s ease 0.2s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(2){
|
||||||
|
transition: all 0.5s ease 0.4s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(3){
|
||||||
|
transition: all 0.5s ease 0.6s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(4){
|
||||||
|
transition: all 0.5s ease 0.7s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(5){
|
||||||
|
transition: all 0.5s ease 0.8s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(6){
|
||||||
|
transition: all 0.5s ease 0.9s;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(7){
|
||||||
|
transition: all 0.5s ease 1s;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
li.fade{
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*Animating Hamburger Icon on Click*/
|
||||||
|
.toggle .line1{
|
||||||
|
transform: rotate(-45deg) translate(-5px,6px);
|
||||||
|
}
|
||||||
|
.toggle .line2{
|
||||||
|
transition: all 0.7s ease;
|
||||||
|
width:0;
|
||||||
|
}
|
||||||
|
.toggle .line3{
|
||||||
|
transform: rotate(45deg) translate(-5px,-6px);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,216 +0,0 @@
|
|||||||
<template>
|
|
||||||
<header>
|
|
||||||
<nav class="bg-gray-800">
|
|
||||||
<div class="mx-auto max-w-7xl px-2 sm:px-6 lg:px-8">
|
|
||||||
<div class="relative flex h-16 items-center justify-between">
|
|
||||||
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
|
|
||||||
<!-- Mobile menu button-->
|
|
||||||
<button type="button" class="inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-700 hover:text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white" aria-controls="mobile-menu" aria-expanded="false">
|
|
||||||
<span class="sr-only">Open main menu</span>
|
|
||||||
<!--
|
|
||||||
Icon when menu is closed.
|
|
||||||
|
|
||||||
Heroicon name: outline/bars-3
|
|
||||||
|
|
||||||
Menu open: "hidden", Menu closed: "block"
|
|
||||||
-->
|
|
||||||
<svg class="block h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
|
|
||||||
</svg>
|
|
||||||
<!--
|
|
||||||
Icon when menu is open.
|
|
||||||
|
|
||||||
Heroicon name: outline/x-mark
|
|
||||||
|
|
||||||
Menu open: "block", Menu closed: "hidden"
|
|
||||||
-->
|
|
||||||
<svg class="hidden h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="flex flex-1 items-center justify-center sm:items-stretch sm:justify-start">
|
|
||||||
<div class="flex flex-shrink-0 items-center">
|
|
||||||
<img class="block h-8 w-auto lg:hidden" src="https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=500" alt="Your Company">
|
|
||||||
<img class="hidden h-8 w-auto lg:block" src="https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=500" alt="Your Company">
|
|
||||||
</div>
|
|
||||||
<div class="hidden sm:ml-6 sm:block">
|
|
||||||
<div class="flex space-x-4">
|
|
||||||
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" -->
|
|
||||||
<a href="#" class="bg-gray-900 text-white px-3 py-2 rounded-md text-sm font-medium" aria-current="page">Dashboard</a>
|
|
||||||
|
|
||||||
<a href="#" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Team</a>
|
|
||||||
|
|
||||||
<a href="#" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Projects</a>
|
|
||||||
|
|
||||||
<a href="#" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Calendar</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0">
|
|
||||||
<button type="button" class="rounded-full bg-gray-800 p-1 text-gray-400 hover:text-white focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800">
|
|
||||||
<span class="sr-only">View notifications</span>
|
|
||||||
<!-- Heroicon name: outline/bell -->
|
|
||||||
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0" />
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<!-- Profile dropdown -->
|
|
||||||
<div class="relative ml-3">
|
|
||||||
<div>
|
|
||||||
<button type="button" class="flex rounded-full bg-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800" id="user-menu-button" aria-expanded="false" aria-haspopup="true">
|
|
||||||
<span class="sr-only">Open user menu</span>
|
|
||||||
<img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Dropdown menu, show/hide based on menu state.
|
|
||||||
|
|
||||||
Entering: "transition ease-out duration-100"
|
|
||||||
From: "transform opacity-0 scale-95"
|
|
||||||
To: "transform opacity-100 scale-100"
|
|
||||||
Leaving: "transition ease-in duration-75"
|
|
||||||
From: "transform opacity-100 scale-100"
|
|
||||||
To: "transform opacity-0 scale-95"
|
|
||||||
-->
|
|
||||||
<div class="absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none" role="menu" aria-orientation="vertical" aria-labelledby="user-menu-button" tabindex="-1">
|
|
||||||
<!-- Active: "bg-gray-100", Not Active: "" -->
|
|
||||||
<a href="#" class="block px-4 py-2 text-sm text-gray-700" role="menuitem" tabindex="-1" id="user-menu-item-0">Your Profile</a>
|
|
||||||
<a href="#" class="block px-4 py-2 text-sm text-gray-700" role="menuitem" tabindex="-1" id="user-menu-item-1">Settings</a>
|
|
||||||
<a href="#" class="block px-4 py-2 text-sm text-gray-700" role="menuitem" tabindex="-1" id="user-menu-item-2">Sign out</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Mobile menu, show/hide based on menu state. -->
|
|
||||||
<div class="sm:hidden" id="mobile-menu">
|
|
||||||
<div class="space-y-1 px-2 pt-2 pb-3">
|
|
||||||
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" -->
|
|
||||||
<a href="#" class="bg-gray-900 text-white block px-3 py-2 rounded-md text-base font-medium" aria-current="page">Dashboard</a>
|
|
||||||
|
|
||||||
<a href="#" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Team</a>
|
|
||||||
|
|
||||||
<a href="#" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Projects</a>
|
|
||||||
|
|
||||||
<a href="#" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Calendar</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
</header>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.navbar {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 20px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-links a {
|
|
||||||
color: #7a4211;
|
|
||||||
}
|
|
||||||
.nav-links a:hover {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
/* LOGO */
|
|
||||||
.logo {
|
|
||||||
font-size: 32px;
|
|
||||||
}
|
|
||||||
/* NAVBAR MENU */
|
|
||||||
.menu {
|
|
||||||
z-index: 999;
|
|
||||||
display: flex;
|
|
||||||
gap: 1em;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
.menu li:hover {
|
|
||||||
background-color: #3b82f6;
|
|
||||||
border-radius: 5px;
|
|
||||||
transition: 0.3s ease;
|
|
||||||
}
|
|
||||||
.menu li {
|
|
||||||
padding: 5px 14px;
|
|
||||||
}
|
|
||||||
/* DROPDOWN MENU */
|
|
||||||
.services {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.dropdown {
|
|
||||||
z-index: 999;
|
|
||||||
background-color: rgb(247, 235, 173);
|
|
||||||
padding: 1em 0;
|
|
||||||
position: absolute; /*WITH RESPECT TO PARENT*/
|
|
||||||
display: none;
|
|
||||||
border-radius: 8px;
|
|
||||||
top: 35px;
|
|
||||||
margin-left: -30px;
|
|
||||||
}
|
|
||||||
.dropdown li + li {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
.dropdown li {
|
|
||||||
padding: 0.5em 1em;
|
|
||||||
width: 8em;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.dropdown li:hover {
|
|
||||||
background-color: rgb(250, 230, 133);
|
|
||||||
color: #ff0000;
|
|
||||||
}
|
|
||||||
.services:hover .dropdown {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input[type=checkbox]{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
/*HAMBURGER MENU*/
|
|
||||||
.hamburger {
|
|
||||||
display: none;
|
|
||||||
font-size: 24px;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
/* APPLYING MEDIA QUERIES */
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.menu {
|
|
||||||
display:none;
|
|
||||||
position: absolute;
|
|
||||||
background-color:#f0f9ff;
|
|
||||||
right: 0;
|
|
||||||
left: 0;
|
|
||||||
text-align: center;
|
|
||||||
padding: 16px 0;
|
|
||||||
}
|
|
||||||
.menu li:hover {
|
|
||||||
display: inline-block;
|
|
||||||
background-color:#4c9e9e;
|
|
||||||
transition: 0.3s ease;
|
|
||||||
}
|
|
||||||
.menu li + li {
|
|
||||||
margin-top: 12px;
|
|
||||||
}
|
|
||||||
input[type=checkbox]:checked ~ .menu{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.hamburger {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.dropdown {
|
|
||||||
left: 50%;
|
|
||||||
top: 30px;
|
|
||||||
transform: translateX(35%);
|
|
||||||
}
|
|
||||||
.dropdown li:hover {
|
|
||||||
background-color: #4c9e9e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
238
src/components/MainHeaderBN.astro
Normal file
@@ -0,0 +1,238 @@
|
|||||||
|
<main>
|
||||||
|
<div>
|
||||||
|
<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="/bn"><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>
|
||||||
|
<div class="line2"></div>
|
||||||
|
<div class="line3"></div>
|
||||||
|
</div>
|
||||||
|
<ul class="nav-links">
|
||||||
|
<li><a class="text-yellow-500" href="/">English</a></li>
|
||||||
|
<li><a href="/bn">হোম</a></li>
|
||||||
|
<li><a href="/bn/national">জাতীয়</a></li>
|
||||||
|
<li><a href="/bn/politics">রাজনীতি</a></li>
|
||||||
|
<li><a href="/bn/local">স্থানীয়</a></li>
|
||||||
|
<li><a href="/bn/technology">প্রযুক্তি</a></li>
|
||||||
|
<!-- <li><a href="/about-us">About</a></li> -->
|
||||||
|
<li><a href="/contact">যোগাযোগ</a></li>
|
||||||
|
|
||||||
|
<!-- <li><a href="/login">Login</a></li> -->
|
||||||
|
<!-- <li><a href="/sign-up">Signup</a></li> -->
|
||||||
|
|
||||||
|
<!-- <li><button class="login-button">Login</button></li>
|
||||||
|
<li><button class="join-button">Join</button></li> -->
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<script is:inline>
|
||||||
|
const hamburger = document.querySelector(".hamburger");
|
||||||
|
const navLinks = document.querySelector(".nav-links");
|
||||||
|
const links = document.querySelectorAll(".nav-links li");
|
||||||
|
|
||||||
|
hamburger.addEventListener('click', ()=>{
|
||||||
|
//Animate Links
|
||||||
|
navLinks.classList.toggle("open");
|
||||||
|
links.forEach(link => {
|
||||||
|
link.classList.toggle("fade");
|
||||||
|
});
|
||||||
|
|
||||||
|
//Hamburger Animation
|
||||||
|
hamburger.classList.toggle("toggle");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
*{
|
||||||
|
/* margin: 0;
|
||||||
|
padding: 0; */
|
||||||
|
color: #FFFFFF;
|
||||||
|
z-index: 0;
|
||||||
|
/* font-family: sans-serif;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
font-weight: 300; */
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
nav{
|
||||||
|
height: 6rem;
|
||||||
|
width: 100vw;
|
||||||
|
top: 0px;
|
||||||
|
/* margin-bottom: 800px; */
|
||||||
|
background-color: #780a0a;
|
||||||
|
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
|
||||||
|
display: flex;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Styling logo*/
|
||||||
|
.logo{
|
||||||
|
padding:1vh 1vw;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.logo img {
|
||||||
|
height: 5rem;
|
||||||
|
width: 8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Styling Links*/
|
||||||
|
.nav-links{
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
width: 88vw;
|
||||||
|
padding: 0 0.7vw;
|
||||||
|
justify-content: right;
|
||||||
|
/* justify-content: space-evenly; */
|
||||||
|
align-items: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.nav-links li a{
|
||||||
|
text-decoration: none;
|
||||||
|
margin: 0 0.7vw;
|
||||||
|
}
|
||||||
|
.nav-links li a:hover {
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
.nav-links li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.nav-links li a::before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
height: 3px;
|
||||||
|
width: 0%;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
position: absolute;
|
||||||
|
transition: all ease-in-out 250ms;
|
||||||
|
margin: 0 0 0 10%;
|
||||||
|
}
|
||||||
|
.nav-links li a:hover::before{
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Styling Buttons*/
|
||||||
|
.login-button{
|
||||||
|
background-color: transparent;
|
||||||
|
border: 1.5px solid #f2f5f7;
|
||||||
|
border-radius: 2em;
|
||||||
|
padding: 0.6rem 0.8rem;
|
||||||
|
margin-left: 2vw;
|
||||||
|
font-size: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
}
|
||||||
|
.login-button:hover {
|
||||||
|
color: #131418;
|
||||||
|
background-color: #f2f5f7;
|
||||||
|
border:1.5px solid #f2f5f7;
|
||||||
|
transition: all ease-in-out 350ms;
|
||||||
|
}
|
||||||
|
.join-button{
|
||||||
|
color: #131418;
|
||||||
|
background-color: #61DAFB;
|
||||||
|
border: 1.5px solid #61DAFB;
|
||||||
|
border-radius: 2em;
|
||||||
|
padding: 0.6rem 0.8rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.join-button:hover {
|
||||||
|
color: #f2f5f7;
|
||||||
|
background-color: transparent;
|
||||||
|
border:1.5px solid #f2f5f7;
|
||||||
|
transition: all ease-in-out 350ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Styling Hamburger Icon*/
|
||||||
|
.hamburger div{
|
||||||
|
width: 30px;
|
||||||
|
height:3px;
|
||||||
|
background: #7c4c23;
|
||||||
|
margin: 5px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
.hamburger{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Stying for small screens*/
|
||||||
|
@media screen and (max-width: 800px){
|
||||||
|
nav{
|
||||||
|
position: fixed;
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
.hamburger{
|
||||||
|
display:block;
|
||||||
|
position: absolute;
|
||||||
|
cursor: pointer;
|
||||||
|
right: 5%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-5%, -50%);
|
||||||
|
z-index: 2;
|
||||||
|
transition: all 0.7s ease;
|
||||||
|
}
|
||||||
|
.nav-links{
|
||||||
|
position: fixed;
|
||||||
|
background: #131418;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
/* margin-left: 50%; */
|
||||||
|
flex-direction: column;
|
||||||
|
clip-path: circle(50px at 90% -20%);
|
||||||
|
-webkit-clip-path: circle(50px at 90% -10%);
|
||||||
|
transition: all 1s ease-out;
|
||||||
|
pointer-events: none;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
.nav-links.open{
|
||||||
|
clip-path: circle(1000px at 90% -10%);
|
||||||
|
-webkit-clip-path: circle(1000px at 90% -10%);
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
.nav-links li{
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(1){
|
||||||
|
transition: all 0.5s ease 0.2s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(2){
|
||||||
|
transition: all 0.5s ease 0.4s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(3){
|
||||||
|
transition: all 0.5s ease 0.6s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(4){
|
||||||
|
transition: all 0.5s ease 0.7s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(5){
|
||||||
|
transition: all 0.5s ease 0.8s;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(6){
|
||||||
|
transition: all 0.5s ease 0.9s;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.nav-links li:nth-child(7){
|
||||||
|
transition: all 0.5s ease 1s;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
li.fade{
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*Animating Hamburger Icon on Click*/
|
||||||
|
.toggle .line1{
|
||||||
|
transform: rotate(-45deg) translate(-5px,6px);
|
||||||
|
}
|
||||||
|
.toggle .line2{
|
||||||
|
transition: all 0.7s ease;
|
||||||
|
width:0;
|
||||||
|
}
|
||||||
|
.toggle .line3{
|
||||||
|
transform: rotate(45deg) translate(-5px,-6px);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
0
src/components/TopHeader.astro
Normal file
@@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
import MainHeader from '../components/MainHeader.astro';
|
||||||
|
import Footer from '../components/Footer.astro';
|
||||||
export interface Props {
|
export interface Props {
|
||||||
title: string;
|
title: string; metaTitle: string; description: string; ogImg: string; tiwtterCard: string; tiwtterImage: string; tiwtterTitle: string; tiwtterDesc: string; tiwtterURL: string; artPubTime: string; artUpdtTime: string; ogSiteName: string; ogType: string; ogTitle: string; ogDesc: string; ogURL: string; canonical: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title } = Astro.props;
|
const { title, metaTitle, description, ogImg, tiwtterCard, tiwtterImage, tiwtterTitle, tiwtterDesc, tiwtterURL, artPubTime, artUpdtTime, ogSiteName, ogType, ogTitle, ogDesc, ogURL, canonical} = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@@ -11,14 +13,58 @@ const { title } = Astro.props;
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/ico+xml" href="/favicon.ico" />
|
||||||
<meta name="generator" content={Astro.generator} />
|
<link rel="canonical" href={canonical} />
|
||||||
|
<meta name="generator" content="barta-india.in html generator" />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
|
<meta name="title" content={metaTitle}>
|
||||||
|
<meta name="description" content={description}>
|
||||||
|
<meta name="twitter:card" content={tiwtterCard}>
|
||||||
|
<meta name="twitter:image" itemprop="image" content={tiwtterImage}>
|
||||||
|
<meta name="twitter:title" content={tiwtterTitle}>
|
||||||
|
<meta name="twitter:description" content={tiwtterDesc}>
|
||||||
|
<meta name="twitter:url" content={tiwtterURL}>
|
||||||
|
<meta name="article:published_time" content={artPubTime}>
|
||||||
|
<meta name="article:updated_time" content={artUpdtTime}>
|
||||||
|
<link rel="shortcut icon" href="">
|
||||||
|
<meta property="og:site_name" content={ogSiteName}>
|
||||||
|
<meta property="og:type" content={ogType}>
|
||||||
|
<meta property="og:image" itemprop="image" content={ogImg}>
|
||||||
|
<meta property="og:title" content={ogTitle}>
|
||||||
|
<meta property="og:description" content={ogDesc}>
|
||||||
|
<meta property="og:url" content={ogURL}>
|
||||||
|
<meta property="og:image:width" content="526" />
|
||||||
|
<meta property="og:image:height" content="275" />
|
||||||
|
<meta name="og:image:secure_url" content={ogImg} />
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Website",
|
||||||
|
"name": "Barta India",
|
||||||
|
"url": "https://barta-india.in/",
|
||||||
|
"logo": "/img/barta_logo.png",
|
||||||
|
"contactPoint": {
|
||||||
|
"@type": "https://barta-india.in/contact/",
|
||||||
|
"contactType": "Visitor Feedback"
|
||||||
|
},
|
||||||
|
"sameAs": [
|
||||||
|
"https://www.facebook.com/bartaindia?mibextid=eHce3h",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<slot />
|
<div>
|
||||||
|
<MainHeader />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="mt-[150px]">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
<Footer />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9252259454702469" crossorigin="anonymous"></script>
|
||||||
<style is:global>
|
<style is:global>
|
||||||
/* :root {
|
/* :root {
|
||||||
--accent: 124, 58, 237;
|
--accent: 124, 58, 237;
|
||||||
|
|||||||
82
src/layouts/LayoutBN.astro
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
---
|
||||||
|
import MainHeaderBN from '../components/MainHeaderBN.astro';
|
||||||
|
import TopHeader from '../components/TopHeader.astro';
|
||||||
|
import Footer from '../components/Footer.astro';
|
||||||
|
export interface Props {
|
||||||
|
title: string; metaTitle: string; description: string; ogImg: string; tiwtterCard: string; tiwtterImage: string; tiwtterTitle: string; tiwtterDesc: string; tiwtterURL: string; artPubTime: string; artUpdtTime: string; ogSiteName: string; ogType: string; ogTitle: string; ogDesc: string; ogURL: string; canonical: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { title, metaTitle, description, ogImg, tiwtterCard, tiwtterImage, tiwtterTitle, tiwtterDesc, tiwtterURL, artPubTime, artUpdtTime, ogSiteName, ogType, ogTitle, ogDesc, ogURL, canonical} = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
|
<link rel="icon" type="image/ico+xml" href="/favicon.ico" />
|
||||||
|
<link rel="canonical" href={canonical} />
|
||||||
|
<meta name="generator" content="barta-india.in html generator" />
|
||||||
|
<title>{title}</title>
|
||||||
|
<meta name="title" content={metaTitle}>
|
||||||
|
<meta name="description" content={description}>
|
||||||
|
<meta name="twitter:card" content={tiwtterCard}>
|
||||||
|
<meta name="twitter:image" itemprop="image" content={tiwtterImage}>
|
||||||
|
<meta name="twitter:title" content={tiwtterTitle}>
|
||||||
|
<meta name="twitter:description" content={tiwtterDesc}>
|
||||||
|
<meta name="twitter:url" content={tiwtterURL}>
|
||||||
|
<meta name="article:published_time" content={artPubTime}>
|
||||||
|
<meta name="article:updated_time" content={artUpdtTime}>
|
||||||
|
<link rel="shortcut icon" href="">
|
||||||
|
<meta property="og:site_name" content={ogSiteName}>
|
||||||
|
<meta property="og:type" content={ogType}>
|
||||||
|
<meta property="og:image" itemprop="image" content={ogImg}>
|
||||||
|
<meta property="og:title" content={ogTitle}>
|
||||||
|
<meta property="og:description" content={ogDesc}>
|
||||||
|
<meta property="og:url" content={ogURL}>
|
||||||
|
<meta property="og:image:width" content="526" />
|
||||||
|
<meta property="og:image:height" content="275" />
|
||||||
|
<meta name="og:image:secure_url" content={ogImg} />
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Website",
|
||||||
|
"name": "Barta India",
|
||||||
|
"url": "https://barta-india.in/bn",
|
||||||
|
"logo": "/img/barta_logo.png",
|
||||||
|
"contactPoint": {
|
||||||
|
"@type": "https://barta-india.in/contact/",
|
||||||
|
"contactType": "Visitor Feedback"
|
||||||
|
},
|
||||||
|
"sameAs": [
|
||||||
|
"https://www.facebook.com/bartaindia?mibextid=eHce3h",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<MainHeaderBN />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="mt-[150px]">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
<Footer />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9252259454702469" crossorigin="anonymous"></script>
|
||||||
|
<style is:global>
|
||||||
|
/* :root {
|
||||||
|
--accent: 124, 58, 237;
|
||||||
|
--accent-gradient: linear-gradient(45deg, rgb(var(--accent)), #da62c4 30%, white 60%);
|
||||||
|
}
|
||||||
|
html {
|
||||||
|
font-family: system-ui, sans-serif;
|
||||||
|
background-color: #F6F6F6;
|
||||||
|
}
|
||||||
|
code {
|
||||||
|
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
||||||
|
Bitstream Vera Sans Mono, Courier New, monospace;
|
||||||
|
} */
|
||||||
|
</style>
|
||||||
68
src/pages/[id].astro
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../layouts/Layout.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<!-- title, metaTitle, description, ogImg, tiwtterCard, tiwtterImage, tiwtterTitle, tiwtterDesc, tiwtterURL, artPubTime, artUpdtTime, ogSiteName, ogType, ogTitle, ogDesc, ogURL -->
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.x.com/share?url=https://barta-india.in/${items.slug}&text=${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<script is:inline>
|
||||||
|
// let whatsAppurl = document.location.href;
|
||||||
|
// console.log(whatsAppurl);
|
||||||
|
// document.getElementById('whatsappURL').href = `whatsapp://send?text=${whatsAppurl}`;
|
||||||
|
// document.getElementById('whatsappURL').href = `whatsapp://send?text=Sample Text%20goes%20here%20-%20${whatsAppurl}`
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
61
src/pages/bn/[id].astro
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../layouts/LayoutBN.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/bn/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/bn/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/bn/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/bn/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/bn/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/bn/${items.slug}&text=Your%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/bn/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<style>
|
||||||
|
section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
72
src/pages/bn/index.astro
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../layouts/LayoutBN.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?sort=-date_created&filter[lang][_eq]=bengali');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=home_bn');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log()
|
||||||
|
---
|
||||||
|
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn`
|
||||||
|
ogSiteName=`https://barta-india.in/bn`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/bn`
|
||||||
|
canonical=`https://barta-india.in/bn`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/bn/${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video " src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} />
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/bn/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName;
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
61
src/pages/bn/local/[id].astro
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../../layouts/LayoutBN.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=local&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=local&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/local/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/bn/local/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/bn/local/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/bn/local/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/bn/local/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/bn/local/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/bn/local/${items.slug}&text=Your%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/bn/local/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<style>
|
||||||
|
section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
73
src/pages/bn/local/index.astro
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../../layouts/LayoutBN.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=local&sort=-date_created&filter[lang][_eq]=bengali');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=local_bn');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log()
|
||||||
|
---
|
||||||
|
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/local/`
|
||||||
|
ogSiteName=`https://barta-india.in/bn/local/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/bn/local/`
|
||||||
|
canonical=`https://barta-india.in/bn/local`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/bn/${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video " src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title}/>
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/bn/local/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
const pageName2 = window.location.href.split('/')[4];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName + ' > ' + pageName2;
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
61
src/pages/bn/national/[id].astro
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../../layouts/LayoutBN.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=national&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=national&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/national/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/bn/national/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/bn/national/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/bn/local/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/bn/national/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/bn/national/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/bn/national/${items.slug}&text=Your%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/bn/national/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<style>
|
||||||
|
section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
72
src/pages/bn/national/index.astro
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../../layouts/LayoutBN.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=national&sort=-date_created&filter[lang][_eq]=bengali');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=national_bn');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log()
|
||||||
|
---
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/national/`
|
||||||
|
ogSiteName=`https://barta-india.in/bn/national/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/bn/national/`
|
||||||
|
canonical=`https://barta-india.in/bn/national`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/bn/national/${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video" src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title}/>
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/bn/national/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
const pageName2 = window.location.href.split('/')[4];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName + ' > ' + pageName2;
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
61
src/pages/bn/politics/[id].astro
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../../layouts/LayoutBN.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=politics&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=politics&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/politics/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/bn/politics/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/bn/politics/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/bn/politics/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/bn/politics/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/bn/politics/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/bn/politics/${items.slug}&text=Your%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/bn/politics/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<style>
|
||||||
|
/* section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
} */
|
||||||
|
</style>
|
||||||
73
src/pages/bn/politics/index.astro
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../../layouts/LayoutBN.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=politics&sort=-date_created&filter[lang][_eq]=bengali');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=politics_bn');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log()
|
||||||
|
---
|
||||||
|
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/politics/`
|
||||||
|
ogSiteName=`https://barta-india.in/bn/politics/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/bn/politics/`
|
||||||
|
canonical=`https://barta-india.in/bn/politics`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/bn/politics/${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video " src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title}/>
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/bn/politics/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
const pageName2 = window.location.href.split('/')[4];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName + ' > ' + pageName2;
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
61
src/pages/bn/technology/[id].astro
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../../layouts/LayoutBN.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=technology&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=technology&filter[lang][_eq]=bengali');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/technology/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/bn/technology/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/bn/technology/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/bn/politics/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/bn/technology/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/bn/technology/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/bn/technology/${items.slug}&text=Your%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/bn/technology/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<style>
|
||||||
|
section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
73
src/pages/bn/technology/index.astro
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
---
|
||||||
|
import LayoutBN from '../../../layouts/LayoutBN.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=technology&sort=-date_created&filter[lang][_eq]=bengali');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=technology_bn');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log()
|
||||||
|
---
|
||||||
|
|
||||||
|
<LayoutBN title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/bn/technology/`
|
||||||
|
ogSiteName=`https://barta-india.in/bn/technology/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/bn/technology/`
|
||||||
|
canonical=`https://barta-india.in/bn/technology`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/bn/technology/${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video" src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} />
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/bn/technology/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</LayoutBN>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
const pageName2 = window.location.href.split('/')[4];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName + ' > ' + pageName2;
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
110
src/pages/contact.astro
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
---
|
||||||
|
import Layout from "../layouts/Layout.astro";
|
||||||
|
---
|
||||||
|
<Layout title="Get in Touch | Barta-India">
|
||||||
|
<main>
|
||||||
|
<div class="">
|
||||||
|
<section class="">
|
||||||
|
<div class="container mx-auto px-4 flex flex-col lg:flex-row place-content-between space-x-4">
|
||||||
|
<div class="flex flex-col justify-center w-full">
|
||||||
|
<div class="flex flex-col w-full md:mt-20">
|
||||||
|
<h1 class="text-3xl lg:text-4xl font-bold">Get in Touch with Barta News Portal</h1>
|
||||||
|
<!-- <h2 class="text-2xl md:text-3xl text-[#3084b5]">Connect with CICD Hosting: Let's Shape the Future of Your Web Presence Together</h2> -->
|
||||||
|
<h3 class="text-xl text-justify pb-4">Feel free to drop us a line at Barta</h3>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- items-center max-w-xl -->
|
||||||
|
<section class="container mx-auto px-8 md:mt-16 max-w-xl border-2 shadow-xl rounded-xl">
|
||||||
|
<!-- <div class="p-6 text-xl"> -->
|
||||||
|
<h3 class="border-b-4 border-[#780a0a] text-3xl mb-4 font-bold pt-10">Get In Touch</h3>
|
||||||
|
<form method="post" id="contactForm" class="flex flex-col ">
|
||||||
|
<div id="formSection" class="flex flex-col space-y-4 justify-center place-items-center">
|
||||||
|
<div class="flex flex-col w-full">
|
||||||
|
<label for="name">Name<span class="text-red-500">*</span></label>
|
||||||
|
<input id="name" name="name" class="border-2 rounded-md py-2 border-gray-400 focus:outline-none focus:border-2 focus:border-[#780a0a]" type="text" required/>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col w-full">
|
||||||
|
<label for="phone">phone<span class="text-red-500">*</span></label>
|
||||||
|
<input id="phone" name="phone" class="border-2 rounded-md py-2 border-gray-400 focus:outline-none focus:border-2 focus:border-[#780a0a]" type="text" required/>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col w-full">
|
||||||
|
<label for="email">email<span class="text-red-500">*</span></label>
|
||||||
|
<input id="email" name="email" class="border-2 rounded-md py-2 border-gray-400 focus:outline-none focus:border-2 focus:border-[#780a0a]" type="email" required/>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col w-full ">
|
||||||
|
<label for="message">Write your message...</label>
|
||||||
|
<textarea rows="8" id="message" name="message" class="border-2 rounded-md py-2 border-gray-400 focus:outline-none focus:border-2 focus:border-[#780a0a]"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col w-full pb-6">
|
||||||
|
<input class="bg-[#780a0a] text-white py-2 px-6 rounded-lg cursor-pointer" type="submit" value="Submit" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="thankYouSection" style="display: none;">
|
||||||
|
<p>Thank You!</p>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<!-- </div> -->
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
|
||||||
|
<script is:inline>
|
||||||
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
|
const contactForm = document.getElementById('contactForm');
|
||||||
|
const formSection = document.getElementById('formSection');
|
||||||
|
const thankYouSection = document.getElementById('thankYouSection');
|
||||||
|
const nameInput = document.getElementById('name');
|
||||||
|
const emailInput = document.getElementById('email');
|
||||||
|
const phoneInput = document.getElementById('phone');
|
||||||
|
const contentInput = document.getElementById('message');
|
||||||
|
|
||||||
|
contactForm.addEventListener('submit', async function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
let username = nameInput.value; let userPhone = phoneInput.value; let userEmail = emailInput.value; let userMsg = contentInput.value;
|
||||||
|
let formData = {
|
||||||
|
'name' : username,
|
||||||
|
'phone': userPhone,
|
||||||
|
'email' : userEmail,
|
||||||
|
'message' : userMsg
|
||||||
|
}
|
||||||
|
// fetch('https://apisp.dev2.cicdhosting.com/api/v2/storeFormData/?action=save',{
|
||||||
|
// method: 'POST',
|
||||||
|
// body: formData,
|
||||||
|
// })
|
||||||
|
// .then(response =>{
|
||||||
|
// if(response.ok){
|
||||||
|
// console.log('Form Submitted')
|
||||||
|
// formSection.style.display = 'none';
|
||||||
|
// thankYouSection.style.display = 'block';
|
||||||
|
// } else{
|
||||||
|
// console.error('an error occoured')
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
console.log("Form Data",formData, username, userPhone, userEmail, userMsg)
|
||||||
|
|
||||||
|
const url = 'https://api7.siliconpin.com/items/barta_contact';
|
||||||
|
try {
|
||||||
|
const response = await fetch(url, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type' : 'application/json'
|
||||||
|
},
|
||||||
|
body:JSON.stringify(formData),
|
||||||
|
});
|
||||||
|
if (response.ok) {
|
||||||
|
console.log('Form Submitted')
|
||||||
|
formSection.style.display = 'none';
|
||||||
|
thankYouSection.style.display = 'block';
|
||||||
|
console.log('Form data submitted successfully', response);
|
||||||
|
} else {
|
||||||
|
console.error('Failed to submit form data');
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('An error occurred:', error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -1,85 +1,68 @@
|
|||||||
---
|
---
|
||||||
import Layout from '../layouts/Layout.astro';
|
import Layout from '../layouts/Layout.astro';
|
||||||
import Card from '../components/Card.astro';
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?sort=-date_created&filter[lang][_eq]=english');
|
||||||
import MainHeader from '../components/MainHeader.vue';
|
const dataJSON = await fetchData.json();
|
||||||
import Footer from '../components/Footer.astro';
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=home_en');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// console.log(items.img)
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log() https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=home_en
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="Welcome to Astro.">
|
<Layout title={items.title}
|
||||||
<MainHeader />
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in`
|
||||||
|
ogSiteName=`https://barta-india.in/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in`
|
||||||
|
canonical=`https://barta-india.in`
|
||||||
|
>
|
||||||
<main>
|
<main>
|
||||||
<h1>Welcome to <span class="text-gradient">Astro</span></h1>
|
<section class="container mx-auto px-4">
|
||||||
<p class="instructions">
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A] my-16">Latest News</h1>
|
||||||
To get started, open the directory <code>src/pages</code> in your project.<br />
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
</p>
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
<ul role="list" class="link-card-grid">
|
<div class="flex flex-col">
|
||||||
<Card
|
<a href={`/${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
href="https://docs.astro.build/"
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
title="Documentation"
|
<img class="aspect-video " src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} />
|
||||||
body="Learn how Astro works and explore the official API docs."
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
/>
|
<p id="" set:html={items.content}></p>
|
||||||
<Card
|
</div>
|
||||||
href="https://astro.build/integrations/"
|
</div>
|
||||||
title="Integrations"
|
<div class="flex justify-end">
|
||||||
body="Supercharge your project with new frameworks and libraries."
|
<a href={`/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
/>
|
</div>
|
||||||
<Card
|
</div>
|
||||||
href="https://astro.build/themes/"
|
)}
|
||||||
title="Themes"
|
</div>
|
||||||
body="Explore a galaxy of community-built starter themes."
|
<!-- <div class="flex flex-col">
|
||||||
/>
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
<Card
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
href="https://astro.build/chat/"
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
title="Community"
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
body="Come say hi to our amazing Discord community. ❤️"
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
/>
|
</div>
|
||||||
</ul>
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
|
||||||
</Layout>
|
</Layout>
|
||||||
|
<script is:inline>
|
||||||
|
|
||||||
|
</script>
|
||||||
<style>
|
<style>
|
||||||
main {
|
|
||||||
margin: auto;
|
|
||||||
padding: 1.5rem;
|
|
||||||
max-width: 60ch;
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
font-size: 3rem;
|
|
||||||
font-weight: 800;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.text-gradient {
|
|
||||||
background-image: var(--accent-gradient);
|
|
||||||
-webkit-background-clip: text;
|
|
||||||
-webkit-text-fill-color: transparent;
|
|
||||||
background-size: 400%;
|
|
||||||
background-position: 0%;
|
|
||||||
}
|
|
||||||
.instructions {
|
|
||||||
line-height: 1.6;
|
|
||||||
margin: 1rem 0;
|
|
||||||
border: 1px solid rgba(var(--accent), 25%);
|
|
||||||
background-color: white;
|
|
||||||
padding: 1rem;
|
|
||||||
border-radius: 0.4rem;
|
|
||||||
}
|
|
||||||
.instructions code {
|
|
||||||
font-size: 0.875em;
|
|
||||||
font-weight: bold;
|
|
||||||
background: rgba(var(--accent), 12%);
|
|
||||||
color: rgb(var(--accent));
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 0.3em 0.45em;
|
|
||||||
}
|
|
||||||
.instructions strong {
|
|
||||||
color: rgb(var(--accent));
|
|
||||||
}
|
|
||||||
.link-card-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
|
|
||||||
gap: 1rem;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
61
src/pages/local/[id].astro
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=local&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=local&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/local/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/local/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/local/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/local/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/local/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/local/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/local/${items.slug}&text=Your%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/local/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<style>
|
||||||
|
section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
72
src/pages/local/index.astro
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=local&sort=-date_created&filter[lang][_eq]=english');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=local_en');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log()
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/local/`
|
||||||
|
ogSiteName=`https://barta-india.in/local/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/local/`
|
||||||
|
canonical=`https://barta-india.in/local`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/local${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video " src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} />
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/local/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
62
src/pages/national/[id].astro
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=national&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=national&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/national/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/national/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/national/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/national/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/national/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/national/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/national/${items.slug}&text=Your%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/national/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<style>
|
||||||
|
section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
72
src/pages/national/index.astro
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=national&sort=-date_created&filter[lang][_eq]=english');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=national_en');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log()
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/national/`
|
||||||
|
ogSiteName=`https://barta-india.in/national/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/national/`
|
||||||
|
canonical=`https://barta-india.in/national`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/national${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video " src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} />
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/national/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
62
src/pages/politics/[id].astro
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=politics&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=politics&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/politics/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/politics/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/politics/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/politics/${items.slug}`
|
||||||
|
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/politics/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/politics/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/politics/${items.slug}&text=Your%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/politics/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<style>
|
||||||
|
/* section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
} */
|
||||||
|
</style>
|
||||||
72
src/pages/politics/index.astro
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=politics&sort=-date_created&filter[lang][_eq]=english');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=politics_en');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log()
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/politics/`
|
||||||
|
ogSiteName=`https://barta-india.in/politics/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/politics/`
|
||||||
|
canonical=`https://barta-india.in/politics`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/politics${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video " src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} />
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/politics/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
56
src/pages/privacy-policy.astro
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
---
|
||||||
|
import Layout from "../layouts/Layout.astro";
|
||||||
|
---
|
||||||
|
<Layout title="Privacy Policy | Barta-India"
|
||||||
|
canonical=`https://barta-india.in/privacy-policy`
|
||||||
|
>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<div>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<p class="float-right font-bold">Effective Date: 11-01-2024</p>
|
||||||
|
<div class="space-y-2">
|
||||||
|
<h1>Privacy Policy for Barta India</h1>
|
||||||
|
<h2>1. Introduction</h2>
|
||||||
|
<p>Welcome to Barta India ("we," "us," or "our"). This Privacy Policy is designed to inform you that we do not collect any personal information when you visit our website, <a class="text-blue-500 font-bold" href="https://www.barta-india.in" target="_blank">https://www.barta-india.in</a>.</p>
|
||||||
|
<h3>2. Information Collection</h3>
|
||||||
|
<p>We do not collect any personal information from our users. You can visit our website and enjoy our content without providing any identifiable information.</p>
|
||||||
|
<h3>3. Cookies and Similar Technologies</h3>
|
||||||
|
<p>While we may use cookies and similar technologies for technical purposes, we do not use these to collect or store any personal information.</p>
|
||||||
|
<h3>4. Third-Party Links</h3>
|
||||||
|
<p>Our website may contain links to third-party websites. We are not responsible for the privacy practices or content of these websites. Please review their privacy policies.</p>
|
||||||
|
<h3>5. Data Security</h3>
|
||||||
|
<p>Even though we do not collect personal information, we are committed to maintaining the security of our website and ensuring that any technical information collected is secured.</p>
|
||||||
|
<h3>6. Children's Privacy</h3>
|
||||||
|
<p>Our services are not intended for individuals under the age of 13. We do not knowingly collect personal information from children.</p>
|
||||||
|
<h3>7. Changes to this Privacy Policy</h3>
|
||||||
|
<p>We reserve the right to update or modify this Privacy Policy at any time. The revised version will be effective immediately upon posting on this page.</p>
|
||||||
|
<h3>8. Contact Us</h3>
|
||||||
|
<p>If you have any questions or concerns about this Privacy Policy, please contact us at <a class="text-blue-500 font-bold" href="https://www.barta-india.in/contact">Barta-Feedback</a>.</p>
|
||||||
|
<p>By using our website, you acknowledge and agree that we do not collect any user information.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<style>
|
||||||
|
h1{
|
||||||
|
font-size: 25px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #780a0a;
|
||||||
|
}
|
||||||
|
h2{
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #780a0a;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #780a0a;
|
||||||
|
}
|
||||||
|
p{
|
||||||
|
font-size: 16px;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
61
src/pages/technology/[id].astro
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
export async function getStaticPaths() {
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=technology&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const finalData = data.data.map((n: { slug: string | undefined; })=>{
|
||||||
|
return {params: {id:n.slug}}
|
||||||
|
})
|
||||||
|
return finalData;
|
||||||
|
}
|
||||||
|
const response = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=technology&filter[lang][_eq]=english');
|
||||||
|
const data = await response.json();
|
||||||
|
const { id } = Astro.params;
|
||||||
|
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
|
||||||
|
const items = data.data[idx];
|
||||||
|
// console.log(data.data[idx])
|
||||||
|
---
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.heading}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.heading}
|
||||||
|
tiwtterURL=`https://barta-india.in/technology/${items.slug}`
|
||||||
|
artPubTime={items.date_created}
|
||||||
|
ogSiteName=`https://barta-india.in/technology/${items.slug}`
|
||||||
|
ogType='News'
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.heading}
|
||||||
|
ogURL=`https://barta-india.in/technology/${items.slug}`
|
||||||
|
canonical=`https://barta-india.in/technology/${items.slug}`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4 mt-16">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<h1 class="text-3xl font-bold border-b-4 border-[#780A0A]">{items.heading}</h1>
|
||||||
|
<h2 class="text-xl py-2">{items.title}</h2>
|
||||||
|
<div class="flex flex-col place-items-center">
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} class="md:w-[40%]" />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-row justify-center md:justify-end mt-2">
|
||||||
|
<div class="flex flex-row place-items-center p-2 shadow-lg shadow-[#780a0a] border-b-2 border-[#780a0a] rounded-b-2xl w-fit">
|
||||||
|
<p class="text-xl font-bold text-[#780a0a]">Share on: </p>
|
||||||
|
<a href=`whatsapp://send?text=${items.title}%20%0A%20https://barta-india.in/technology/${items.slug}` data-action="share/whatsapp/share"><img src="/img/whatsapp.svg" alt="WhatsApp Logo"/></a>
|
||||||
|
<a href=`https://www.facebook.com/share.php?u=https://barta-india.in/technology/${items.slug}` target="_blank"><img src="/img/facebook.svg" alt="Facebook Logo"/></a>
|
||||||
|
<a href=`http://www.twitter.com/share?url=https://barta-india.in/technology/${items.slug}&text=%20${items.title}` target="_blank"><img src="/img/x.svg" alt="Twitter/X Logo"/></a>
|
||||||
|
<a href=`https://www.linkedin.com/shareArticle?mini=true&url=https://barta-india.in/technology/${items.slug}&title=${items.title}&summary=${items.title}&source=${items.title}` onclick="window.open(this.href, 'mywin', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"><img src="/img/link.svg" alt="Linkdin Logo"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="text-justify text-red-700 mt-4" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<style>
|
||||||
|
section > div > p > p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
72
src/pages/technology/index.astro
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
---
|
||||||
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
const fetchData = await fetch('https://api7.siliconpin.com/items/barta?filter[status][_eq]=published&filter[category][_eq]=technology&sort=-date_created&filter[lang][_eq]=english');
|
||||||
|
const dataJSON = await fetchData.json();
|
||||||
|
const data = dataJSON.data;
|
||||||
|
const fetchMeta = await fetch('https://api7.siliconpin.com/items/meta_data?filter[status][_eq]=published&filter[domain][_eq]=barta&filter[pages][_eq]=technology_en');
|
||||||
|
const metaJSON = await fetchMeta.json();
|
||||||
|
const items = metaJSON.data[0];
|
||||||
|
// const imageData = data.image;
|
||||||
|
// const data = fetchDataJSON.data;
|
||||||
|
// console.log(items.img)
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout title={items.title}
|
||||||
|
metaTitle={items.title}
|
||||||
|
description={items.description}
|
||||||
|
ogImg={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterCard="summary_large_image"
|
||||||
|
tiwtterImage={`https://api7.siliconpin.com/assets/${items.img}`}
|
||||||
|
tiwtterTitle={items.title}
|
||||||
|
tiwtterDesc={items.description}
|
||||||
|
tiwtterURL=`https://barta-india.in/technology/`
|
||||||
|
ogSiteName=`https://barta-india.in/technology/`
|
||||||
|
ogType={items.og_type}
|
||||||
|
ogTitle={items.title}
|
||||||
|
ogDesc={items.description}
|
||||||
|
ogURL=`https://barta-india.in/technology/`
|
||||||
|
canonical=`https://barta-india.in/technology`
|
||||||
|
>
|
||||||
|
<main>
|
||||||
|
<section class="container mx-auto px-4">
|
||||||
|
<div class="my-16">
|
||||||
|
<span class="text-[#780a0a] font-bold" id="pageName"></span>
|
||||||
|
<h1 class="text-4xl font-bold border-b-4 border-[#780A0A]">Latest News</h1>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined; slug : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 border-[#780a0a] gap-6 p-6 place-content-between rounded-lg">
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a href={`/technology${items.slug}`} class="border-b-4 border-[#780a0a] text-2xl font-bold line-clamp-1">{items.heading}</a>
|
||||||
|
<h2 class="text-lg line-clamp-1">{items.title}</h2>
|
||||||
|
<img class="aspect-video " src={`https://api7.siliconpin.com/assets/${items.img}`} alt={items.title} />
|
||||||
|
<div class="h-[100px] overflow-y-hidden">
|
||||||
|
<p id="" set:html={items.content}></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<a href={`/technology/${items.slug}`} class="bg-[#780A0A] text-white rounded-md font-bold py-2 px-6">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<!-- <div class="flex flex-col">
|
||||||
|
{data.map((items: {heading: string | undefined; img: string | undefined; title : string | undefined; content : string | undefined;}) =>
|
||||||
|
<div class="flex flex-col border-2 gap-6 p-6">
|
||||||
|
<h1 class="border-b-4 border-[#780a0a] text-2xl font-bold">{items.heading}</h1>
|
||||||
|
<h2 class="text-lg">{items.title}</h2>
|
||||||
|
<img src={`https://api7.siliconpin.com/assets/${items.img}`} alt=""/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div> -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<script is:inline>
|
||||||
|
const pageName = window.location.href.split('/')[3];
|
||||||
|
document.getElementById('pageName').innerHTML = '> ' + pageName
|
||||||
|
// console.log(pageName)
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
54
src/pages/terms-and-conditions.astro
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
import Layout from "../layouts/Layout.astro"
|
||||||
|
---
|
||||||
|
<Layout title="Terms & Conditions | Barta-India" canonical=`https://barta-india.in/terms-and-conditions`>
|
||||||
|
<main>
|
||||||
|
<div class="mt-16">
|
||||||
|
<section class="container mx-auto px-4 ">
|
||||||
|
<!-- https://barta-india.in/ -->
|
||||||
|
<div class="space-y-2">
|
||||||
|
<h1>Terms and Conditions</h1>
|
||||||
|
<h2>Welcome to <a class="text-blue-500 font-bol" href="https://barta-india.in" target="_blank">Barta-India.in</a>. By accessing or using our Website, you agree to comply with and be bound by the following terms and conditions of use. If you do not agree with these terms, please do not use our Website.</h2>
|
||||||
|
<h3>1. Acceptance of Terms</h3>
|
||||||
|
<p>By using Barta-India.in, you agree to comply with and be bound by these terms and conditions, our Privacy Policy, and any additional terms and conditions that may apply to specific sections of the Website or to products and services available through the Website.</p>
|
||||||
|
<h3>2. Content Disclaimer</h3>
|
||||||
|
<p>The content provided on Barta-India.in is for general informational purposes only. While we strive to provide accurate and up-to-date information, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability of the information contained on the Website.</p>
|
||||||
|
<h3>3. User Conduct</h3>
|
||||||
|
<p>By using our Website, you agree not to engage in any conduct that may be considered unlawful, offensive, or otherwise objectionable. This includes but is not limited to:</p>
|
||||||
|
<p>Violating any applicable laws or regulations.</p>
|
||||||
|
<p>Infringing on the rights of others.</p>
|
||||||
|
<p>Disrupting the normal flow of dialogue or interfering with the functioning of the Website.</p>
|
||||||
|
<h3>4. Intellectual Property</h3>
|
||||||
|
<p>All content on Barta-India.in, including text, graphics, logos, images, and software, is the property of Barta India or its content suppliers and is protected by applicable copyright and trademark laws. You may not reproduce, distribute, or otherwise use any of the content without the express written permission of Barta India.</p>
|
||||||
|
<h3>5. Third-Party Links</h3>
|
||||||
|
<p>Our Website may contain links to third-party websites or services. These links are provided for your convenience, and we do not endorse the content of any third-party website. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party websites or services.</p>
|
||||||
|
<h3>6. Changes to Terms</h3>
|
||||||
|
<p>We reserve the right to modify these terms and conditions at any time without prior notice. Your continued use of the Website after any changes to these terms will signify your acceptance of those changes.</p>
|
||||||
|
<p>If you have any questions or concerns about these terms and conditions, please contact us at <a class="text-blue-500 font-bold" href="https://barta-india.in/contact" target="_blank">Barta-Feedback</a>.</p>
|
||||||
|
<p class="float-right font-bold">Last updated: 11-01-2024</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</Layout>
|
||||||
|
<style>
|
||||||
|
h1{
|
||||||
|
font-size: 25px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #780a0a;
|
||||||
|
}
|
||||||
|
h2{
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
/* color: #780a0a; */
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #780a0a;
|
||||||
|
}
|
||||||
|
p{
|
||||||
|
font-size: 16px;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
</style>
|
||||||