Skip to content

Commit f1ee502

Browse files
committed
Return to form
1 parent fe30140 commit f1ee502

File tree

2 files changed

+19
-75
lines changed

2 files changed

+19
-75
lines changed

src/components/Header.vue

+5-51
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,12 @@
3131
class="text"
3232
>
3333
<h1 ref="mainTitle">
34-
Vote.
34+
Victor Mono
3535
</h1>
3636
<h2>
37-
<!-- The <em class="property" />
37+
The <em class="property" />
3838
<br class="hidden-sm-and-up">
39-
programming font -->
40-
<a
41-
href="https://en.wikiquote.org/wiki/Donald_Trump"
42-
target="_blank"
43-
>
44-
<em class="quotes" />
45-
</a>
39+
programming font
4640
</h2>
4741
<el-row
4842
type="flex"
@@ -193,8 +187,7 @@ export default {
193187
mounted () {
194188
this.granim = initGradient('.header-gradients', this.theme)
195189
this.granim.changeState(this.theme)
196-
// this.initTyped()
197-
this.initQuotes()
190+
this.initTyped()
198191
},
199192
methods: {
200193
initTyped () {
@@ -321,44 +314,6 @@ export default {
321314
}
322315
323316
return new Typed('.property', options)
324-
},
325-
initQuotes () {
326-
const options = {
327-
strings: [
328-
'"Mexico is paying for the wall"',
329-
'"We’re gonna crush the virus very quickly"',
330-
'"We’re rounding the turn, our numbers are incredible"',
331-
'"I think we’re leading everywhere"',
332-
'"Totally fake news"',
333-
'"It\'ll start getting cooler. You just watch."',
334-
'"I don\'t think science knows, actually."',
335-
'"The only way they\'re gonna win is by a rigged election."',
336-
'"New Zealand, by the way, had a big outbreak."',
337-
'"Leave Democrat cities. Let them rot."',
338-
'"Probably nastier even than Pocahontas"',
339-
'"I read a lot. I comprehend extraordinarily well."',
340-
'"You can take the number of cases and look we\'re last, meaning we\'re first."',
341-
'"It’s fading away, it’s going to fade away."',
342-
'"And is there a way we can do something like that, by injection inside or almost a cleaning?"',
343-
'"We’ve tested more than every other country in the world even put together"',
344-
'"I don\'t take responsibility at all"',
345-
'"I think my rhetoric is a very – it brings people together."',
346-
'"I am the chosen one."',
347-
'"Grab \'em by the p***y. You can do anything."',
348-
'"He\'s not a war hero"',
349-
'"I think that I would be a great uniter"',
350-
'"I love working. I\'m not a vacation guy. Right? Like Obama, he plays golf in Hawaii"'
351-
],
352-
startDelay: 500,
353-
typeSpeed: 5,
354-
backSpeed: 1,
355-
smartBackspace: true,
356-
backDelay: 4000,
357-
loop: true,
358-
shuffle: true
359-
}
360-
361-
return new Typed('.quotes', options)
362317
}
363318
}
364319
}
@@ -385,8 +340,7 @@ export default {
385340
386341
h2 {
387342
margin: 3vw 0 2vw 0;
388-
// font-size: calc(18px + 1.5vw);
389-
font-size: calc(18px + 0.9vw);
343+
font-size: calc(18px + 1.5vw);
390344
font-weight: normal;
391345
a {
392346
text-decoration: none;

src/utils/init-gradients.js

+14-24
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,24 @@
11
import Granim from 'granim'
22

33
export default function initGradients (element, theme) {
4-
// const darkGradients = [
5-
// ['#2b76b9', '#35eb93'],
6-
// ['#cc6622', '#8c1bab'],
7-
// ['#380036', '#0cbaba'],
8-
// ['#85d797', '#5d4257'],
9-
// ['#0250c5', '#d43f8d'],
10-
// ['#13547a', '#60b0b7'],
11-
// ['#a40606', '#d98324']
12-
// ]
13-
14-
// const lightGradients = [
15-
// ['#8af094', '#ffd1ff'],
16-
// ['#f6d365', '#fda085'],
17-
// ['#84fab0', '#8fd3f4'],
18-
// ['#fa709a', '#fee140'],
19-
// ['#4facfe', '#00f2fe'],
20-
// ['#43e97b', '#38c9f7'],
21-
// ['#f83600', '#f9d423']
22-
// ]
23-
244
const darkGradients = [
25-
['#396afc', '#2948ff'],
26-
['#0575e6', '#021b79']
5+
['#2b76b9', '#35eb93'],
6+
['#cc6622', '#8c1bab'],
7+
['#380036', '#0cbaba'],
8+
['#85d797', '#5d4257'],
9+
['#0250c5', '#d43f8d'],
10+
['#13547a', '#60b0b7'],
11+
['#a40606', '#d98324']
2712
]
2813

2914
const lightGradients = [
30-
['#6190e8', '#a7bfe8'],
31-
['#83a4d4', '#b6fbff']
15+
['#8af094', '#ffd1ff'],
16+
['#f6d365', '#fda085'],
17+
['#84fab0', '#8fd3f4'],
18+
['#fa709a', '#fee140'],
19+
['#4facfe', '#00f2fe'],
20+
['#43e97b', '#38c9f7'],
21+
['#f83600', '#f9d423']
3222
]
3323

3424
return new Granim({

0 commit comments

Comments
 (0)