-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcardsGridEvents.html
More file actions
56 lines (53 loc) · 2.24 KB
/
Copy pathcardsGridEvents.html
File metadata and controls
56 lines (53 loc) · 2.24 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cards Grid Events - Example page</title>
<!-- CSS only -->
<link rel="stylesheet" href="https://asu.github.io/asu-unity-stack/@asu/unity-bootstrap-theme/css/unity-bootstrap-theme.bundle.css" />
<!-- Load FontAwesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script
src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/js/all.min.js"
integrity="sha512-uKQ39gEGiyUJl4AI6L+ekBdGKpGw4xJ55+xyJG7YFlJokPNYegn9KwQ3P8A7aFQAUtUsAQHep+d/lrGqrbPIDQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- Load React. -->
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" crossorigin></script>
<!-- *************************************************************** -->
<!-- include bundled scripts from packages -->
<script src="../dist/vendor.umd.js"></script>
<script src="../dist/asuEvents.umd.js"></script>
</head>
<body>
<!-- Provide target divs for the component. Must have unique ids or class name. -->
<div class="container">
<div class="mt-2" id="cardsGridWrapper"></div>
</div>
<script>
AsuEvents.initCardsGridEventsComponent({
targetSelector: "#cardsGridWrapper",
props: {
header: {
color: "dark", // "dark", "white"
text: "Events list"
},
ctaButton: {
color: "gold", // "gold", "maroon", "gray", "dark"
url: "https://news.asu.edu",
text: "Click to see more events",
},
dataSource: {
url: "../__mocks__/api/feeds.json", // Here goes the url
// Example with filters(not needed)
filters: "easy_on_the_wallet,alumni_association,staff,sports",
},
}
})
</script>
<script src="./js/events.js"></script>
</body>
</html>