Skip to content

Commit a61d4c6

Browse files
committed
feat: added constants with default configuration
1 parent 48f17bf commit a61d4c6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/lib/constants.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import Avatar from '@/assets/images/avatar.jpeg';
2+
import type { GetImageResult } from 'astro';
3+
import { getImage } from 'astro:assets';
4+
5+
const avatar = await getImage({ src: Avatar, width: 92, height: 92 , format: 'png'});
6+
7+
export type AuthorInfo = {
8+
name: string;
9+
avatar: GetImageResult;
10+
headline: string;
11+
username?: string;
12+
location?: string;
13+
pronouns?: string;
14+
}
15+
16+
type DefaultConfigurationType = {
17+
author: AuthorInfo;
18+
}
19+
20+
export const DEFAULT_CONFIGURATION: DefaultConfigurationType = {
21+
author: {
22+
avatar,
23+
name: 'Javier Diaz Chamorro',
24+
headline: 'Engineering and Design',
25+
username: 'coderdiaz',
26+
location: 'Mexico City',
27+
pronouns: 'He/Him',
28+
},
29+
};

0 commit comments

Comments
 (0)