Skip to content

Commit

Permalink
added featured project component
Browse files Browse the repository at this point in the history
  • Loading branch information
jhilker98 committed Oct 11, 2023
1 parent 320979c commit 7fc9dd0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/Button.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ things to add:
*/
import type { HTMLAttributes } from "astro/types";
interface Props extends HTMLAttributes<"button"> {
theme?: "primary" | "secondary";
theme?: "primary" | "secondary" | "tertiary";
size?: "small" | "medium" | "large";
textCase?: "upper" | "lower";
}
Expand Down Expand Up @@ -47,6 +47,9 @@ const {
"bg-branding-brown hover:bg-branding-brown-600 disabled:text-branding-brown-50/95 focus:ring-branding-brown focus:hover:ring-branding-brown-600":
theme === "secondary",
},
{
"bg-neutral-700": theme === "tertiary",
},
{ "text-sm py-1 px-2 rounded-sm": size === "small" },
{ "text-base py-2 px-4 rounded": size === "medium" },
{ "text-lg py-3 px-6 rounded-lg": size === "large" },
Expand Down
11 changes: 10 additions & 1 deletion src/components/index/HeroSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,22 @@ import { SITE_META } from "@consts";
class="focus:ring focus:ring-offset-4 focus:ring-offset-branding-white dark:focus:ring-offset-branding-black focus:outline-none cursor-pointer transition duration-200 motion-reduce:duration-0 font-bold disabled:cursor-not-allowed ease-out text-white uppercase bg-branding-navy hover:bg-branding-navy-800 dark:hover:bg-branding-navy-400 disabled:text-branding-navy-200 text-base py-2 px-4 rounded inline-flex place-items-center focus:hover:ring-branding-navy-800 dark:focus:hover:ring-branding-navy-400">
Reach Out
</a>

<Button
theme="secondary"
theme="primary"
size="medium"
type="button"
@click="$refs.about.scrollIntoView()">
About Me
</Button>

<Button
theme="tertiary"
size="medium"
type="button"
@click="alert('master hacker')">
Featured Projects
</Button>
</div>
</div>
</div>

0 comments on commit 7fc9dd0

Please sign in to comment.