Skip to content

Commit

Permalink
update text styles, minor adjustment to hero layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed Jan 11, 2024
1 parent 92d05ae commit cad4ad1
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 29 deletions.
72 changes: 43 additions & 29 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,35 @@ import TitleAccent from './TitleAccent.astro';
/>
to tackle social challenges
</h1>
<Button>
<p>Registration will open February 1!</p>
<img src={stopwatchIcon.src} alt="stopwatch" />
</Button>
<span>
Stay tuned! In the meantime, follow

<a
href="https://www.instagram.com/calblueprint/"
target="_blank"
referrerpolicy="no-referrer"
>
@calblueprint
</a>

and

<a
href="https://www.instagram.com/calhacks/"
target="_blank"
referrerpolicy="no-referrer"
>
@calhacks
</a>

on Instagram for updates.
</span>
<div>
<Button variant="secondary">
<p class="btn-text">Registration will open February 1!</p>
<img src={stopwatchIcon.src} alt="stopwatch" />
</Button>
<span>
Stay tuned! In the meantime, follow

<a
href="https://www.instagram.com/calblueprint/"
target="_blank"
referrerpolicy="no-referrer"
>
@calblueprint
</a>

and

<a
href="https://www.instagram.com/calhacks/"
target="_blank"
referrerpolicy="no-referrer"
>
@calhacks
</a>

on Instagram for updates.
</span>
</div>
</section>

<style lang="scss">
Expand All @@ -54,8 +56,20 @@ import TitleAccent from './TitleAccent.astro';
text-align: center;
gap: 20px;

& > span {
padding: 0 28%;
h1 {
margin: 0.5rem 0;
}

div {
display: flex;
flex-direction: column;
width: min-content;
gap: 20px;
}
}

.btn-text {
width: max-content;
font-size: 1.25rem;
}
</style>
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
1 change: 1 addition & 0 deletions src/styles/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
html {
font-family: fonts.$sans;
background: colors.$background;
color: colors.$text;
}

* {
Expand Down

0 comments on commit cad4ad1

Please sign in to comment.