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

Word info graphic creator #68

Open
sanketgarade opened this issue Sep 20, 2021 · 3 comments
Open

Word info graphic creator #68

sanketgarade opened this issue Sep 20, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@sanketgarade
Copy link
Contributor

This is a feature to create card like images which can be shared on social media for creating awareness.

Additional to the search functionality, a user can get an info graphic (like the one shown below) when he or she search for a specific word. It can be downloaded as an image (worst case, take a screenshot) and can be shared further.

If anyone has any idea how this can be done and wants to take it up please let me know here. So that we can discuss further.

image

@sanketgarade sanketgarade added the help wanted Extra attention is needed label Sep 20, 2021
@zarbod
Copy link
Collaborator

zarbod commented Sep 26, 2021

How did you make this specific card?

@sanketgarade
Copy link
Contributor Author

How did you make this specific card?

Currently using Apple Keynote application. It's handy for me as it works on mobile, iPad as well as laptop.

But to make it available to everyone and to reduce manual effort, I want to make this work directly on our website.

@sanketgarade sanketgarade added enhancement New feature or request and removed help wanted Extra attention is needed labels Sep 30, 2021
@vinodnimbalkar
Copy link

Initial screen
image
After feeling the input words and clicking show
image
Please find below the initial source code which is without CSS.
index.html

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Marathi Shabd</title>
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <div class="display-card">
    <h1>मराठी वाचावा</h1>
    <h3>बोला. लिहा. वाचा. टिकवा.</h3>
    <div class="display-word">
      <h1 id="display-incorrect-word">Kitchen</h1>
      <h3 id="display-incorrect-sentence">भांडी Kitchen मध्ये आहेत.</h3>
      <div>incorrect emoji</div>
    </div>
    <div class="display-word">
      <h1 id="display-correct-word">स्वयंपाकघर</h1>
      <h3 id="display-correct-sentence">भांडी स्वयंकपाकघरात आहेत.</h3>
      <div>correct emoji</div>
    </div>
  </div>
  <hr>
  <form class="display-form">
    <label>Word</label> <input type="text" id="incorrect-word"></br>
    <label>Incorrect Sentence</label> <input type="text" id="incorrect-sentence"></br>
    <label>Correct Word</label> <input type="text" id="correct-word"></br>
    <label>Correct Sentence</label> <input type="text" id="correct-sentence"></br>
    <button type="button" onclick="showCard()">Show</button>
  </form>
</body>
<script src="index.js"></script>

</html>

index.js

function showCard() {
  const inorrectWord = document.querySelector('#incorrect-word').value;
  const incorrectSentence = document.querySelector('#incorrect-sentence').value;
  const correctWord = document.querySelector('#correct-word').value;
  const correctSentence = document.querySelector('#correct-sentence').value;

  document.querySelector('#display-incorrect-word').innerHTML = inorrectWord
  document.querySelector('#display-incorrect-sentence').innerHTML = incorrectSentence
  document.querySelector('#display-correct-word').innerHTML = correctWord
  document.querySelector('#display-correct-sentence').innerHTML = correctSentence
}

style.css

.display-card {
    text-align: center;
}
.display-form {
    margin: auto;
    width: 60%;
    padding: 10px;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants