Skip to content

Commit

Permalink
wip tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
math-pixel committed Aug 29, 2024
1 parent 931530c commit 09f73f9
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 5 deletions.
91 changes: 91 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
"svelte": "^4.2.19",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.15"
}
}
4 changes: 2 additions & 2 deletions src/components/header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ interface Props {
const { href, title } = Astro.props;
---

<ul class=" bg-teal-200 flex justify-around w-1/3 rounded-lg mx-auto">
<ul class=" absolute inset-x-0 top-0 global-color flex justify-around w-1/4 rounded-3xl mx-auto my-5 typo-rubik font-semibold text-xl">
{title.map((item, index) => (
<a href={href[index]} class=" m-4 ">{item}</a>
<a href={href[index]} class=" m-4">{item}</a>
))}
</ul>

2 changes: 1 addition & 1 deletion src/content/projects/3d printer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ salut
</div>

<div>
# {frontmatter.description}
{frontmatter.description}
</div>

6 changes: 6 additions & 0 deletions src/pages/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ import ProjectLayout from '../layouts/projectLayout.astro'
<Content />
</ProjectLayout>


<style is:global>
h1{
color: red;
}
</style>
17 changes: 16 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,23 @@ const cards = [

</LayoutPage>

<style>
<style is:global>
@view-transition {
navigation: auto; /* enabled! */
}

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
.typo-rubik {
font-family: 'Rubik', "Regular";
}
.global-color{
background-color: #CFE9FF;
}

}

</style>
4 changes: 3 additions & 1 deletion tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ export default {
theme: {
extend: {},
},
plugins: [],
plugins: [
require('@tailwindcss/typography'),
],
}

0 comments on commit 09f73f9

Please sign in to comment.