Skip to content

Commit

Permalink
Add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jan 13, 2024
1 parent 7dd795b commit c5a8078
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 9 deletions.
190 changes: 190 additions & 0 deletions src/UbuntuIndia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
import UbuntuIndiaLogo from "./UbuntuIndia.svg"

export const config = {
siteTitle: "UbuCon Asia 2024",
blog:{
rssFeedUrl:"https://blog.ubucon.asia/tags/ubucon/index.xml",
blog: {
rssFeedUrl: "https://blog.ubucon.asia/tags/ubucon/index.xml",
viewMoreUrl: "https://blog.ubucon.asia/"
},
footer: {
copyright: "© 2024-Present UbuCon Asia Committee. Ubuntu and Canonical are registered trademarks of Canonical Ltd. Unless otherwise noted, content licensed under CC BY 4.0 source code under MIT.",
contactUs: "mailto:[email protected]",
srcRepoUrl: "https://github.com/ubucon-asia/2024.ubucon.asia",
organizers: [
{ name: "Ubuntu India", logoImage: UbuntuIndiaLogo.src, link: "https://www.ubucon.asia" }
]
},
navigation: [
{
label: 'About',
Expand Down
55 changes: 49 additions & 6 deletions src/layouts/Shell.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,53 @@ import { config } from "../config";
---

<Layout title={title}>
<GlobalNavigation
logoTitle={config.siteTitle}
navItems={config.navigation}
navItemsRight={config.navigationRight}
/>
<slot />
<div class="l-site">
<GlobalNavigation
logoTitle={config.siteTitle}
navItems={config.navigation}
navItemsRight={config.navigationRight}
/>
<slot />
<footer class="l-footer--sticky p-strip--dark">
<div class="row">

{
config.footer.organizers.map((item) => (
<div class="col-small-2 col-medium-3 col-3">
<a href={item.link}>
<img
class="p-logo-section__logo"
src={item.logoImage}
alt={item.name}
/>
</a>
</div>
))
}

</div>
<nav class="row" aria-label="Footer">
<div class="has-cookie">
<p>
{config.footer.copyright}
</p>
<ul class="p-inline-list--middot">
<li class="p-inline-list__item">
<a href={config.footer.contactUs}
><small>Contact us with Email</small></a
>
</li>
<li class="p-inline-list__item">
<a href={config.footer.srcRepoUrl}
><small>See source code</small></a
>
</li>
</ul>
<span class="u-off-screen"
><a href="#">Go to the top of the page</a></span
>
</div>
</nav>
</footer>
</div>
</Layout>
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Shell from "../layouts/Shell.astro";
import BlogFeed from "../components/BlogFeed.astro";
import { config } from "../config";
import { Strip, Col, Row, List } from "@canonical/react-components";
import { Strip, Col, Row, } from "@canonical/react-components";
import uca24logo from "./logo.svg";
import logoPlaceHolder from "./logo_placeholder.svg";
---
Expand Down

0 comments on commit c5a8078

Please sign in to comment.