Skip to content

Commit

Permalink
A bit more variance and comic representation
Browse files Browse the repository at this point in the history
  • Loading branch information
majora2007 committed Nov 18, 2024
1 parent 5ce5a25 commit 7ae87eb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/AppPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@ export default function AppPreview() {
}
}, [resolvedTheme, systemTheme]);

// Don't forget to add to tailwind.config.js
const getRandomImageClass = (theme) => {
const darkClasses = [
'bg-dark2', 'bg-dark3', 'bg-dark4', 'bg-dark5',
'bg-dark6', 'bg-dark7', 'bg-dark8', 'bg-dark9',
'bg-dark10', 'bg-dark11'
];
const lightClasses = [
'bg-light2', 'bg-light3', 'bg-light4', 'bg-light5',
'bg-light6', 'bg-light7', 'bg-light8', 'bg-light9',
'bg-light10', 'bg-light11', 'bg-light12', 'bg-light13',
'bg-light14', 'bg-light15'
];

const classes = theme === 'dark' ? darkClasses : lightClasses;
Expand Down
Binary file added public/homepage-dark10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/homepage-dark11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/homepage-light14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/homepage-light15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ module.exports = {
'dark7': "url('/homepage-dark7.png')",
'dark8': "url('/homepage-dark8.png')",
'dark9': "url('/homepage-dark9.png')",
'dark9': "url('/homepage-dark10.png')",
'dark9': "url('/homepage-dark11.png')",
'light2': "url('/homepage-light2.png')",
'light3': "url('/homepage-light3.png')",
'light4': "url('/homepage-light4.png')",
Expand All @@ -31,6 +33,8 @@ module.exports = {
'light11': "url('/homepage-light11.png')",
'light12': "url('/homepage-light12.png')",
'light13': "url('/homepage-light13.png')",
'light13': "url('/homepage-light14.png')",
'light13': "url('/homepage-light15.png')",
},
},
},
Expand Down

0 comments on commit 7ae87eb

Please sign in to comment.