-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomePage.html
81 lines (67 loc) · 2.58 KB
/
HomePage.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang='en'>
<head>
<Title>Home Page</Title>
<meta charset="UTF-8">
<link rel="stylesheet" href="stylesheet.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.2/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.js"></script>
<script src="canvas.js"></script>
</head>
<header>
<h1>Pratt Game Studios</h1>
<ul>
<li><h3><a href="HomePage.html">Home</a></h3></li>
<li><h3><a href="AboutUs.html">About Us</a></h3></li>
<li><h3><a href="FAQ.html">FAQ</a></h3></li>
<li><h3><a href="Careers.html">Careers</a></h3></li>
<li><h3><a href="ContactUs.html">Contact Us</a></h3></li>
</ul>
</header>
<div id="wrap">
<main>
<h2>Welcome to the frontier of game design</h2>
<p>Latest Post from December 12, 2022:<p>
<div id="app">
<img :src="myImage" @mouseover="changeImage(imageNumber++)" width="400px" height="400px"/>
<h2>{{benderType}}</h2>
<p>{{description}}</p>
</div>
<script>
var app = new Vue({
el: '#app',
data() {
return {
benderType: "Introducing Tate",
imageNumber: 0,
myImage: "Tate.png",
description: "This is Tate. Tate was born in a wolf's den, and is in prime condition to out-live everyone. Tate doesn't care that he's difficult to get along with - he prefers to work alone anyway."
}
},
methods: {
changeImage(imageNumber){
if (imageNumber % 3 == 0)
{
this.myImage = "Tate.png",
this.benderType = "Introducing Tate",
this.description = "This is Tate. Tate was born in a wolf's den, and is in prime condition to out-live everyone. Tate doesn't care that he's difficult to get along with - he prefers to work alone anyway."
}
if (imageNumber % 3 == 1)
{
this.myImage = "Jane.png",
this.benderType = "Introducing Jane",
this.description = "This is Jane. Jane may be weak but she makes us for her weakness in brains. She tends to be introverted and quiet most of the time, but when a big decision needs to me made, she will consistently chose the best option."
}
if (imageNumber % 3 == 2)
{
this.myImage = "Sam.png",
this.benderType = "Introducing Sam",
this.description = "This is Sam. Sam is very much the social butterfly. Sam can talk and talk and talk some more, but she is more trustworthy and kind than anyone else."
}
}
}
})
</script>
</main>
</div>
</html>