Skip to content

Commit

Permalink
feat: move timer link above the source
Browse files Browse the repository at this point in the history
I'd say the source is the least helpful information
  • Loading branch information
AleksandrSl committed Jan 15, 2025
1 parent 7471b17 commit b3cd0dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Recipe.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { getRelativeLocaleUrl } from 'astro:i18n'
import { commonMessages } from '@/i18n/locales/common/en'
import { createPropertyFormatters } from '@/i18n/utils'
import Author from './Author.astro'
import RecipeProperties from './RecipeProperties.astro'
Expand Down Expand Up @@ -59,13 +60,13 @@ const timerHref = getRelativeLocaleUrl(locale, `/recipes/${recipe.method}/${name
}
<slot />
</div>
{recipe.steps
? <a class="timer-link" href={timerHref}>Open timer</a>
: null}
<div class="source">
<span>{messages.source}:</span>
<Author image={recipe.authorImg} link={recipe.link} name={recipe.author} />
</div>
{recipe.steps
? <a class="timer-link" href={timerHref}>Open timer</a>
: null}
</div>

<style>
Expand Down

0 comments on commit b3cd0dc

Please sign in to comment.