mirror of
https://github.com/yusufipk/teknolojirehberleri.xyz.git
synced 2026-09-11 10:56:08 +00:00
postimg bağlantıları değiştirildi
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Websitenize Tema Ekleme
|
||||
|
||||

|
||||

|
||||
|
||||
Karanlık temalara bayılıyorum. Kullandığım her websitesinde ve uygulamada karanlık tema tercih ediyorum. Peki tema seçeneklerini sitemize nasıl koyarız? Birden fazla temayı sitemizde nasıl yapabiliriz bu rehberde bunu anlatacağım.
|
||||
|
||||
@@ -17,7 +17,7 @@ Karanlık temalara bayılıyorum. Kullandığım her websitesinde ve uygulamada
|
||||
|
||||
[kod](https://github.com/yusufipk/another-calculator) | [canlı demo](https://yusufipk.github.io/another-calculator/)
|
||||
|
||||

|
||||

|
||||
|
||||
Gördüğünüz gibi düğmemiz var ve bu düğmeyle 3 tema arasında seçim yapabiliyoruz.
|
||||
|
||||
@@ -105,8 +105,8 @@ function changeTheme() {
|
||||
document.body.setAttribute("data-theme", "light");
|
||||
} else if (theme3.checked) {
|
||||
document.body.setAttribute("data-theme", "purple");
|
||||
} els return;
|
||||
}
|
||||
} else return;
|
||||
|
||||
```
|
||||
Şimdi de eventListener eklememiz lazım, yapmasını istediğimiz iki şey var;
|
||||
|
||||
@@ -201,4 +201,4 @@ Kullanıcının tema tercihini de göz önünde bulundurmak istiyorsanız CSS'te
|
||||
Benim ilk kodlama rehberimdi ve herhangi bir geri bildiriminiz varsa lütfen bana ulaşın! Okuduğunuz için teşekkürler ve umarım bu rehber size faydalı olmuştur.
|
||||
|
||||
## Katkıda Bulunanlar
|
||||
Yusuf İpek [website](https://yusufipek.me), [youtube](https://www.youtube.com/channel/UCVBX2n_5egE9XuJL8NUS0Xg)e
|
||||
Yusuf İpek [website](https://yusufipek.me), [youtube](https://www.youtube.com/channel/UCVBX2n_5egE9XuJL8NUS0Xg)
|
||||
Reference in New Issue
Block a user