|
| 1 | +* { |
| 2 | + margin: 0; |
| 3 | + padding: 0; |
| 4 | + box-sizing: border-box; |
| 5 | +} |
| 6 | + |
| 7 | +body { |
| 8 | + font-family: "Roboto", sans-serif; |
| 9 | + background-color: #f5f5f5; |
| 10 | + background-color: #dfdbe5; |
| 11 | + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23000000' fill-opacity='0.08'%3E%3Cpath fill-rule='evenodd' d='M11 0l5 20H6l5-20zm42 31a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM0 72h40v4H0v-4zm0-8h31v4H0v-4zm20-16h20v4H20v-4zM0 56h40v4H0v-4zm63-25a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM53 41a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-30 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-28-8a5 5 0 0 0-10 0h10zm10 0a5 5 0 0 1-10 0h10zM56 5a5 5 0 0 0-10 0h10zm10 0a5 5 0 0 1-10 0h10zm-3 46a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm10 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM21 0l5 20H16l5-20zm43 64v-4h-4v4h-4v4h4v4h4v-4h4v-4h-4zM36 13h4v4h-4v-4zm4 4h4v4h-4v-4zm-4 4h4v4h-4v-4zm8-8h4v4h-4v-4z'/%3E%3C/g%3E%3C/svg%3E"); |
| 12 | +} |
| 13 | + |
| 14 | +.container { |
| 15 | + width: 100%; |
| 16 | + height: 100vh; |
| 17 | + display: flex; |
| 18 | + flex-direction: column; |
| 19 | + align-items: center; |
| 20 | + justify-content: center; |
| 21 | +} |
| 22 | + |
| 23 | +.quote-container { |
| 24 | + width: 80%; |
| 25 | + max-width: 600px; |
| 26 | + padding: 20px 30px; |
| 27 | + border-radius: 10px; |
| 28 | + background-color: rgba(248, 241, 241, 0.8); |
| 29 | + box-shadow: 0 10px 10px 10px rgba(255, 255, 255, 0.4); |
| 30 | + margin-bottom: 20px; |
| 31 | + text-align: center; |
| 32 | + box-shadow: 0 0.3rem rgba(255, 255, 255, 0.4); |
| 33 | +} |
| 34 | + |
| 35 | +.quote-text { |
| 36 | + font-size: 1.5rem; |
| 37 | + font-weight: 700; |
| 38 | + line-height: 1.5; |
| 39 | + margin-bottom: 20px; |
| 40 | + justify-content: center; |
| 41 | +} |
| 42 | + |
| 43 | +.quote-text i { |
| 44 | + margin-right: 10px; |
| 45 | + justify-content: center; |
| 46 | +} |
| 47 | + |
| 48 | +.quote-author { |
| 49 | + margin: 15 px 20px; |
| 50 | + font-size: 1rem; |
| 51 | + font-weight: 400; |
| 52 | + text-align: right; |
| 53 | +} |
| 54 | + |
| 55 | +.quote-author, |
| 56 | +.author { |
| 57 | + margin: 15px auto; |
| 58 | + text-align: center; |
| 59 | + font-weight: 500; |
| 60 | +} |
| 61 | + |
| 62 | +.button-container { |
| 63 | + display: flex; |
| 64 | + justify-content: space-between; |
| 65 | + width: 80%; |
| 66 | + max-width: 600px; |
| 67 | +} |
| 68 | + |
| 69 | +.twitter-button { |
| 70 | + background-color: #38a1f3; |
| 71 | + cursor: pointer; |
| 72 | + height: 2.5 rem; |
| 73 | + color: #fff; |
| 74 | + border: none; |
| 75 | + border-radius: 5px; |
| 76 | + padding: 10px 15px; |
| 77 | + font-size: 1rem; |
| 78 | + transition: background-color 0.3s ease; |
| 79 | + box-shadow: 0 0.3rem rgba(255, 255, 255, 0.4); |
| 80 | +} |
| 81 | + |
| 82 | +.twitter-button:hover { |
| 83 | + background-color: #2c9ff7; |
| 84 | + box-shadow: #0d0e0f; |
| 85 | +} |
| 86 | + |
| 87 | +#new-quote { |
| 88 | + background-color: #b2a9a9; |
| 89 | + color: #0d0e0f; |
| 90 | + border: 2px solid #a8b9c6; |
| 91 | + border-radius: 5px; |
| 92 | + padding: 10px 15px; |
| 93 | + font-size: 1rem; |
| 94 | + cursor: pointer; |
| 95 | + transition: background-color 0.3s ease, color 0.3s ease; |
| 96 | +} |
| 97 | + |
| 98 | +#new-quote:hover { |
| 99 | + background-color: #38a1f3; |
| 100 | + color: #fff; |
| 101 | +} |
| 102 | + |
| 103 | +#new-quote:active { |
| 104 | + transform: translate(0, 0.3rem); |
| 105 | + box-shadow: 0 0.1rem rgba(255, 255, 255, 0.4); |
| 106 | +} |
| 107 | + |
| 108 | +/* gfg loader */ |
| 109 | +.loader { |
| 110 | + border: 16px solid #f3f3f3; |
| 111 | + border-radius: 50%; |
| 112 | + border-top: 16px solid blue; |
| 113 | + border-bottom: 16px solid blue; |
| 114 | + width: 120px; |
| 115 | + height: 120px; |
| 116 | + -webkit-animation: spin 2s linear infinite; |
| 117 | + animation: spin 2s linear infinite; |
| 118 | +} |
| 119 | + |
| 120 | +@-webkit-keyframes spin { |
| 121 | + 0% { |
| 122 | + -webkit-transform: rotate(0deg); |
| 123 | + } |
| 124 | + 100% { |
| 125 | + -webkit-transform: rotate(360deg); |
| 126 | + } |
| 127 | +} |
| 128 | + |
| 129 | +@keyframes spin { |
| 130 | + 0% { |
| 131 | + transform: rotate(0deg); |
| 132 | + } |
| 133 | + 100% { |
| 134 | + transform: rotate(360deg); |
| 135 | + } |
| 136 | +} |
0 commit comments