Skip to content

Commit 8f41356

Browse files
authored
Merge pull request #765 from arifszn/v4
Release v4
2 parents 4d7571c + 996f0c9 commit 8f41356

File tree

28 files changed

+1069
-1453
lines changed

28 files changed

+1069
-1453
lines changed

README.md

Lines changed: 28 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
**Features:**
4444

4545
[Easy to Setup](#-installation--setup)
46-
[33 Themes](#themes)
46+
[37 Themes](#themes)
4747
[Google Analytics](#google-analytics)
4848
[Hotjar](#hotjar)
4949
[SEO](#seo)
@@ -202,11 +202,7 @@ const CONFIG = {
202202
],
203203
},
204204
},
205-
seo: {
206-
title: 'Portfolio of Ariful Alam',
207-
description: '',
208-
imageURL: '',
209-
},
205+
seo: { title: 'Portfolio of Ariful Alam', description: '', imageURL: '' },
210206
social: {
211207
linkedin: 'ariful-alam',
212208
x: 'arif_szn',
@@ -317,10 +313,7 @@ const CONFIG = {
317313
id: '', // GA3 tracking id/GA4 tag id UA-XXXXXXXXX-X | G-XXXXXXXXXX
318314
},
319315
// Track visitor interaction and behavior. https://www.hotjar.com
320-
hotjar: {
321-
id: '',
322-
snippetVersion: 6,
323-
},
316+
hotjar: { id: '', snippetVersion: 6 },
324317
themeConfig: {
325318
defaultTheme: 'nord',
326319

@@ -369,19 +362,11 @@ const CONFIG = {
369362
'dim',
370363
'nord',
371364
'sunset',
365+
'caramellatte',
366+
'abyss',
367+
'silk',
372368
'procyon',
373369
],
374-
375-
// Custom theme, applied to `procyon` theme
376-
customTheme: {
377-
primary: '#fc055b',
378-
secondary: '#219aaf',
379-
accent: '#e8d03a',
380-
neutral: '#2A2730',
381-
'base-100': '#E3E3ED',
382-
'--rounded-box': '3rem',
383-
'--rounded-btn': '3rem',
384-
},
385370
},
386371

387372
// Optional Footer. Supports plain text or HTML.
@@ -399,7 +384,7 @@ export default CONFIG;
399384

400385
### Themes
401386

402-
There are 33 themes available that can be selected from the dropdown.
387+
There are 37 themes available that can be selected from the dropdown.
403388

404389
The default theme can be specified.
405390

@@ -418,34 +403,23 @@ const CONFIG = {
418403
<img src="https://github.com/arifszn/gitprofile/assets/45073703/91a2d9e6-67e5-47b4-9752-1881ac0f907f" alt="Theme Dropdown" width="50%">
419404
</p>
420405

421-
You can create your own custom theme by modifying these values. Theme `procyon` will have the custom styles.
422-
423-
```ts
424-
// gitprofile.config.ts
425-
const CONFIG = {
426-
/**
427-
* Defines the custom theme colors and styles for the application.
428-
* The theme includes the following properties:
429-
* - `primary`: The primary color used throughout the application.
430-
* - `secondary`: The secondary color used for accents and highlights.
431-
* - `accent`: The accent color used for special elements.
432-
* - `neutral`: The neutral color used for backgrounds and text.
433-
* - `base-100`: The base background color.
434-
* - `--rounded-box`: The border radius for boxes and containers.
435-
* - `--rounded-btn`: The border radius for buttons.
436-
*/
437-
themeConfig: {
438-
customTheme: {
439-
primary: '#fc055b',
440-
secondary: '#219aaf',
441-
accent: '#e8d03a',
442-
neutral: '#2A2730',
443-
'base-100': '#E3E3ED',
444-
'--rounded-box': '3rem',
445-
'--rounded-btn': '3rem',
446-
},
447-
},
448-
};
406+
You can create your own custom theme by modifying the CSS variables in `src/assets/index.css`. Theme `procyon` is defined as a custom theme.
407+
408+
```css
409+
/* src/assets/index.css */
410+
@plugin "daisyui/theme" {
411+
name: 'procyon';
412+
color-scheme: light;
413+
414+
--color-base-100: #e3e3ed;
415+
--color-base-200: #d1d1db;
416+
--color-base-300: #bfbfc9;
417+
--color-base-content: #2a2730;
418+
--color-primary: #fc055b;
419+
--color-primary-content: #ffffff;
420+
--color-secondary: #219aaf;
421+
--color-secondary-content: #ffffff;
422+
}
449423
```
450424

451425
### Google Analytics
@@ -456,9 +430,7 @@ const CONFIG = {
456430
// gitprofile.config.ts
457431
const CONFIG = {
458432
// ...
459-
googleAnalytics: {
460-
id: 'G-XXXXXXXXX',
461-
},
433+
googleAnalytics: { id: 'G-XXXXXXXXX' },
462434
};
463435
```
464436

@@ -472,10 +444,7 @@ Besides tracking visitors, it will track `click events` on projects and blog pos
472444
// gitprofile.config.ts
473445
const CONFIG = {
474446
// ...
475-
hotjar: {
476-
id: '',
477-
snippetVersion: 6,
478-
},
447+
hotjar: { id: '', snippetVersion: 6 },
479448
};
480449
```
481450

@@ -487,11 +456,7 @@ You can customize the meta tags for SEO in `seo`.
487456
// gitprofile.config.ts
488457
const CONFIG = {
489458
// ...
490-
seo: {
491-
title: 'Portfolio of Ariful Alam',
492-
description: '',
493-
imageURL: '',
494-
},
459+
seo: { title: 'Portfolio of Ariful Alam', description: '', imageURL: '' },
495460
};
496461
```
497462

@@ -730,11 +695,7 @@ If you have [medium](https://medium.com) or [dev](https://dev.to) account, you c
730695
// gitprofile.config.ts
731696
const CONFIG = {
732697
// ...
733-
blog: {
734-
source: 'dev',
735-
username: 'arifszn',
736-
limit: 5,
737-
},
698+
blog: { source: 'dev', username: 'arifszn', limit: 5 },
738699
};
739700
```
740701

gitprofile.config.ts

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ const CONFIG = {
5151
],
5252
},
5353
},
54-
seo: {
55-
title: 'Portfolio of Ariful Alam',
56-
description: '',
57-
imageURL: '',
58-
},
54+
seo: { title: 'Portfolio of Ariful Alam', description: '', imageURL: '' },
5955
social: {
6056
linkedin: 'ariful-alam',
6157
x: 'arif_szn',
@@ -166,10 +162,7 @@ const CONFIG = {
166162
id: '', // GA3 tracking id/GA4 tag id UA-XXXXXXXXX-X | G-XXXXXXXXXX
167163
},
168164
// Track visitor interaction and behavior. https://www.hotjar.com
169-
hotjar: {
170-
id: '',
171-
snippetVersion: 6,
172-
},
165+
hotjar: { id: '', snippetVersion: 6 },
173166
themeConfig: {
174167
defaultTheme: 'lofi',
175168

@@ -218,19 +211,11 @@ const CONFIG = {
218211
'dim',
219212
'nord',
220213
'sunset',
214+
'caramellatte',
215+
'abyss',
216+
'silk',
221217
'procyon',
222218
],
223-
224-
// Custom theme, applied to `procyon` theme
225-
customTheme: {
226-
primary: '#fc055b',
227-
secondary: '#219aaf',
228-
accent: '#e8d03a',
229-
neutral: '#2A2730',
230-
'base-100': '#E3E3ED',
231-
'--rounded-box': '3rem',
232-
'--rounded-btn': '3rem',
233-
},
234219
},
235220

236221
// Optional Footer. Supports plain text or HTML.

global.d.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -284,43 +284,6 @@ interface Blog {
284284
limit?: number;
285285
}
286286

287-
interface CustomTheme {
288-
/**
289-
* Primary color
290-
*/
291-
primary?: string;
292-
293-
/**
294-
* Secondary color
295-
*/
296-
secondary?: string;
297-
298-
/**
299-
* Accent color
300-
*/
301-
accent?: string;
302-
303-
/**
304-
* Neutral color
305-
*/
306-
neutral?: string;
307-
308-
/**
309-
* Base color of page
310-
*/
311-
'base-100'?: string;
312-
313-
/**
314-
* Border radius of rounded-box
315-
*/
316-
'--rounded-box'?: string;
317-
318-
/**
319-
* Border radius of rounded-btn
320-
*/
321-
'--rounded-btn'?: string;
322-
}
323-
324287
interface ThemeConfig {
325288
/**
326289
* Default theme
@@ -346,11 +309,6 @@ interface ThemeConfig {
346309
* Available themes
347310
*/
348311
themes?: Array<string>;
349-
350-
/**
351-
* Custom theme
352-
*/
353-
customTheme?: CustomTheme;
354312
}
355313

356314
interface Config {

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<meta name="twitter:title" content="<%- metaTitle %>" />
2424
<meta name="twitter:description" content="<%- metaDescription %>" />
2525
<meta name="twitter:image" content="<%- metaImageURL %>" />
26+
<%- googleAnalyticsScript %>
2627
</head>
2728
<body>
2829
<div id="root"></div>

0 commit comments

Comments
 (0)