Skip to content

Commit 9e1e539

Browse files
Merge pull request #3 from veranikabarel/update-packages
update packages
2 parents cfac50e + 89a2594 commit 9e1e539

File tree

8 files changed

+7378
-4101
lines changed

8 files changed

+7378
-4101
lines changed

.yarn/install-state.gz

657 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
💫 This is a free template to make your portfolio website using **[Astro 2.0](https://astro.build/blog/astro-2/) + [Tailwind CSS](https://tailwindcss.com/)**.
1+
💫 This is a free template to make your portfolio website using **[Astro 4.0](https://astro.build/) + [Tailwind CSS](https://tailwindcss.com/)**.
22

33
### Dark mode
44
![Dark mode](https://github.com/veranikabarel/astro-portfolio/assets/48052206/240ab82d-8896-412e-8f52-5cf10d42b1db)

astro.config.mjs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
import image from '@astrojs/image';
21
import mdx from '@astrojs/mdx';
32
import tailwind from '@astrojs/tailwind';
4-
import { defineConfig } from 'astro/config';
3+
import icon from "astro-icon";
4+
import { defineConfig, squooshImageService } from 'astro/config';
55

6-
// https://astro.build/config
76
export default defineConfig({
8-
integrations: [tailwind(), mdx(), image()],
9-
});
7+
integrations: [tailwind(), mdx(), icon({
8+
include: {
9+
mdi: ["*"]
10+
}
11+
})],
12+
image: {
13+
service: squooshImageService()
14+
}
15+
});

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "astro-portfolio",
33
"type": "module",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"scripts": {
66
"dev": "astro dev",
77
"start": "astro dev",
@@ -11,20 +11,21 @@
1111
"test": "playwright test"
1212
},
1313
"dependencies": {
14-
"@astrojs/image": "^0.16.7",
15-
"@astrojs/mdx": "^0.19.1",
16-
"@astrojs/tailwind": "^3.1.1",
17-
"@astrojs/ts-plugin": "^0.4.4",
18-
"astro": "^2.3.4",
19-
"astro-icon": "^0.8.0",
20-
"astro-navbar": "^1.2.0",
21-
"astro-seo": "^0.7.2",
22-
"tailwindcss": "^3.0.24"
14+
"@astrojs/image": "^0.18.0",
15+
"@astrojs/mdx": "^2.2.2",
16+
"@astrojs/tailwind": "^5.1.0",
17+
"@astrojs/ts-plugin": "^1.6.1",
18+
"astro": "^4.5.12",
19+
"astro-icon": "^1.1.0",
20+
"astro-navbar": "^2.3.1",
21+
"astro-seo": "^0.8.3",
22+
"tailwindcss": "^3.4.3"
2323
},
2424
"devDependencies": {
25+
"@iconify-json/mdi": "^1.1.64",
2526
"@playwright/test": "^1.33.0",
26-
"prettier": "^2.8.8",
27-
"prettier-plugin-astro": "^0.8.0",
28-
"prettier-plugin-tailwindcss": "^0.2.8"
27+
"prettier": "^3.2.5",
28+
"prettier-plugin-astro": "^0.13.0",
29+
"prettier-plugin-tailwindcss": "^0.5.13"
2930
}
3031
}

src/components/Hero.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
import heroImage from '@assets/images/hero.png';
3-
import { Image } from '@astrojs/image/components';
42
import Button from '@components/ui/Button.astro';
3+
import { Image } from 'astro:assets';
4+
import heroImage from '../assets/images/hero.png';
55
---
66

77
<section
@@ -23,7 +23,6 @@ import Button from '@components/ui/Button.astro';
2323
<Image
2424
src={heroImage}
2525
alt="Coding girl"
26-
aspectRatio="4:4"
2726
format="png"
2827
width={600}
2928
height={600}

src/components/ui/Card.astro

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
---
2-
import projectImage from '@assets/images/project.png';
3-
import { Image } from '@astrojs/image/components';
42
import Tags from '@components/ui/Tags.astro';
3+
import { Image } from 'astro:assets';
4+
import projectImage from '../../assets/images/project.png';
5+
56
interface Props {
67
url?: string;
78
alt?: string;
89
title?: string;
9-
description: string,
10+
description: string;
1011
tags: string[];
1112
children?: HTMLElement | HTMLElement[];
1213
}
1314
14-
const { url = '#', alt = 'Project image', description = 'Project Description', title = 'Project title', tags = ['Tags'] } = Astro.props;
15+
const {
16+
url = '#',
17+
alt = 'Project image',
18+
description = 'Project Description',
19+
title = 'Project title',
20+
tags = ['Tags'],
21+
} = Astro.props;
1522
---
1623

1724
<section class="w-full p-4 md:w-1/2 lg:w-1/3">
@@ -21,19 +28,11 @@ const { url = '#', alt = 'Project image', description = 'Project Description', t
2128
>
2229
<a href={url} aria-label="link to project">
2330
<div class="relative flex items-end overflow-hidden rounded-xl">
24-
<Image
25-
src={projectImage}
26-
alt={alt}
27-
aspectRatio="4:4"
28-
format="png"
29-
width={400}
30-
height={400}
31-
loading="eager"
32-
/>
31+
<Image src={projectImage} alt={alt} format="png" width={400} height={400} loading="eager" />
3332
</div>
3433
<div class="mt-1 p-2">
3534
<h3 class="text-xl text-orange lg:text-2xl">{title}</h3>
36-
<p class="text-black text-s">{description}</p>
35+
<p class="text-s text-black">{description}</p>
3736
<Tags tags={tags} />
3837
</div>
3938
</a>

src/components/ui/Social.astro

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
---
2-
import { Icon } from 'astro-icon';
2+
import { Icon } from 'astro-icon/components';
33
---
44

55
<a href="https://github.com/" target="_blank" rel="noopener" aria-label="github"
66
><Icon
77
class="h-8 hover:text-orange dark:hover:text-orange md:h-12"
8-
name="simple-icons:github"
8+
name="mdi:github"
9+
size={100}
910
/></a
1011
>
1112
<a href="https://www.linkedin.com/" target="_blank" rel="noopener" aria-label="linkedin"
1213
><Icon
1314
class="h-8 hover:text-orange dark:hover:text-orange md:h-12"
14-
name="simple-icons:linkedin"
15+
name="mdi:linkedin"
16+
size={100}
1517
/></a
1618
>
1719
<a href="https://twitter.com/" target="_blank" rel="noopener" aria-label="twitter"
1820
><Icon
1921
class="h-8 hover:text-orange dark:hover:text-orange md:h-12"
20-
name="simple-icons:twitter"
22+
name="mdi:twitter"
23+
size={100}
2124
/></a
2225
>

0 commit comments

Comments
 (0)