Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.html #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
'amine-bg': '#090a24',
'amine-text': '#DCF2F1',
'amine-input': '#365486',
'light-bg': '#ffffff',
'light-text': '#000000',
},
fontFamily: {
'custom': ['Poppins', 'sans-serif'],
Expand All @@ -36,6 +38,18 @@
}
}
</script>
<script>
function toggleLightMode() {
const body = document.body;
const currentBgColor = body.classList.contains('bg-amine-bg') ? 'bg-amine-bg' : 'bg-light-bg';
const currentTextColor = body.classList.contains('text-amine-text') ? 'text-amine-text' : 'text-light-text';

body.classList.toggle('bg-amine-bg');
body.classList.toggle('bg-light-bg');
body.classList.toggle('text-amine-text');
body.classList.toggle('text-light-text');
}
</script>
</head>
<body class="bg-amine-bg text-amine-text font-custom flex items-center justify-center min-h-screen">
<div class="container mx-auto px-4 py-8 max-w-2xl">
Expand All @@ -51,6 +65,9 @@ <h1 class="text-7xl mb-6">amine</h1>
</p>
<div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-6">

<button onclick="toggleLightMode()" class="bg-amine-input text-amine-text px-4 py-1 rounded-lg inline-flex items-center justify-center font-semibold transition duration-300 hover:bg-opacity-80">
Toggle Light Mode
</button>

<a href="https://github.com/datavorous/amine/releases/tag/v0.0.1" class="bg-amine-input text-amine-text px-4 py-1 rounded-lg inline-flex items-center justify-center font-semibold transition duration-300 hover:bg-opacity-80">
Windows x64
Expand All @@ -60,7 +77,6 @@ <h1 class="text-7xl mb-6">amine</h1>
Request Feature
</a>


<a href="https://github.com/datavorous/amine" class="bg-amine-input border-amine-text text-amine-text px-8 py-4 rounded-lg inline-flex items-center justify-center font-semibold transition duration-300 hover:bg-opacity-80">
Github
</a>
Expand Down