diff --git a/Css/style.css b/Css/style.css deleted file mode 100644 index 44b84fd..0000000 --- a/Css/style.css +++ /dev/null @@ -1,541 +0,0 @@ - - *{ - padding: 0; - margin: 0; - box-sizing: border-box; - font-family: "Poppins", sans-serif; - - } - - body { - background-color: #F7F9FD; - } - - nav { - display: flex; - justify-content: space-around; - align-items: center; - min-height: 8vh; - background: #6786bb; - font-family: "Poppins", sans-serif; - - } - - .logo { - color: rgba(266, 266 266); - text-transform: uppercase; - letter-spacing: 5px; - font-size: 20px; - - } - - .nav-links { - display: flex; - color: rgba(266, 266 266); - justify-content: space-around; - width: 38%; - - - } - - .nav-bar ul { - padding: 15px 0px; - text-align: center; - background: #031023; - justify-content: space-around; - font-weight: bold; - -} -.nav-bar ul li { - display: inline; - margin: 0px 5px; - font-size: 18px; - cursor: pointer; - justify-content: space-around; - font-weight: bold; - -} - -.active { - color: white; - border-bottom: 1px white solid; -} - - - - -footer { - background-color: #5d5d83; - -} - -.footercontainer{ - width: 100%; - height: 20%; - padding: 30px 30px 20px; - -} - -.socialIcons { - display: flex; - justify-content: center; - -} - -.socialIcons a{ - text-decoration: none; - padding: 10px; - background-color: white; - margin: 10px; - border-radius: 50%; -} - -.socialIcons a i{ -font: 2em; -color: #587EF4; -opacity: 0.9; -} - -.socialIcons a :hover { -background-color: #587EF4; -transition: 0.5s; - -} - -.socialIcons a i :hover { - color: #587EF4; - transition: 0.5s; - -} - - .container { - width: 90vw; - max-width: 62.5em; - position: relative; - margin: auto; -} -.add-flashcard-con { - display: flex; - justify-content: flex-end; - padding: 1.2em 1em; -} -button { - border: none; - outline: none; - cursor: pointer; -} -.add-flashcard-con button { - font-size: 1em; - background-color: #587EF4; - color: #FFFFFF; - padding: 0.8em 1.2em; - font-weight: 500; - border-radius: 0.4em; -} -#card-con { - margin-top: 1em; -} -.question-container { - width: 90vw; - max-width: 34em; - display: flex; - flex-direction: column; - justify-content: center; - background-color: #FFFFFF; - position: absolute; - transform: translate(-50%, -50%); - top: 50%; - left: 50%; - padding: 3em 2em; - border-radius: 0.6em; - box-shadow: 0 1em 2em rgba(28, 0, 80, 0.1); -} -.question-container h2 { - font-size: 2.2em; - color: #363D55; - font-weight: 600; - text-align: center; - margin-bottom: 2em; -} -.wrapper { - display: grid; - grid-template-columns: 11fr 1fr; - gap: 1em; - margin-bottom: 1em; -} -.error-con { - align-self: center; -} -#error { - color: #FF5353; - font-weight: 400; -} -.fa-xmark { - font-size: 1.4em; - background-color: #587EF4; - height: 1.8em; - width: 1.8em; - display: grid; - place-items: center; - color: #FFFFFF; - border-radius: 50%; - cursor: pointer; - justify-self: flex-end; -} -label { - color: #363D55; - font-weight: 600; - margin-bottom: 0.3em; -} -textarea { - width: 100%; - padding: 0.7em 0.5em; - border: 1px solid #D0D0D0; - outline: none; - color: #414A67; - border-radius: 0.3em; - resize: none; -} -textarea:not(:last-child) { - margin-bottom: 1.2em; -} -textarea:focus { - border-color: #363D55; -} -#save-btn { - font-size: 1em; - background-color: #587EF4; - color: #FFFFFF; - padding: 0.6em 0; - border-radius: 0.3em; - font-weight: 600; -} -.card-list-container { - display: grid; - padding: 0.2em; - gap: 1.5em; - grid-template-columns: 1fr 1fr 1fr; -} -.card { - background-color: #FFFFFF; - box-shadow: 0 0.4em 1.2em rgba(28, 0, 80, 0.08); - padding: 1.2em; - border-radius: 0.4em; -} -.question-div, -.answer-div { - text-align: justify; -} -.question-div { - margin-bottom: 0.5em; - font-weight: 500; - color: #363D55; -} -.answer-div { - margin-top: 1em; - font-weight: 400; - color: #414A67; -} -.show-hide-btn { - display: block; - background-color: #587EF4; - color: #FFFFFF; - text-decoration: none; - text-align: center; - padding: 0.6em 0; - border-radius: 0.3em; -} -.buttons-con { - display: flex; - justify-content: flex-end; -} -.edit, -.delete { - background-color: transparent; - padding: 0.5em; - font-size: 1.2em; -} -.edit { - color: #587EF4; -} -.delete { - color: #FF5353; -} -.hide { - display: none; -} -@media screen and (max-width: 800px) { - .card-list-container { - grid-template-columns: 1fr 1fr; - gap: 0.8em; - } -} -@media screen and (max-width: 450px) { - body { - font-size: 14px; - } - .card-list-container { - grid-template-columns: 1fr; - gap: 1.2em; - } -} -======= - - *{ - padding: 0; - margin: 0; - box-sizing: border-box; - font-family: "Poppins", sans-serif; - } - - body { - background-color: #F7F9FD; - } - - nav { - display: flex; - justify-content: space-around; - align-items: center; - min-height: 8vh; - background: #6786bb; - font-family: "Poppins", sans-serif; - - } - - .logo { - color: rgba(266, 266 266); - text-transform: uppercase; - letter-spacing: 5px; - font-size: 20px; - - } - - .nav-links { - display: flex; - color: rgba(266, 266 266); - justify-content: space-around; - width: 30%; - - - } - - .nav-bar ul { - padding: 15px 0px; - text-align: center; - background: #031023; - justify-content: space-around; - font-weight: bold; - -} -.nav-bar ul li { - display: inline; - margin: 0px 5px; - font-size: 18px; - cursor: pointer; - justify-content: space-around; - font-weight: bold; - -} - -.burger div { -width: 20px; -height: 3px; -background-color: rgba(266, 266 266); -margin: 5px; -} - -.active { - color: white; - border-bottom: 1px white solid; -} - - - - -.footer { - color: #d6ffff; - background-color: #333; - text-align: center; - margin-bottom: 1rem; - letter-spacing: 1px; -} - -.social-links > a { - color: #ffffff; - font-size: 35px; - padding-right: 10px; - -} - -.container { - width: 90vw; - max-width: 62.5em; - position: relative; - margin: auto; -} -.add-flashcard-con { - display: flex; - justify-content: flex-end; - padding: 1.2em 1em; -} -button { - border: none; - outline: none; - cursor: pointer; -} -.add-flashcard-con button { - font-size: 1em; - background-color: #587EF4; - color: #FFFFFF; - padding: 0.8em 1.2em; - font-weight: 500; - border-radius: 0.4em; -} -#card-con { - margin-top: 1em; -} -.question-container { - width: 90vw; - max-width: 34em; - display: flex; - flex-direction: column; - justify-content: center; - background-color: #FFFFFF; - position: absolute; - transform: translate(-50%, -50%); - top: 50%; - left: 50%; - padding: 3em 2em; - border-radius: 0.6em; - box-shadow: 0 1em 2em rgba(28, 0, 80, 0.1); -} -.question-container h2 { - font-size: 2.2em; - color: #363D55; - font-weight: 600; - text-align: center; - margin-bottom: 2em; -} -.wrapper { - display: grid; - grid-template-columns: 11fr 1fr; - gap: 1em; - margin-bottom: 1em; -} -.error-con { - align-self: center; -} -#error { - color: #FF5353; - font-weight: 400; -} -.fa-xmark { - font-size: 1.4em; - background-color: #587EF4; - height: 1.8em; - width: 1.8em; - display: grid; - place-items: center; - color: #FFFFFF; - border-radius: 50%; - cursor: pointer; - justify-self: flex-end; -} -label { - color: #363D55; - font-weight: 600; - margin-bottom: 0.3em; -} -textarea { - width: 100%; - padding: 0.7em 0.5em; - border: 1px solid #D0D0D0; - outline: none; - color: #414A67; - border-radius: 0.3em; - resize: none; -} -textarea:not(:last-child) { - margin-bottom: 1.2em; -} -textarea:focus { - border-color: #363D55; -} -#save-btn { - font-size: 1em; - background-color: #587EF4; - color: #FFFFFF; - padding: 0.6em 0; - border-radius: 0.3em; - font-weight: 600; -} -.card-list-container { - display: grid; - padding: 0.2em; - gap: 1.5em; - grid-template-columns: 1fr 1fr 1fr; -} -.card { - background-color: #FFFFFF; - box-shadow: 0 0.4em 1.2em rgba(28, 0, 80, 0.08); - padding: 1.2em; - border-radius: 0.4em; -} -.question-div, -.answer-div { - text-align: justify; -} -.question-div { - margin-bottom: 0.5em; - font-weight: 500; - color: #363D55; -} -.answer-div { - margin-top: 1em; - font-weight: 400; - color: #414A67; -} -.show-hide-btn { - display: block; - background-color: #587EF4; - color: #FFFFFF; - text-decoration: none; - text-align: center; - padding: 0.6em 0; - border-radius: 0.3em; -} -.buttons-con { - display: flex; - justify-content: flex-end; -} -.edit, -.delete { - background-color: transparent; - padding: 0.5em; - font-size: 1.2em; -} -.edit { - color: #587EF4; -} -.delete { - color: #FF5353; -} -.hide { - display: none; -} -@media screen and (max-width: 800px) { - .card-list-container { - grid-template-columns: 1fr 1fr; - gap: 0.8em; - } -} -@media screen and (max-width: 450px) { - body { - font-size: 14px; - } - .card-list-container { - grid-template-columns: 1fr; - gap: 1.2em; - } -} - diff --git a/about us.html b/about us.html deleted file mode 100644 index d858261..0000000 --- a/about us.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - Flashcard App - - - - - - - - - - -
-
-

The Dynamic Coding Duo

-

As a new team who has both recently embark on our coding odyssey with #FlashCardFun being our first project together as part of the perequisite of code first girls projects. - New to this tech realm, we dove into coding to learn and build simultaneously. Team member Cleo, the book-loving enthusiast, craved an interactive learning experience. - Team member Oluwaseun, the supermom, code lover, aspiring developer, envisioned with a dream of learning code to improve life of other through impactation.. - Together, we're creating a dynamic space for learning in a more fun and adventure ways! Join us on this vibrant journey of coding discovery!

-
-
- -
-
- Image of Oluwaseun Adeoye -
-
Oluwaseun Adeoye
-
- LinkedIn - GitHub -
- -
- Image of Cleopatra Tetsola -
-
Cleopatra Tetsola
-
- LinkedIn - GitHub -
-
- - - - - - - - - - - - - - - \ No newline at end of file diff --git a/flashcard.html b/flashcard.html deleted file mode 100644 index 9d77266..0000000 --- a/flashcard.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - flashcards - - - - - - - - - - -
-
-
- -
- - -
-
-
-
- -
-

Add Flashcard

-
- -
- Input fields cannot be empty! -
- - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - - - diff --git a/index.html b/index.html deleted file mode 100644 index 9de7a72..0000000 --- a/index.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - Flashcard App :: Home - - - - - - - - - - - - -
-
-

Introduction

-

- This is a Code First Girls Project builts using html,css and javascript - by a team of three aspiring developer. - The project tittled Flashcard is aimed at student who are newly learning how to code, - Its an alternative way to learn develop and store relevant coding contents hence - the reason why we have created this project. - Flashcards are small note cards used for testing and improving memory - through practiced information retrieval. Flashcards are typically two-sided, - with the prompt on one side and the information about the prompt on the other. - This may include names, vocabulary, concepts, or procedures. - -

-

-

TIPS FOR EFFECTIVE PRACTICE SESSIONS

-
    -
  • 1.Treat it Like an Exam. Don't Just Read Your Flashcards.
  • -
  • 2.Say Your Answers Out Loud While Studying.
  • -
  • 3.Review the Flashcards You Got Wrong Immediately After Every Practice Session.
  • -
  • 4.Switch Between Different Subjects Often (Interleaving).
  • -
  • 5.Mix Up the Order of Your Questions (Varied Practice).
  • -
-

-
-
- -
-
-

Flashcards

-

A flashcard or flash card is a card bearing information on both sides, - which is intended to be used as an aid in memorization. - Each flashcard typically bears a question or definition on one side and - an answer or target term on the other. Flashcards help students to engage in active recall or a process - wherein students actively engage in learning by stimulating our memories - and creating lasting connections to the material. When you create flashcards, - you should incorporate images as well as words to help improve your active recall -

-
-
- -
-
-

About us

-

This page tells you about our team, our shared vision for the this project, - history, values, and achievements, and introduce you to each team members - who are part of this project. its alllows you to see out recent and future portfolios - and give room for anyone to reach out to us in case of future collaboration. -

-
-
- -
- - -
-

Copyright ©2024 Designed by Olu & Cleo

-
-
- - - - - - - diff --git a/script.js b/script.js deleted file mode 100644 index 880e9a5..0000000 --- a/script.js +++ /dev/null @@ -1,337 +0,0 @@ - - -const container = document.querySelector(".container"); -const addQuestionCard = document.getElementById("add-question-card"); -const cardButton = document.getElementById("save-btn"); -const question = document.getElementById("question"); -const answer = document.getElementById("answer"); -const errorMessage = document.getElementById("error"); -const addQuestion = document.getElementById("add-flashcard"); -const closeBtn = document.getElementById("close-btn"); -const saveFlashcardsBtn = document.getElementById("save-flashcards"); -const viewFlashcardsBtn = document.getElementById("view-flashcards"); -let editBool = false; -let tempQuestion; -let tempAnswer; - - addQuestion.addEventListener("click", () => { - container.classList.add("hide"); - question.value = ""; - answer.value = ""; - addQuestionCard.classList.remove("hide"); -}); - - closeBtn.addEventListener("click", () => { - container.classList.remove("hide"); - addQuestionCard.classList.add("hide"); - if (editBool) { - editBool = false; - submitQuestion(); - } -}); - - cardButton.addEventListener("click", () => { - editBool = false; - tempQuestion = question.value.trim(); - tempAnswer = answer.value.trim(); - if (!tempQuestion || !tempAnswer) { - errorMessage.classList.remove("hide"); - } else { - container.classList.remove("hide"); - errorMessage.classList.add("hide"); - viewlist(); - question.value = ""; - answer.value = ""; - } -}); -saveFlashcardsBtn.addEventListener("click", () => { - saveFlashcards(); -}); -viewFlashcardsBtn.addEventListener("click", () => { - displayFlashcards(); -}); -function viewlist() { - var listCard = document.getElementsByClassName("card-list-container"); - var div = document.createElement("div"); - div.classList.add("card"); - div.innerHTML += `

${tempQuestion}

`; - var displayAnswer = document.createElement("p"); - displayAnswer.classList.add("answer-div", "hide"); - displayAnswer.innerText = tempAnswer; - var link = document.createElement("a"); - link.setAttribute("href", "#"); - link.setAttribute("class", "show-hide-btn"); - link.innerHTML = "Show/Hide"; - link.addEventListener("click", () => { - displayAnswer.classList.toggle("hide"); - }); - div.appendChild(link); - div.appendChild(displayAnswer); - let buttonsCon = document.createElement("div"); - buttonsCon.classList.add("buttons-con"); - var editButton = document.createElement("button"); - editButton.setAttribute("class", "edit"); - editButton.innerHTML = ``; - editButton.addEventListener("click", () => { - editBool = true; - modifyElement(editButton, true); - addQuestionCard.classList.remove("hide"); - }); - buttonsCon.appendChild(editButton); - disableButtons(false); - var deleteButton = document.createElement("button"); - deleteButton.setAttribute("class", "delete"); - deleteButton.innerHTML = ``; - deleteButton.addEventListener("click", () => { - deleteFlashcard(div); - }); - buttonsCon.appendChild(deleteButton); - div.appendChild(buttonsCon); - listCard[0].appendChild(div); - hideQuestion(); -} - -function modifyElement(element, isEdit) { - // Implement the functionality for editing or deleting elements -} - -function disableButtons(disabled) { - // Implement the functionality to disable or enable buttons -} -// Function to save flashcards to local storage -function saveFlashcards() { - const flashcards = getFlashcards(); - flashcards.push({ question: tempQuestion, answer: tempAnswer }); - localStorage.setItem("flashcards", JSON.stringify(flashcards)); -} -// Function to retrieve flashcards from local storage -function getFlashcards() { - const storedFlashcards = localStorage.getItem("flashcards"); - return storedFlashcards ? JSON.parse(storedFlashcards) : []; -} -// Function to delete a flashcard -function deleteFlashcard(cardElement) { - const flashcards = getFlashcards(); - const questionText = cardElement.querySelector(".question-div").innerText; - // Find index of the flashcard with the matching question - const index = flashcards.findIndex((flashcard) => flashcard.question === questionText); - if (index !== -1) { - // Remove the flashcard from the array - flashcards.splice(index, 1); - // Update local storage - localStorage.setItem("flashcards", JSON.stringify(flashcards)); - // Remove the card from the DOM - cardElement.parentElement.removeChild(cardElement); - } -} -// Function to display flashcards -function displayFlashcards() { - const flashcards = getFlashcards(); - const listCard = document.querySelector('.card-list-container'); - // Clear existing flashcards - listCard.innerHTML = ''; - // Display each flashcard - flashcards.forEach((flashcard, index) => { - const div = document.createElement('div'); - div.classList.add('card'); - div.innerHTML += `

${flashcard.question}

`; - const displayAnswer = document.createElement('p'); - displayAnswer.classList.add('answer-div', 'hide'); - displayAnswer.innerText = flashcard.answer; - const link = document.createElement('a'); - link.setAttribute('href', '#'); - link.setAttribute('class', 'show-hide-btn'); - link.innerHTML = 'Show/Hide'; - link.addEventListener('click', () => { - displayAnswer.classList.toggle('hide'); - }); - div.appendChild(link); - div.appendChild(displayAnswer); - listCard.appendChild(div); - }); -} - - -const pageTop = document.getElementById('page-top'); -const headerNavs = document.querySelector('.nav-bar ul li'); -let activePage = 'home'; - - - -function goToPage(pageName) { - if(pageName === 'About us') { - window.location.href = "about us.html"; - } else if(pageName === 'flashcard') { - window.location.href = "flashcard.html"; - } else { - window.location.href = "index.html"; - } -} - - -const container = document.querySelector(".container"); -const addQuestionCard = document.getElementById("add-question-card"); -const cardButton = document.getElementById("save-btn"); -const question = document.getElementById("question"); -const answer = document.getElementById("answer"); -const errorMessage = document.getElementById("error"); -const addQuestion = document.getElementById("add-flashcard"); -const closeBtn = document.getElementById("close-btn"); -const saveFlashcardsBtn = document.getElementById("save-flashcards"); -const viewFlashcardsBtn = document.getElementById("view-flashcards"); -let editBool = false; -let tempQuestion; -let tempAnswer; - - addQuestion.addEventListener("click", () => { - container.classList.add("hide"); - question.value = ""; - answer.value = ""; - addQuestionCard.classList.remove("hide"); -}); - - closeBtn.addEventListener("click", () => { - container.classList.remove("hide"); - addQuestionCard.classList.add("hide"); - if (editBool) { - editBool = false; - submitQuestion(); - } -}); - - cardButton.addEventListener("click", () => { - editBool = false; - tempQuestion = question.value.trim(); - tempAnswer = answer.value.trim(); - if (!tempQuestion || !tempAnswer) { - errorMessage.classList.remove("hide"); - } else { - container.classList.remove("hide"); - errorMessage.classList.add("hide"); - viewlist(); - question.value = ""; - answer.value = ""; - } -}); -saveFlashcardsBtn.addEventListener("click", () => { - saveFlashcards(); -}); -viewFlashcardsBtn.addEventListener("click", () => { - displayFlashcards(); -}); -function viewlist() { - var listCard = document.getElementsByClassName("card-list-container"); - var div = document.createElement("div"); - div.classList.add("card"); - div.innerHTML += `

${tempQuestion}

`; - var displayAnswer = document.createElement("p"); - displayAnswer.classList.add("answer-div", "hide"); - displayAnswer.innerText = tempAnswer; - var link = document.createElement("a"); - link.setAttribute("href", "#"); - link.setAttribute("class", "show-hide-btn"); - link.innerHTML = "Show/Hide"; - link.addEventListener("click", () => { - displayAnswer.classList.toggle("hide"); - }); - div.appendChild(link); - div.appendChild(displayAnswer); - let buttonsCon = document.createElement("div"); - buttonsCon.classList.add("buttons-con"); - var editButton = document.createElement("button"); - editButton.setAttribute("class", "edit"); - editButton.innerHTML = ``; - editButton.addEventListener("click", () => { - editBool = true; - modifyElement(editButton, true); - addQuestionCard.classList.remove("hide"); - }); - buttonsCon.appendChild(editButton); - disableButtons(false); - var deleteButton = document.createElement("button"); - deleteButton.setAttribute("class", "delete"); - deleteButton.innerHTML = ``; - deleteButton.addEventListener("click", () => { - deleteFlashcard(div); - }); - buttonsCon.appendChild(deleteButton); - div.appendChild(buttonsCon); - listCard[0].appendChild(div); - hideQuestion(); -} - -function modifyElement(element, isEdit) { - // Implement the functionality for editing or deleting elements -} - -function disableButtons(disabled) { - // Implement the functionality to disable or enable buttons -} -// Function to save flashcards to local storage -function saveFlashcards() { - const flashcards = getFlashcards(); - flashcards.push({ question: tempQuestion, answer: tempAnswer }); - localStorage.setItem("flashcards", JSON.stringify(flashcards)); -} -// Function to retrieve flashcards from local storage -function getFlashcards() { - const storedFlashcards = localStorage.getItem("flashcards"); - return storedFlashcards ? JSON.parse(storedFlashcards) : []; -} -// Function to delete a flashcard -function deleteFlashcard(cardElement) { - const flashcards = getFlashcards(); - const questionText = cardElement.querySelector(".question-div").innerText; - // Find index of the flashcard with the matching question - const index = flashcards.findIndex((flashcard) => flashcard.question === questionText); - if (index !== -1) { - // Remove the flashcard from the array - flashcards.splice(index, 1); - // Update local storage - localStorage.setItem("flashcards", JSON.stringify(flashcards)); - // Remove the card from the DOM - cardElement.parentElement.removeChild(cardElement); - } -} -// Function to display flashcards -function displayFlashcards() { - const flashcards = getFlashcards(); - const listCard = document.querySelector('.card-list-container'); - // Clear existing flashcards - listCard.innerHTML = ''; - // Display each flashcard - flashcards.forEach((flashcard, index) => { - const div = document.createElement('div'); - div.classList.add('card'); - div.innerHTML += `

${flashcard.question}

`; - const displayAnswer = document.createElement('p'); - displayAnswer.classList.add('answer-div', 'hide'); - displayAnswer.innerText = flashcard.answer; - const link = document.createElement('a'); - link.setAttribute('href', '#'); - link.setAttribute('class', 'show-hide-btn'); - link.innerHTML = 'Show/Hide'; - link.addEventListener('click', () => { - displayAnswer.classList.toggle('hide'); - }); - div.appendChild(link); - div.appendChild(displayAnswer); - listCard.appendChild(div); - }); -} - - -const pageTop = document.getElementById('page-top'); -const headerNavs = document.querySelector('.nav-bar ul li'); -let activePage = 'home'; - - - -function goToPage(pageName) { - if(pageName === 'About us') { - window.location.href = "about us.html"; - } else if(pageName === 'flashcard') { - window.location.href = "flashcard.html"; - } else { - window.location.href = "index.html"; -