diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md new file mode 100644 index 0000000..773bc50 --- /dev/null +++ b/CONTRIBUTORS.md @@ -0,0 +1 @@ +Maldini Radjab Junior \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..cbcf5c5 --- /dev/null +++ b/index.html @@ -0,0 +1,43 @@ + + + + + + Quote Generator + + + + + +
+ +
+ + +
+ +
+ +
+ +
+ + +
+
+ +
+ + + + + diff --git a/quotes.js b/quotes.js new file mode 100644 index 0000000..7f88ad9 --- /dev/null +++ b/quotes.js @@ -0,0 +1,554 @@ +const localQuotes = [ + { + text: 'Genius is one percent inspiration and ninety-nine percent perspiration.', + author: 'Thomas Edison', + }, + { + text: 'You can observe a lot just by watching.', + author: 'Yogi Berra', + }, + { + text: 'A house divided against itself cannot stand.', + author: 'Abraham Lincoln', + }, + { + text: 'Difficulties increase the nearer we get to the goal.', + author: 'Johann Wolfgang von Goethe', + }, + { + text: 'Fate is in your hands and no one elses', + author: 'Byron Pulsifer', + }, + { + text: 'Be the chief but never the lord.', + author: 'Lao Tzu', + }, + { + text: 'Nothing happens unless first we dream.', + author: 'Carl Sandburg', + }, + { + text: 'Well begun is half done.', + author: 'Aristotle', + }, + { + text: 'Life is a learning experience, only if you learn.', + author: 'Yogi Berra', + }, + { + text: 'Self-complacency is fatal to progress.', + author: 'Margaret Sangster', + }, + { + text: 'Peace comes from within. Do not seek it without.', + author: 'Buddha', + }, + { + text: 'What you give is what you get.', + author: 'Byron Pulsifer', + }, + { + text: 'We can only learn to love by loving.', + author: 'Iris Murdoch', + }, + { + text: 'Life is change. Growth is optional. Choose wisely.', + author: 'Karen Clark', + }, + { + text: "You'll see it when you believe it.", + author: 'Wayne Dyer', + }, + { + text: 'Today is the tomorrow we worried about yesterday.', + author: null, + }, + { + text: "It's easier to see the mistakes on someone else's paper.", + author: null, + }, + { + text: 'Every man dies. Not every man really lives.', + author: null, + }, + { + text: 'To lead people walk behind them.', + author: 'Lao Tzu', + }, + { + text: 'Having nothing, nothing can he lose.', + author: 'William Shakespeare', + }, + { + text: 'Trouble is only opportunity in work clothes.', + author: 'Henry J. Kaiser', + }, + { + text: 'A rolling stone gathers no moss.', + author: 'Publilius Syrus', + }, + { + text: 'Ideas are the beginning points of all fortunes.', + author: 'Napoleon Hill', + }, + { + text: 'Everything in life is luck.', + author: 'Donald Trump', + }, + { + text: 'Doing nothing is better than being busy doing nothing.', + author: 'Lao Tzu', + }, + { + text: 'Trust yourself. You know more than you think you do.', + author: 'Benjamin Spock', + }, + { + text: 'Study the past, if you would divine the future.', + author: 'Confucius', + }, + { + text: 'The day is already blessed, find peace within it.', + author: null, + }, + { + text: 'From error to error one discovers the entire truth.', + author: 'Sigmund Freud', + }, + { + text: 'Well done is better than well said.', + author: 'Benjamin Franklin', + }, + { + text: 'Bite off more than you can chew, then chew it.', + author: 'Ella Williams', + }, + { + text: 'Work out your own salvation. Do not depend on others.', + author: 'Buddha', + }, + { + text: 'One today is worth two tomorrows.', + author: 'Benjamin Franklin', + }, + { + text: 'Once you choose hope, anythings possible.', + author: 'Christopher Reeve', + }, + { + text: 'God always takes the simplest way.', + author: 'Albert Einstein', + }, + { + text: 'One fails forward toward success.', + author: 'Charles Kettering', + }, + { + text: 'From small beginnings come great things.', + author: null, + }, + { + text: 'Learning is a treasure that will follow its owner everywhere', + author: 'Chinese proverb', + }, + { + text: 'Be as you wish to seem.', + author: 'Socrates', + }, + { + text: 'The world is always in movement.', + author: 'V. Naipaul', + }, + { + text: 'Never mistake activity for achievement.', + author: 'John Wooden', + }, + { + text: 'What worries you masters you.', + author: 'Haddon Robinson', + }, + { + text: 'One faces the future with ones past.', + author: 'Pearl Buck', + }, + { + text: 'Goals are the fuel in the furnace of achievement.', + author: 'Brian Tracy', + }, + { + text: 'Who sows virtue reaps honour.', + author: 'Leonardo da Vinci', + }, + { + text: 'Be kind whenever possible. It is always possible.', + author: 'Dalai Lama', + }, + { + text: "Talk doesn't cook rice.", + author: 'Chinese proverb', + }, + { + text: 'He is able who thinks he is able.', + author: 'Buddha', + }, + { + text: 'A goal without a plan is just a wish.', + author: 'Larry Elder', + }, + { + text: 'To succeed, we must first believe that we can.', + author: 'Michael Korda', + }, + { + text: 'Learn from yesterday, live for today, hope for tomorrow.', + author: 'Albert Einstein', + }, + { + text: 'A weed is no more than a flower in disguise.', + author: 'James Lowell', + }, + { + text: 'Do, or do not. There is no try.', + author: 'Yoda', + }, + { + text: 'All serious daring starts from within.', + author: 'Harriet Beecher Stowe', + }, + { + text: 'The best teacher is experience learned from failures.', + author: 'Byron Pulsifer', + }, + { + text: 'Think how hard physics would be if particles could think.', + author: 'Murray Gell-Mann', + }, + { + text: "Love is the flower you've got to let grow.", + author: 'John Lennon', + }, + { + text: "Don't wait. The time will never be just right.", + author: 'Napoleon Hill', + }, + { + text: 'Time is the wisest counsellor of all.', + author: 'Pericles', + }, + { + text: 'You give before you get.', + author: 'Napoleon Hill', + }, + { + text: 'Wisdom begins in wonder.', + author: 'Socrates', + }, + { + text: 'Without courage, wisdom bears no fruit.', + author: 'Baltasar Gracian', + }, + { + text: 'Change in all things is sweet.', + author: 'Aristotle', + }, + { + text: 'What you fear is that which requires action to overcome.', + author: 'Byron Pulsifer', + }, + { + text: 'When performance exceeds ambition, the overlap is called success.', + author: 'Cullen Hightower', + }, + { + text: 'When deeds speak, words are nothing.', + author: 'African proverb', + }, + { + text: 'Real magic in relationships means an absence of judgement of others.', + author: 'Wayne Dyer', + }, + { + text: 'I never think of the future. It comes soon enough.', + author: 'Albert Einstein', + }, + { + text: 'Skill to do comes of doing.', + author: 'Ralph Emerson', + }, + { + text: 'Wisdom is the supreme part of happiness.', + author: 'Sophocles', + }, + { + text: 'I believe that every person is born with talent.', + author: 'Maya Angelou', + }, + { + text: 'Important principles may, and must, be inflexible.', + author: 'Abraham Lincoln', + }, + { + text: 'The undertaking of a new action brings new strength.', + author: 'Richard Evans', + }, + { + text: 'The years teach much which the days never know.', + author: 'Ralph Emerson', + }, + { + text: 'Our distrust is very expensive.', + author: 'Ralph Emerson', + }, + { + text: 'All know the way; few actually walk it.', + author: 'Bodhidharma', + }, + { + text: 'Great talent finds happiness in execution.', + author: 'Johann Wolfgang von Goethe', + }, + { + text: 'Faith in oneself is the best and safest course.', + author: 'Michelangelo', + }, + { + text: 'Courage is going from failure to failure without losing enthusiasm.', + author: 'Winston Churchill', + }, + { + text: 'The two most powerful warriors are patience and time.', + author: 'Leo Tolstoy', + }, + { + text: 'Anticipate the difficult by managing the easy.', + author: 'Lao Tzu', + }, + { + text: 'Those who are free of resentful thoughts surely find peace.', + author: 'Buddha', + }, + { + text: 'A short saying often contains much wisdom.', + author: 'Sophocles', + }, + { + text: 'It takes both sunshine and rain to make a rainbow.', + author: null, + }, + { + text: 'A beautiful thing is never perfect.', + author: null, + }, + { + text: 'Only do what your heart tells you.', + author: 'Princess Diana', + }, + { + text: 'Life is movement-we breathe, we eat, we walk, we move!', + author: 'John Pierrakos', + }, + { + text: 'No one can make you feel inferior without your consent.', + author: 'Eleanor Roosevelt', + }, + { + text: 'Argue for your limitations, and sure enough theyre yours.', + author: 'Richard Bach', + }, + { + text: 'Luck is what happens when preparation meets opportunity.', + author: 'Seneca', + }, + { + text: 'Victory belongs to the most persevering.', + author: 'Napoleon Bonaparte', + }, + { + text: 'Love all, trust a few, do wrong to none.', + author: 'William Shakespeare', + }, + { + text: 'In order to win, you must expect to win.', + author: 'Richard Bach', + }, + { + text: 'A goal is a dream with a deadline.', + author: 'Napoleon Hill', + }, + { + text: 'You can do it if you believe you can!', + author: 'Napoleon Hill', + }, + { + text: "Set your goals high, and don't stop till you get there.", + author: 'Bo Jackson', + }, + { + text: 'Every new day is another chance to change your life.', + author: null, + }, + { + text: 'Smile, breathe, and go slowly.', + author: 'Thich Nhat Hanh', + }, + { + text: 'Nobody will believe in you unless you believe in yourself.', + author: 'Liberace', + }, + { + text: 'Do more than dream: work.', + author: 'William Arthur Ward', + }, + { + text: 'No man was ever wise by chance.', + author: 'Seneca', + }, + { + text: 'Some pursue happiness, others create it.', + author: null, + }, + { + text: 'He that is giddy thinks the world turns round.', + author: 'William Shakespeare', + }, + { + text: "Don't ruin the present with the ruined past.", + author: 'Ellen Gilchrist', + }, + { + text: 'Do something wonderful, people may imitate it.', + author: 'Albert Schweitzer', + }, + { + text: 'We do what we do because we believe.', + author: null, + }, + { + text: 'Do one thing every day that scares you.', + author: 'Eleanor Roosevelt', + }, + { + text: 'If you cannot be silent be brilliant and thoughtful.', + author: 'Byron Pulsifer', + }, + { + text: 'Who looks outside, dreams; who looks inside, awakes.', + author: 'Carl Jung', + }, + { + text: 'What we think, we become.', + author: 'Buddha', + }, + { + text: 'The shortest answer is doing.', + author: 'Lord Herbert', + }, + { + text: 'All our knowledge has its origins in our perceptions.', + author: 'Leonardo da Vinci', + }, + { + text: 'The harder you fall, the higher you bounce.', + author: null, + }, + { + text: 'Trusting our intuition often saves us from disaster.', + author: 'Anne Wilson Schaef', + }, + { + text: 'Truth is powerful and it prevails.', + author: 'Sojourner Truth', + }, + { + text: 'Light tomorrow with today!', + author: 'Elizabeth Browning', + }, + { + text: 'Silence is a fence around wisdom.', + author: 'German proverb', + }, + { + text: 'Society develops wit, but its contemplation alone forms genius.', + author: 'Madame de Stael', + }, + { + text: 'The simplest things are often the truest.', + author: 'Richard Bach', + }, + { + text: 'Everyone smiles in the same language.', + author: null, + }, + { + text: 'Yesterday I dared to struggle. Today I dare to win.', + author: 'Bernadette Devlin', + }, + { + text: 'No alibi will save you from accepting the responsibility.', + author: 'Napoleon Hill', + }, + { + text: 'If you can dream it, you can do it.', + author: 'Walt Disney', + }, + { + text: 'It is better to travel well than to arrive.', + author: 'Buddha', + }, + { + text: "Life shrinks or expands in proportion to one's courage.", + author: 'Anais Nin', + }, + { + text: 'You have to believe in yourself.', + author: 'Sun Tzu', + }, + { + text: 'Our intention creates our reality.', + author: 'Wayne Dyer', + }, + { + text: 'Silence is a true friend who never betrays.', + author: 'Confucius', + }, + { + text: 'Character develops itself in the stream of life.', + author: 'Johann Wolfgang von Goethe', + }, + { + text: 'From little acorns mighty oaks do grow.', + author: 'American proverb', + }, + { + text: "You can't stop the waves, but you can learn to surf.", + author: 'Jon Kabat-Zinn', + }, + { + text: 'Reality does not conform to the ideal, but confirms it.', + author: 'Gustave Flaubert', + }, + { + text: 'Speak low, if you speak love.', + author: 'William Shakespeare', + }, + { + text: 'A really great talent finds its happiness in execution.', + author: 'Johann Wolfgang von Goethe', + }, + { + text: 'Reality leaves a lot to the imagination.', + author: 'John Lennon', + }, + { + text: 'The greatest remedy for anger is delay.', + author: 'Seneca', + }, + { + text: 'Growth itself contains the germ of happiness.', + author: 'Pearl Buck', + }, + { + text: "You can do what's reasonable or you can decide what's possible.", + author: null, + }, +]; diff --git a/script.js b/script.js new file mode 100644 index 0000000..f8eea77 --- /dev/null +++ b/script.js @@ -0,0 +1,69 @@ +const quoteContainer = document.getElementById("quote-container"); +const quoteText = document.getElementById("quote"); +const authorText = document.getElementById("author"); +const twitterBtn = document.getElementById("twitter"); +const newQuoteBtn = document.getElementById("new-quote"); +const loader = document.getElementById("loader"); + +let apiQuotes = []; + +// Show Loading +function loading() { + loader.hidden = false; + quoteContainer.hidden = true; +} + +// Hide Loading +function complete() { + quoteContainer.hidden = false; + loader.hidden = true; +} + +// Show New Quote +function newQuote() { + loading(); + // Pick a random quote from apiQuotes array + const quote = apiQuotes[Math.floor(Math.random() * apiQuotes.length)]; + //Check if Author: Firstname Lastname is blank and replace it with 'Unknown' + if (!quote.author) { + authorText.textContent = "Unknown"; + } else { + authorText.textContent = quote.author; + } + + // Check Quote length to determine styling + if (quote.text.length > 120) { + quoteText.classList.add("long-quote"); + } else { + quoteText.classList.remove("long-quote"); + } + //Set quote, Hide loader + complete(); + quoteText.textContent = quote.text; +} + +// Get Quotes from API +async function getQuotes() { + loading(); + const apiUrl = "https://jacintodesign.github.io/quotes-api/data/quotes.json"; + try { + const response = await fetch(apiUrl); + apiQuotes = await response.json(); + newQuote(); + } catch (error) { + // Cath error here + } +} + +// Tweet Quote +function tweetQuote() { + const twitterUrl = `https://twitter.com/intent/tweet?text=${quoteText.textContent} - ${authorText.textContent}`; + window.open(twitterUrl, "_blank"); +} + +// Event Listeners +newQuoteBtn.addEventListener("click", newQuote); +twitterBtn.addEventListener("click", tweetQuote); + +// on load +getQuotes(); diff --git a/style.css b/style.css new file mode 100644 index 0000000..e7198f0 --- /dev/null +++ b/style.css @@ -0,0 +1,109 @@ +@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"); + +html { + box-sizing: boreder-box; +} + +body { + margin: 0; + min-height: 100vh; + background-color: #ffffff; + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%237f42e2' fill-opacity='0.4' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E"); + color: rgb(27, 27, 27); + font-family: Montserat, sans-serif; + font-weight: 700; + text-align: center; + display: flex; + align-items: center; + justify-content: center; +} + +.quote-container { + width: auto; + max-width: 900px; + padding: 20px 30px; + border-radius: 10px; + background-color: rgba(255, 255, 255, 0.9); + box-shadow: 0 10px 10px 10px #59025c4f; +} + +.quote-text { + font-size: 2.75rem; +} + +.long-quote { + font-size: 2rem; +} + +.fa-quote-left { + font-size: 4rem; +} + +.quote-author { + margin-top: 15px; + font-size: 2rem; + font-weight: 400; + font-style: italic; +} + +.button-container { + margin-top: 15px; + display: flex; + justify-content: space-between; +} + +button { + cursor: pointer; + font-size: 1.2rem; + height: 2.5rem; + border: none; + border-radius: 10px; + color: #fff; + background: #333; + outline: none; + padding: 0.5rem 1.8rem; + box-shadow: 0 0.3rem rgba(121, 121, 121, 0.65); +} + +button:hover { + filter: brightness(150%); +} + +button:active { + transform: translate(0, 0.3rem); + box-shadow: 0 0.1rem rgba(255, 255, 255, 0.65); +} + +.twitter-button:hover { + color: #38a1f3; +} + +.fa-twitter { + font-size: 1.5rem; +} + +/* Loader */ +.loader { + border: 16px solid #f3f3f3; + border-top: 16px solid #333; + border-radius: 50%; + width: 120px; + height: 120px; + animation: spin 2s linear infinite; + } + + @keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } + } + +/* Media Querry: Phone and Tablet */ +@media screen and (max-width: 1000px) { + .quote-container { + margin: auto 10px; + } + + .quote-text{ + font-size: 2.5rem; + } +} \ No newline at end of file