-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add dark mode - Replace the bootstrap with
- Loading branch information
1 parent
0f7615a
commit c7ddd01
Showing
32 changed files
with
1,975 additions
and
207 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
src/assets/fontawesome-free-6.2.1-web/css/fontawesome.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/*! | ||
* Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com | ||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | ||
* Copyright 2022 Fonticons, Inc. | ||
*/ | ||
:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.ttf) format("truetype")}.fa-regular,.far{font-weight:400} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/*! | ||
* Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com | ||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | ||
* Copyright 2022 Fonticons, Inc. | ||
*/ | ||
:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.46 KB
src/assets/fontawesome-free-6.2.1-web/webfonts/fa-v4compatibility.woff2
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,81 @@ | ||
<template> | ||
<footer class="d-flex"> | ||
<div> | ||
Developed by <strong> | ||
<a target="_blank" href="https://www.linkedin.com/in/husseindossoki/">Hussein Dossoki</a> | ||
</strong> ©2022 | ||
</div> | ||
</footer> | ||
|
||
|
||
<footer | ||
class="flex fixed bottom-0 left-0 z-20 w-full p-4 bg-white border-t border-gray-200 shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800 dark:border-gray-600"> | ||
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">© 2022 <a target="_blank" | ||
href="https://www.linkedin.com/in/husseindossoki/" class="hover:underline">Hussein Dossoki</a>. All | ||
Rights | ||
Reserved. | ||
</span> | ||
|
||
<div class="ml-auto"> | ||
<input type="checkbox" class="checkbox" id="theme-checkbox" @change="toggleDark(); checkBackground()"> | ||
<label for="theme-checkbox" class="checkbox-label"> | ||
<i class="fas fa-moon"></i> | ||
<i class="fas fa-sun"></i> | ||
<span class="ball"></span> | ||
</label> | ||
</div> | ||
|
||
</footer> | ||
|
||
</template> | ||
|
||
<script setup> | ||
import { useDark, useToggle } from "@vueuse/core"; | ||
const isDark = useDark(); | ||
const toggleDark = useToggle(isDark); | ||
function checkBackground() { | ||
console.log(document.documentElement.classList.contains('dark')); | ||
if (!document.documentElement.classList.contains('dark')) { | ||
document.body.style.backgroundColor = '#1F2937'; // OR #1F2937, #0d1117 | ||
} else { | ||
document.body.style.backgroundColor = '#fff'; | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
footer { | ||
height: 25px; | ||
bottom: 0; | ||
width: 100%; | ||
background-color: #2d2d2d; | ||
position: fixed; | ||
color: rgba(238, 238, 238, 0.646); | ||
font-size: 11px; | ||
line-height: 21px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
.checkbox { | ||
opacity: 0; | ||
position: absolute; | ||
} | ||
.checkbox-label { | ||
background-color: #111; | ||
width: 50px; | ||
height: 26px; | ||
border-radius: 50px; | ||
position: relative; | ||
padding: 5px; | ||
cursor: pointer; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
.fa-moon { | ||
color: #f1c40f; | ||
} | ||
.fa-sun { | ||
color: #f39c12; | ||
} | ||
.checkbox-label .ball { | ||
background-color: #fff; | ||
width: 22px; | ||
height: 22px; | ||
position: absolute; | ||
left: 2px; | ||
top: 2px; | ||
border-radius: 50%; | ||
transition: transform 0.2s linear; | ||
} | ||
.checkbox:checked+.checkbox-label .ball { | ||
transform: translateX(24px); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.