Le voyage de Leul
I have been trying to create these projects. And I want to share you the code, so choose one of them and I will post the whole code here.
Note taking and memory game websites were chosen. So I have to choose one.
I think many people want the note taking one. So I will send it now.
I think many people want the note taking one. So I will send it now.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<noscript>To-Do & Notes App</noscript>
</head>
<body>
<div class="container">
<h1>To-Do & Notes</h1>
<button class="btn-dark-mode" onclick="toggleDarkMode()">🌙/🌞</button>
<div>
<h2>To-Do List</h2>
<input type="text" id="todo-input" placeholder="Add a new task">
<button class="btn-add" onclick="addTodo()">Add</button>
<ul id="todo-list"></ul>
</div>
<div>
<h2>Notes</h2>
<input type="text" id="note-noscript" placeholder="Title" required>
<textarea id="note-content" placeholder="Write your note here..." required ></textarea>
<button class="btn-add" onclick="saveNote()">Save Note</button>
<div id="notes-container"></div>
</div>
</div>
<div class="modal-overlay" onclick="closeModal()"></div>
<div class="modal" id="modal">
<h3 id="modal-noscript"></h3>
<p id="modal-content"></p>
<button onclick="closeModal()">Close</button>
</div>
</body>
</html>
👍1
:root {
--bg-light: #f4f4f4;
--bg-dark: #222;
--text-light: #000;
--text-dark: #fff;
--card-light: #fff;
--card-dark: #333;
--primary: #28a745;
--danger: red;
}
body {
font-family: Arial, sans-serif;
background: var(--bg-light);
color: var(--text-light);
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
transition: all 1.5s eae;
}
.container {
width: 100%;
max-width: 600px;
background: var(--card-light);
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
h1, h2 {
text-align: center;
}
input, textarea, button {
width: 90%;
padding: 10px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 5px;
align-self: center;
}
button {
cursor: pointer;
border: none;
color: white;
font-weight: bold;
}
.btn-add {
background: var(--primary);
}
.btn-delete {
width: 30%;
background: var(--danger);
}
.btn-dark-mode {
background: #333;
}
button:hover {
opacity: 0.8;
}
ul {
list-style: none;
padding: 0;
}
ul li {
background: #ddd;
padding: 10px;
margin: 5px 0;
display: flex;
justify-content: space-between;
cursor: pointer;
}
.note {
background: #ffeb99;
padding: 10px;
margin-top: 10px;
border-radius: 5px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}
.dark-mode {
background: var(--bg-dark);
color: var(--text-dark);
}
.dark-mode .container {
background: var(--card-dark);
}
.modal {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
max-width: 400px;
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
z-index: 1000;
}
.modal h3 {
margin-top: 0;
}
.modal button {
margin-top: 10px;
}
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
}
model-overlay button{
background: green;
}document.addEventListener("DOMContentLoaded", loadFromStorage);
function addTodo() {
let todoInput = document.getElementById("todo-input");
let todoText = todoInput.value.trim();
if (todoText === "") return;
let todoList = document.getElementById("todo-list");
let li = document.createElement("li");
li.innerHTML = `
${todoText}
<button class="btn-delete" onclick="removeTodo(event)">🗑️</button>
`;
li.addEventListener("click", () => openModal(todoText));
todoList.appendChild(li);
todoInput.value = "";
saveToStorage();
}
function removeTodo(event) {
event.stopPropagation();
event.target.parentElement.remove();
saveToStorage();
}
function saveNote() {
let noscript = document.getElementById("note-noscript").value.trim();
let content = document.getElementById("note-content").value.trim();
if (noscript === "" || content === "") return;
let notesContainer = document.getElementById("notes-container");
let noteDiv = document.createElement("div");
noteDiv.classList.add("note");
noteDiv.innerHTML = `
<span>${noscript}</span>
<button class="btn-delete" onclick="removeNote(event, '${noscript}')">🗑️</button>
`;
noteDiv.onclick = () => openModal(noscript, content);
notesContainer.appendChild(noteDiv);
document.getElementById("note-noscript").value = "";
document.getElementById("note-content").value = "";
saveToStorage();
}
function removeNote(event, noscript) {
event.stopPropagation();
event.target.parentElement.remove();
saveToStorage();
}
function openModal(noscript, content = "") {
document.getElementById("modal-noscript").innerText = noscript;
document.getElementById("modal-content").innerText = content;
document.querySelector(".modal-overlay").style.display = "block";
document.getElementById("modal").style.display = "block";
}
function closeModal() {
document.querySelector(".modal-overlay").style.display = "none";
document.getElementById("modal").style.display = "none";
}
function toggleDarkMode() {
document.body.classList.toggle("dark-mode");
localStorage.setItem("darkMode", document.body.classList.contains("dark-mode"));
}
function saveToStorage() {
let todos = Array.from(document.querySelectorAll("#todo-list li")).map(li => li.innerText.replace("🗑️", "").trim());
let notes = Array.from(document.querySelectorAll("#notes-container .note span")).map(note => note.innerText);
localStorage.setItem("todos", JSON.stringify(todos));
localStorage.setItem("notes", JSON.stringify(notes));
}
function loadFromStorage() {
let todos = JSON.parse(localStorage.getItem("todos")) || [];
let notes = JSON.parse(localStorage.getItem("notes")) || [];
todos.forEach(todo => addTodoItem(todo));
notes.forEach(noscript => saveNoteItem(noscript));
if (localStorage.getItem("darkMode") === "true") {
document.body.classList.add("dark-mode");
}
}🚀 Tic-Tac-Toe Online – Can You Beat the AI? 🎉
I'm excited to launch my latest project: Tic-Tac-Toe Online! 🏆 Play against a super tough AI that’s nearly impossible to beat or challenge a friend. Think you're smart enough to win? Give it a try!
📌Features
✅Better UI
✅Shows score
✅Unbeatable AI
🔗 Play now: Tic-Tac-Toe
Github : Link
For those of you who beat the AI will have a gift, send me a screenshot.
✅Soon I will create an offline app✅
Let me know if you can outsmart the AI! 😈 #GameDevelopment #TicTacToe #ImpossibleAI
I'm excited to launch my latest project: Tic-Tac-Toe Online! 🏆 Play against a super tough AI that’s nearly impossible to beat or challenge a friend. Think you're smart enough to win? Give it a try!
📌Features
✅Better UI
✅Shows score
✅Unbeatable AI
🔗 Play now: Tic-Tac-Toe
Github : Link
For those of you who beat the AI will have a gift, send me a screenshot.
✅Soon I will create an offline app✅
Let me know if you can outsmart the AI! 😈 #GameDevelopment #TicTacToe #ImpossibleAI
👍1
🧠 New Game Alert: Memory Challenge! 🎮
I'm excited to introduce my latest project: Memory Game! 🏆 Test your brainpower and see how fast you can match the cards. It’s fun, challenging, and a great way to sharpen your memory!
🔗 Play now: https://memory-game-seven-ashen.vercel.app
Git hub: Link
Think you have a sharp mind? Give it a try and let me know your best score! 🚀 #GameDevelopment #MemoryGame #BrainChallenge
I'm excited to introduce my latest project: Memory Game! 🏆 Test your brainpower and see how fast you can match the cards. It’s fun, challenging, and a great way to sharpen your memory!
🔗 Play now: https://memory-game-seven-ashen.vercel.app
Git hub: Link
Think you have a sharp mind? Give it a try and let me know your best score! 🚀 #GameDevelopment #MemoryGame #BrainChallenge
Forwarded from Box-iopia
Le voyage de Leul pinned «🚀 Tic-Tac-Toe Online – Can You Beat the AI? 🎉 I'm excited to launch my latest project: Tic-Tac-Toe Online! 🏆 Play against a super tough AI that’s nearly impossible to beat or challenge a friend. Think you're smart enough to win? Give it a try! 📌Features…»
Guy I have some updates on my portfolio website.
Features added:
✅Direct email sending ability
✅Services are added
✅Some color changes are done
✅Icons are changed
https://leul-ayfokru-portfolio.vercel.app/
Features added:
✅Direct email sending ability
✅Services are added
✅Some color changes are done
✅Icons are changed
https://leul-ayfokru-portfolio.vercel.app/
leul-ayfokru-portfolio.vercel.app
Leul Ayfokru | Frontend Developer & Android App Creator
Showcasing the skills and projects of Leul Ayfokru, a frontend developer and Android app expert specializing in responsive websites, mobile apps, and creative digital solutions.
Here's some advice coming from a place of love
Stop asking good developers/ channel owners/ senior's "what should I learn"
That should be a choice you make on your own based on what you want, what you are aiming for and other things
You wouldn't go to a dating coach and ask what kind of person should i want
You ask them "i want this person, how do I get them"
Decide your path, what you want to learn, then ask for help on how to learn that thing instead.
Stop asking good developers/ channel owners/ senior's "what should I learn"
That should be a choice you make on your own based on what you want, what you are aiming for and other things
You wouldn't go to a dating coach and ask what kind of person should i want
You ask them "i want this person, how do I get them"
Decide your path, what you want to learn, then ask for help on how to learn that thing instead.