Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions src/components/Breadcrumb.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
---
import "../styles/app.css";

const { path } = Astro.props;
---

<div class="text-md breadcrumbs mb-6 text-base-content/70">
<ul>
<nav
class="text-xs uppercase tracking-widest text-base-content/50 mb-10"
aria-label="Breadcrumb"
>
<ul class="flex flex-wrap items-center gap-2">
<slot />
</ul>
</div>
</nav>

<style>
nav :global(li + li)::before {
content: "›";
margin-right: 0.5rem;
opacity: 0.5;
}
nav :global(a) {
transition: color 0.2s ease;
}
nav :global(a:hover) {
color: var(--color-primary);
}
</style>
256 changes: 157 additions & 99 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,112 +2,170 @@
import { Image } from "astro:assets";
import logo from "../assets/logo.png";

// --- Configuration: Edit URLs here ---
const facebookUrl =
"https://www.facebook.com/p/Multidisciplinary-AI-Research-Center-MARC-61566611961677/"; // e.g., https://www.facebook.com/marc.pdn
const linkedinUrl = "https://www.linkedin.com/company/multidisciplinaryai"; // e.g., https://www.linkedin.com/company/marc-pdn
const youtubeUrl = "https://www.youtube.com/@MARCUoP"; // e.g., https://www.youtube.com/@marc_pdn
"https://www.facebook.com/p/Multidisciplinary-AI-Research-Center-MARC-61566611961677/";
const linkedinUrl = "https://www.linkedin.com/company/multidisciplinaryai";
const youtubeUrl = "https://www.youtube.com/@MARCUoP";
const facultyUrl = "https://eng.pdn.ac.lk/";
// -------------------------------------

const exploreLinks = [
{ href: "/Research", label: "Research areas" },
{ href: "/projects", label: "Projects" },
{ href: "/publications", label: "Publications" },
];
const aboutLinks = [
{ href: "/people", label: "People" },
{ href: "/news", label: "News" },
{ href: facultyUrl, label: "Faculty of Engineering", external: true },
];
const year = new Date().getFullYear();
---

<footer
class="footer footer-center p-10 bg-base-200 text-base-content rounded mt-auto"
>
<nav class="grid grid-flow-col gap-6 text-sm md:text-base font-medium">
<a href="/" class="link link-hover">About</a>
<a href="/Research" class="link link-hover">Research</a>
<a href="/projects" class="link link-hover">Projects</a>
<a href="/publications" class="link link-hover">Publications</a>
<a href="/people" class="link link-hover">People</a>
<a href="/news" class="link link-hover">News</a>
</nav>
<footer class="bg-secondary text-secondary-content mt-24">
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-16">
<div class="grid grid-cols-1 md:grid-cols-12 gap-12">
<!-- Brand -->
<div class="md:col-span-5 space-y-5">
<div class="flex items-center gap-3">
<Image
src={logo}
alt="MARC logo"
class="w-12 h-12 rounded-full ring-1 ring-white/20"
/>
<div>
<div class="font-semibold text-lg">MARC</div>
<div class="text-xs opacity-70">
Multidisciplinary AI Research Centre
</div>
</div>
</div>
<p class="text-sm opacity-75 max-w-sm leading-relaxed">
A research centre at the Faculty of Engineering, University
of Peradeniya, advancing AI through interdisciplinary
collaboration in collaboration with DEEE & DMIE.
</p>

<aside class="flex flex-col items-center gap-2">
<Image
src={logo}
alt="MARC Logo"
class="w-16 h-16 mask mask-circle shadow-lg mb-2"
/>
<div class="text-center">
<p class="font-bold text-lg">
Multidisciplinary AI Research Centre (MARC)
</p>
<p class="text-sm">
<a href={facultyUrl} target="_blank" class="link link-hover"
>Faculty of Engineering</a
>, University of Peradeniya
</p>
<p class="text-xs opacity-75 mt-1">
In collaboration with DEEE & DMIE
</p>
</div>
</aside>
<div class="flex items-center gap-2 pt-2">
<a
href={linkedinUrl}
target="_blank"
rel="noopener"
aria-label="LinkedIn"
class="w-9 h-9 grid place-items-center rounded-full bg-white/5 hover:bg-white/15 transition"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
class="fill-current"
>
<path
d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"
></path>
</svg>
</a>
<a
href={youtubeUrl}
target="_blank"
rel="noopener"
aria-label="YouTube"
class="w-9 h-9 grid place-items-center rounded-full bg-white/5 hover:bg-white/15 transition"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
class="fill-current"
>
<path
d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"
></path>
</svg>
</a>
<a
href={facebookUrl}
target="_blank"
rel="noopener"
aria-label="Facebook"
class="w-9 h-9 grid place-items-center rounded-full bg-white/5 hover:bg-white/15 transition"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
class="fill-current"
>
<path
d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"
></path>
</svg>
</a>
</div>
</div>

<nav>
<div class="grid grid-flow-col gap-4">
<a
href={linkedinUrl}
target="_blank"
class="btn btn-ghost btn-square btn-sm"
aria-label="LinkedIn"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current"
>
<path
d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"
></path>
</svg>
</a>
<!-- Explore -->
<div class="md:col-span-3">
<h4 class="eyebrow mb-4 opacity-60">Explore</h4>
<ul class="space-y-3">
{
exploreLinks.map((l) => (
<li>
<a
href={l.href}
class="text-sm hover:text-primary transition-colors"
>
{l.label}
</a>
</li>
))
}
</ul>
</div>

<a
href={youtubeUrl}
target="_blank"
class="btn btn-ghost btn-square btn-sm"
aria-label="YouTube"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current"
>
<path
d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"
></path>
</svg>
</a>
<!-- About -->
<div class="md:col-span-4">
<h4 class="eyebrow mb-4 opacity-60">About</h4>
<ul class="space-y-3">
{
aboutLinks.map((l) => (
<li>
<a
href={l.href}
target={l.external ? "_blank" : undefined}
rel={l.external ? "noopener" : undefined}
class="text-sm hover:text-primary transition-colors inline-flex items-center gap-1"
>
{l.label}
{l.external && (
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-3 h-3"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M14 3h7v7m0-7L10 14m-4-4v11h11"
/>
</svg>
)}
</a>
</li>
))
}
</ul>
</div>
</div>

<a
href={facebookUrl}
target="_blank"
class="btn btn-ghost btn-square btn-sm"
aria-label="Facebook"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current"
>
<path
d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"
></path>
</svg>
</a>
<div class="mt-14 pt-8 border-t border-white/10 flex flex-col md:flex-row justify-between gap-4 text-xs opacity-60">
<p>© {year} Multidisciplinary AI Research Centre.</p>
<p>Faculty of Engineering, University of Peradeniya, Sri Lanka.</p>
</div>
</nav>
<aside>
<p>
Copyright © {new Date().getFullYear()} - Multidisciplinary AI Research
Centre
</p>
</aside>
</div>
</footer>
Loading
Loading