Skip to content

Commit

Permalink
Ajustes e definindo versao do tailwind no trunk para habilitar classe…
Browse files Browse the repository at this point in the history
…s como min-w-24
  • Loading branch information
SeraphyBR authored Apr 7, 2024
1 parent 1b7006e commit 1bd78ef
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
5 changes: 4 additions & 1 deletion Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ dist = "dist"
ignore = ["./src/markdown_posts.rs"]

[serve]
port = 3000
port = 3000

[tools]
tailwindcss = "3.4.3"
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"tailwindcss": "^3.4.1"
"tailwindcss": "^3.4.3"
}
}
2 changes: 1 addition & 1 deletion src/components/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn LinkBtn(
) -> impl IntoView {
view! {
<A href
class=class + " tw-text-sm tw-font-bold tw-border-solid tw-border-2 tw-rounded-xl tw-max-w-fit tw-px-4 tw-py-2 tw-bg-white tw-transition tw-duration-200 hover:tw-text-greenLime"
class=class + " tw-text-center tw-text-sm tw-font-bold tw-border-solid tw-border-2 tw-rounded-xl tw-max-w-fit tw-px-4 tw-py-2 tw-bg-white tw-transition tw-duration-200 hover:tw-text-greenLime"
>
{children()}
</A>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ pub fn HomePage() -> impl IntoView {
</div>
<hr />
<div class="tw-hflex tw-gap-5">
<LinkBtn href="about" class="!tw-text-base !tw-font-normal">
<LinkBtn href="about" class="!tw-text-base !tw-font-normal !tw-min-w-24">
Sobre
</LinkBtn>

<LinkBtn href="posts" class="!tw-text-base !tw-font-normal">
<LinkBtn href="posts" class="!tw-text-base !tw-font-normal !tw-min-w-24">
Posts
</LinkBtn>

<LinkBtn href="projects" class="!tw-text-base !tw-font-normal">
<LinkBtn href="projects" class="!tw-text-base !tw-font-normal !tw-min-w-24">
Projetos
</LinkBtn>
</div>
Expand Down
12 changes: 5 additions & 7 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module.exports = {
prefix: 'tw-',
content: {
files: ['*.html', './src/**/*.rs'],
files: ['./index.html', './src/**/*.rs'],
},
theme: {
extend: {
Expand All @@ -11,14 +11,12 @@ module.exports = {
},
colors: {
graphite: '#222',
greenLime: '#348314'
greenLime: '#348314',
},
backgroundImage: {
'forest-stairs': "url('/img/background-1.jpg')"
}
'forest-stairs': "url('/img/background-1.jpg')",
},
},
},
plugins: [
require('@tailwindcss/typography')
],
plugins: [require('@tailwindcss/typography')],
};

0 comments on commit 1bd78ef

Please sign in to comment.