Skip to content

Commit

Permalink
Add city banner on index
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jan 14, 2024
1 parent d0d390f commit 8e73d40
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
Binary file added src/assets/jaipur.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
import UbuntuIndiaLogo from "@assets/UbuntuIndia.svg"
import JaipurPhoto from "@assets/jaipur.jpg"

export const config = {
siteTitle: "UbuCon Asia 2024",
blog: {
rssFeedUrl: "https://blog.ubucon.asia/tags/uca24/index.xml",
viewMoreUrl: "https://blog.ubucon.asia/tags/uca24"
},
cityBanner: {
title: "Let's meet in the pink city of innovation!",
description: 'Learn about the Jaipur, India the city where UbuCon Asia 2024 will be held. And plan your trip today!',
image: JaipurPhoto.src,
buttons: [
{
label: 'Venue & Safety',
url: '/venue-and-travel/venue-and-safety'
},
{
label: 'Getting to the city',
url: '/venue-and-travel/getting-to-city'
},
{
label: 'Exploring the city',
url: '/venue-and-travel/explore-city'
},
]
},
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]",
Expand Down
27 changes: 25 additions & 2 deletions 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 } from "@canonical/react-components";
import { Strip, Col, Row, Card, Button } from "@canonical/react-components";
import uca24logo from "@assets/logo.svg";
import logoPlaceHolder from "@assets/logo_placeholder.svg";
---
Expand Down Expand Up @@ -44,7 +44,7 @@ import logoPlaceHolder from "@assets/logo_placeholder.svg";
</Col>
</Row>
</Strip>
<BlogFeed/>
<BlogFeed />
<Strip bordered>
<h4>Featured speakers</h4>
<Row>
Expand Down Expand Up @@ -151,6 +151,29 @@ import logoPlaceHolder from "@assets/logo_placeholder.svg";
</Col>
</Row>
</Strip>
<section
class="p-strip--image is-light"
style={{
backgroundImage: `url('${config.cityBanner.image}') `,
backgroundSize: "cover",
backgroundPosition: "center center"
}}
>
<Row>
<Col size={6} emptyLarge={7}>
<Card title={config.cityBanner.title} overlay>
<p>{config.cityBanner.description}</p>
{
config.cityBanner.buttons.map((item) => (
<Button element="a" href={item.url}>
{item.label}
</Button>
))
}
</Card>
</Col>
</Row>
</section>
<Strip type="light">
<h2>Sponsors</h2>
<Row>
Expand Down

0 comments on commit 8e73d40

Please sign in to comment.