-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4987 from KapuluruBhuvaneswariVspdbct/main
- Loading branch information
Showing
5 changed files
with
310 additions
and
0 deletions.
There are no files selected for viewing
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
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,93 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Approach to Reading Poetry Books</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #ffd2d3; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
margin: 0; | ||
} | ||
|
||
.content-container { | ||
background: white; | ||
padding: 15px; | ||
border-radius: 10px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
width: 70%; | ||
max-width: 800px; | ||
text-align: center; | ||
margin-top: 150px; | ||
} | ||
|
||
h2 { | ||
margin-bottom: 15px; | ||
} | ||
|
||
h3 { | ||
text-align: left; | ||
margin-top: 20px; | ||
} | ||
|
||
p, ul { | ||
text-align: left; | ||
} | ||
|
||
ul { | ||
margin: 10px 0; | ||
padding-left: 20px; | ||
} | ||
|
||
ul li { | ||
margin: 8px 0; | ||
} | ||
|
||
button { | ||
padding: 10px 20px; | ||
margin-top: 20px; | ||
cursor: pointer; | ||
background-color: #b00000; | ||
color: white; | ||
border: none; | ||
border-radius: 5px; | ||
font-size: 16px; | ||
} | ||
|
||
button:hover { | ||
background-color: #870000; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="content-container"> | ||
<h2>How to Approach Reading Poetry Books</h2> | ||
<p>Reading poetry can be an emotional and enriching experience. Here's a guide to help you dive into some of the most popular poetry collections:</p> | ||
<ul> | ||
<li><strong>Read Slowly and Reflect:</strong> Poetry often requires a slow, contemplative read. Take your time with each line and reflect on its meaning.</li> | ||
<li><strong>Explore Themes:</strong> Poetry often explores themes of love, loss, identity, and nature. Think about how these themes resonate with your own life.</li> | ||
<li><strong>Appreciate the Language:</strong> Pay attention to the language, rhythm, and imagery. Poetry is an art form that uses words to paint vivid pictures.</li> | ||
<li><strong>Connect with the Poet:</strong> Get to know the background of the poet and their life experiences. This can deepen your understanding of the collection.</li> | ||
<li><strong>Read Aloud:</strong> Poetry has a musical quality, so reading it aloud can help you appreciate its sound and flow.</li> | ||
</ul> | ||
|
||
<h3>Popular Poetry Books</h3> | ||
<ul> | ||
<li><strong>The Sun and Her Flowers</strong> by Rupi Kaur – A beautiful collection of poems about growth, healing, and self-love.</li> | ||
<li><strong>Milk and Honey</strong> by Rupi Kaur – A deeply personal exploration of pain, love, and loss through raw, emotional poetry.</li> | ||
<li><strong>Citizens</strong> by Claudia Rankine – A thought-provoking collection that explores race, identity, and the complexities of living in America.</li> | ||
<li><strong>Leaves of Grass</strong> by Walt Whitman – A classic collection that explores themes of individualism, nature, and the American experience.</li> | ||
<li><strong>Love Poems</strong> by Pablo Neruda – A passionate collection of poems about love, desire, and human connection.</li> | ||
</ul> | ||
|
||
<button onclick="window.location.href='poetry.html';">Return to Home</button> | ||
</div> | ||
|
||
</body> | ||
</html> |
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,186 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Poetry Books Quiz</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #ffd2d3; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
margin: 0; | ||
} | ||
|
||
.quiz-container { | ||
background: white; | ||
padding: 20px; | ||
border-radius: 10px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
width: 300px; | ||
text-align: center; | ||
} | ||
|
||
button { | ||
padding: 10px 20px; | ||
margin-top: 20px; | ||
cursor: pointer; | ||
background-color: #b00000; | ||
color: white; | ||
border: none; | ||
border-radius: 5px; | ||
display: block; | ||
width: 100%; | ||
} | ||
|
||
button:hover { | ||
background-color: #870000; | ||
} | ||
|
||
h4 { | ||
margin: 10px 0; | ||
} | ||
|
||
.option { | ||
margin: 5px 0; | ||
} | ||
|
||
.solution { | ||
margin-top: 10px; | ||
text-align: left; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="quiz-container"> | ||
<h1>Poetry Books Quiz</h1> | ||
<div id="quiz-questions"> | ||
<!-- Questions will be inserted here --> | ||
</div> | ||
<button id="submit-button" onclick="submitQuiz()">Submit</button> | ||
<div id="quiz-result" style="display: none;"></div> | ||
<button id="home-button" style="display: none;" onclick="window.location.href='index.html';">Return to Home</button> | ||
<button id="solutions-button" style="display: none;" onclick="showSolutions()">See Solutions</button> | ||
</div> | ||
|
||
<script> | ||
const quizData = [ | ||
{ | ||
question: "Who wrote 'The Sun and Her Flowers'?", | ||
options: ["Rupi Kaur", "Lang Leav", "Sylvia Plath", "Pablo Neruda"], | ||
answer: "Rupi Kaur" | ||
}, | ||
{ | ||
question: "Which poetry collection was written by Rupi Kaur and explores themes of love, loss, and femininity?", | ||
options: ["Milk and Honey", "The Sun and Her Flowers", "The Poetry of Pain", "Love Poems"], | ||
answer: "Milk and Honey" | ||
}, | ||
{ | ||
question: "Who is the author of 'Leaves of Grass'?", | ||
options: ["Walt Whitman", "Emily Dickinson", "Robert Frost", "Langston Hughes"], | ||
answer: "Walt Whitman" | ||
}, | ||
{ | ||
question: "Which poetry book by Ocean Vuong explores themes of family, loss, and identity?", | ||
options: ["Love Poems", "Night Sky with Exit Wounds", "Citizen: An American Lyric", "On Earth We're Briefly Gorgeous"], | ||
answer: "On Earth We're Briefly Gorgeous" | ||
}, | ||
{ | ||
question: "Which poet wrote 'Citizen: An American Lyric' that focuses on race, identity, and belonging?", | ||
options: ["Claudia Rankine", "Natasha Trethewey", "Warsan Shire", "Joy Harjo"], | ||
answer: "Claudia Rankine" | ||
} | ||
]; | ||
|
||
let currentQuestionIndex = 0; | ||
let score = 0; | ||
|
||
function loadQuestion() { | ||
const questionElement = document.getElementById('quiz-questions'); | ||
questionElement.innerHTML = ''; | ||
|
||
const currentQuestion = quizData[currentQuestionIndex]; | ||
const questionText = document.createElement('h4'); | ||
questionText.innerText = currentQuestion.question; | ||
questionElement.appendChild(questionText); | ||
|
||
currentQuestion.options.forEach(option => { | ||
const optionButton = document.createElement('button'); | ||
optionButton.classList.add('option'); | ||
optionButton.innerText = option; | ||
optionButton.onclick = () => selectAnswer(option); | ||
questionElement.appendChild(optionButton); | ||
}); | ||
} | ||
|
||
function selectAnswer(selectedOption) { | ||
const currentQuestion = quizData[currentQuestionIndex]; | ||
if (selectedOption === currentQuestion.answer) { | ||
score++; | ||
} | ||
currentQuestionIndex++; | ||
|
||
if (currentQuestionIndex < quizData.length) { | ||
loadQuestion(); | ||
} else { | ||
showResult(); | ||
} | ||
} | ||
|
||
function showResult() { | ||
const quizContainer = document.querySelector('.quiz-container'); | ||
quizContainer.innerHTML = `<h2>Your Score: ${score}/${quizData.length}</h2>`; | ||
|
||
const homeButton = document.createElement('button'); | ||
homeButton.onclick = () => window.location.href = 'index.html'; | ||
homeButton.innerText = 'Return to Home'; | ||
quizContainer.appendChild(homeButton); | ||
|
||
const solutionsButton = document.createElement('button'); | ||
solutionsButton.onclick = showSolutions; | ||
solutionsButton.innerText = 'See Solutions'; | ||
quizContainer.appendChild(solutionsButton); | ||
} | ||
|
||
function showSolutions() { | ||
const quizContainer = document.querySelector('.quiz-container'); | ||
quizContainer.innerHTML = '<h2>Quiz Solutions</h2>'; | ||
|
||
quizData.forEach((question, index) => { | ||
const solutionElement = document.createElement('div'); | ||
solutionElement.classList.add('solution'); | ||
|
||
const questionText = document.createElement('h4'); | ||
questionText.innerText = `${index + 1}. ${question.question}`; | ||
solutionElement.appendChild(questionText); | ||
|
||
const correctAnswer = document.createElement('p'); | ||
correctAnswer.innerText = `Correct Answer: ${question.answer}`; | ||
solutionElement.appendChild(correctAnswer); | ||
|
||
quizContainer.appendChild(solutionElement); | ||
}); | ||
|
||
const homeButton = document.createElement('button'); | ||
homeButton.onclick = () => window.location.href = 'index.html'; | ||
homeButton.innerText = 'Return to Home'; | ||
quizContainer.appendChild(homeButton); | ||
} | ||
|
||
function submitQuiz() { | ||
if (currentQuestionIndex < quizData.length) { | ||
alert("Please answer all questions before submitting!"); | ||
} else { | ||
showResult(); | ||
} | ||
} | ||
|
||
document.addEventListener('DOMContentLoaded', loadQuestion); | ||
</script> | ||
|
||
</body> | ||
</html> |
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