Skip to content

Commit e3b463a

Browse files
Remove props from homepage item, tidy a bit.
1 parent a469f6f commit e3b463a

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
<script lang="ts">
22
import * as Carousel from "@/components/ui/carousel";
3-
import { Button } from "@/components/ui/button";
43
import type { Snippet } from "svelte";
54
interface Props {
65
src: string;
76
alt?: string;
8-
title: string;
9-
action?: string;
10-
children?: Snippet;
117
}
12-
let { src, alt, title, action, children }: Props = $props();
8+
let { src, alt }: Props = $props();
139
if (alt === undefined) {
1410
console.warn("No image alt text supplied!");
1511
}
@@ -19,11 +15,4 @@
1915
<div class="w-full h-[80vh] overflow-hidden justify-center">
2016
<img {src} {alt} class="w-full h-full object-cover" />
2117
</div>
22-
<div class="sm:w-4/5 w-96">
23-
<h1>{title}</h1>
24-
{@render children?.()}
25-
<Button>
26-
{action}
27-
</Button>
28-
</div>
2918
</Carousel.Item>

src/components/Navbar.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import NavbarLink from "./NavbarLink.astro";
55
---
66
<div class="navbar bg-white p-2 h-12 shadow-md">
77
<RCLogo/>
8-
<div class="flex float-end items-center h-full">
8+
<div class="md:flex float-end items-center h-full hidden">
9+
<!-- NOTE these being hidden on small aspect rations is a dev fix to stop them messing with other layout. should fix in future. -->
910
<NavbarLink to="/about">About Us</NavbarLink>
1011
<NavbarLink to="/blog">Blog</NavbarLink>
1112
<NavbarLink to="/docs">Docs</NavbarLink>

src/components/RoboConLogo.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface Props {
66
}
77
let { clickable = true, href="/" } = Astro.props
88
---
9-
<a href={clickable ? href : ""} class="logo" >
9+
<a href={clickable ? href : ""} class="logo text-primary" >
1010
ROBOCON
1111
</a>
1212
<style>
@@ -17,9 +17,8 @@ let { clickable = true, href="/" } = Astro.props
1717
line-height: 1em;
1818
padding-left: 0.1em;
1919
padding-right:0.1em;
20-
color: var(--rc-red);
2120
text-decoration: none;
2221
text-shadow: -0.05em 0.05em black;
2322
cursor: {clickable ? "auto" : "default"};
2423
}
25-
</style>
24+
</style>

0 commit comments

Comments
 (0)