Kar 2023-05-24 18:31:25 +05:30
parent 73f027a12d
commit 2afadd318a
7 changed files with 5 additions and 97 deletions

View File

@ -5,4 +5,4 @@ RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /404
RewriteRule ^(.*) /404.html

BIN
public/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -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

View File

@ -65,6 +65,7 @@
<a href="/iqac">IQAC</a>
<a href="/naac">NAAC</a>
<a href="/ncc">NCC</a>
<a href="/nss">NSS</a>
<a href="/nirf-data">NIRF</a>
<a href="/aqar">AQAR</a>
<a href="/students-union">Student's Union</a>

View File

@ -11,8 +11,9 @@ const { title } = Astro.props;
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
<link rel="icon" href="/favicon.ico" />
<meta name="generator" content="silicon web generator" />
<title>{title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

View File

@ -1,46 +0,0 @@
---
import Layout from "../../layouts/Layout.astro"
import Header from "../../components/Header.astro"
import MainMenu from "../../components/MainMenu.astro"
import Footer from "../../components/Footer.astro"
export async function getStaticPaths() {
const response = await fetch('https://api8.siliconpin.com/items/scc22?filter[status][_eq]=published&filter[type][_eq]=documents');
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://api8.siliconpin.com/items/scc22?filter[status][_eq]=published&filter[type][_eq]=documents');
const data = await response.json();
const { id } = Astro.params;
const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id);
---
<Layout title="">
<Header />
<MainMenu />
<main>
<div class="container bg-white mx-auto mt-3 p-4">
<div v-if="isLoading">
<!-- <h2>Loading ...</h2> -->
</div>
<div>
<!-- <h2 class="text-center t-8">{data.data[idx].title}</h2> -->
<div></div>
<div >
<!-- <h2>Attachments.</h2> -->
<div>
<div class="flex flex-col place-items-center justify-center" set:html={data.data[idx].content}></div>
<a href=""></a>
</div>
</div>
</div>
</div>
</main>
<Footer />
</Layout>

View File

@ -1,35 +0,0 @@
---
import Layout from "../../layouts/Layout.astro"
import Header from "../../components/Header.astro"
import MainMenu from "../../components/MainMenu.astro"
import Footer from "../../components/Footer.astro"
import NoticeIDPage from "../../components/NoticeIDPage.vue"
---
<Layout title="">
<Header />
<MainMenu />
<NoticeIDPage client:visible />
<!-- <main>
<div class="container bg-white mx-auto mt-3 p-4">
<div>
</div>
<div>
</ul>
<h2 class="text-center t-8">{data.data[idx].title}</h2>
<div></div>
<div >
<div>
<div class="flex flex-col place-items-center justify-center" set:html={data.data[idx].content}></div>
<a href=""></a>
</div>
</div>
</div>
</div>
</main> -->
<Footer />
</Layout>