Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Jun 16, 2024
1 parent 8199ccd commit ccee100
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
28 changes: 20 additions & 8 deletions src/components/Button.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
const { title, variant = "primary", href } = Astro.props;
const { title, variant = "primary", href, target } = Astro.props;
---

<a
class=`unset mt-2 mb-2 mx-auto c_Button c_Button--${variant} c_Button--size-normal`
href={href}
target={target}
>
<span class="c_Button__inner">{title}</span>
</a>
Expand All @@ -29,11 +30,12 @@ const { title, variant = "primary", href } = Astro.props;
border: 0;
background: linear-gradient(
180deg,
rgba(0, 0, 0,0.4),
rgba(0, 0, 0, 0.4),
var(--background-color, rgb(255, 255, 255))
),
var(--accent-color);
box-shadow: 0 -2px 3px rgb(229, 229, 229),
box-shadow:
0 -2px 3px rgb(229, 229, 229),
0 2px 3px 3px var(--background-color, rgb(255, 255, 255)),
0 0 25px rgba(0, 0, 0, 0.1),
0 -10px 5px var(--background-color, rgb(255, 255, 255)) inset;
Expand Down Expand Up @@ -107,7 +109,10 @@ const { title, variant = "primary", href } = Astro.props;
content: "";
box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.1);
display: block;
transition: transform 0.3s, box-shadow 0.3s, background 0.1s 0.2s;
transition:
transform 0.3s,
box-shadow 0.3s,
background 0.1s 0.2s;
}

.c_Button__inner {
Expand All @@ -119,7 +124,10 @@ const { title, variant = "primary", href } = Astro.props;
border-radius: inherit;
display: grid;
place-content: center;
transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
transition:
transform 0.3s,
background 0.3s,
box-shadow 0.3s;
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none;
Expand All @@ -135,18 +143,22 @@ const { title, variant = "primary", href } = Astro.props;
.c_Button:active::before {
background: linear-gradient(0deg, rgba(0, 0, 0, 0.09), rgba(0, 0, 0, 0.16)),
var(--accent-color);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.6) inset,
box-shadow:
0 0 3px rgba(0, 0, 0, 0.6) inset,
0 2px 1px -1px rgba(0, 0, 0, 0.1);
transform: scale(0.97);
transition: all 0.1s, background 0.05s;
transition:
all 0.1s,
background 0.05s;
}

.c_Button:active .c_Button__inner {
transform: scale(0.97);
background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
var(--accent-color);
transition: all 0.1s;
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2) inset,
box-shadow:
0 5px 5px rgba(0, 0, 0, 0.2) inset,
0 -3px 3px rgba(255, 255, 255, 0.2) inset;
}
</style>
2 changes: 1 addition & 1 deletion src/components/DarkModeToggle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<style>
.light {
transform: translateX(0.25rem);
background-color: rgb(var(--color-primary-yellow));
background-color: #ff5a55;
}
.dark {
transform: translateX(1.5rem);
Expand Down
9 changes: 7 additions & 2 deletions src/components/content/BigPicture.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ import TeamBoundaries from "../teamBoundaries.astro";
---

<h2
class="font-bold text-text-heading text-2xl md:text-3xl pt-4 mb-12 w-fit overflow-hidden"
class="font-bold text-text-heading text-2xl md:text-3xl pt-4 pb-2 w-fit overflow-hidden"
id="boundaries"
>
Big picture / Team responsabilities
Team Boundaries
</h2>
<p class="mb-8">
The three teams and their missions and responsibilities inside the Tractor
Store.
</p>

<div class="teams mb-12">
<div class="team explore">
Expand Down
3 changes: 2 additions & 1 deletion src/components/content/Similarities.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import detailpage from "../../../public/images/detailpage.jpg";
<strong>Team boundaries</strong>
<p>
The webshop is divided into three systems. Each owned by a dedicated
team.
team. The border placement is not important as long as the teams stay
resposible for their features. <a href="#boundaries">Read more.</a>
</p>
</div>
<i class="counter left boundaries"></i>
Expand Down
2 changes: 1 addition & 1 deletion src/components/content/TodoMVC.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import screen3 from "../../../public/images/screen3.svg";
</p>

<Button
title="View Blueprint"
title="View Tractor Store"
href="https://blueprint.the-tractor.store/"
target="_blank"
/>
Expand Down

0 comments on commit ccee100

Please sign in to comment.