-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (174 loc) · 7.05 KB
/
index.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<html>
<head>
<title>CivicTechTO Hacknight Pitch Board</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.min.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<script src="//unpkg.com/[email protected]/dist/vue.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/axios/0.15.2/axios.js"></script>
<script src="//code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="//api.trello.com/1/client.js?key=17ccd791431275b4c0afade4c83763bf"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.0/underscore-min.js"></script>
<style>
.github-fork-ribbon:before,
.github-fork-ribbon:after {
height: 2.2em;
}
.github-fork-ribbon {
z-index: 9000;
}
.btn.disabled {
opacity: 0.3;
}
body {
padding-top: 5rem;
}
.navbar-brand.org {
font-size: 1rem;
}
.navbar-brand.title {
font-size: 1.5rem;
}
.tag {
background-color: #EEF; /* Set the background color */
border-radius: 3px; /* Add some roundness */
border: 1px #CCF solid; /* Add a border */
padding: 2px 5px;
display: inline;
margin-right: 2px;
}
.footer {
position: fixed;
bottom: 0;
width: 100%;
height: 60px;
line-height: 60px;
background-color: #f5f5f5;
display: flex;
align-items: center;
}
body {
margin-bottom: 60px;
}
</style>
<style>
.modal-mask {
position: fixed;
z-index: 9998;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .5);
display: table;
transition: opacity .3s ease;
}
/*
* The following styles are auto-applied to elements with
* transition="modal" when their visibility is toggled
* by Vue.js.
*
* You can easily play with the modal transition by editing
* these styles.
*/
.modal-enter {
opacity: 0;
}
.modal-leave-active {
opacity: 0;
}
.modal-enter .modal-container,
.modal-leave-active .modal-container {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
.modal-container {
transition: all .3s ease;
}
</style>
</head>
<body>
<div id="app">
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand org" href="http://civictech.ca">CivicTechTO</a>
<a class="navbar-brand title" href="#">Hacknight Pitch Board</a>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="https://trello.com/b/EVvNEGK5/hacknight-projects">Trello Board</a>
</li>
</ul>
<button class="btn" v-bind:class="{ disabled: isLoggedIn }" @click="authTrello">{{ isLoggedIn ? 'Logged into Trello' : 'Login with Trello' }}</button>
</nav>
<main role="main" class="container">
<a class="github-fork-ribbon fixed right-bottom" href="https://github.com/civictechto/trello-project-frontend" title="Contribute on GitHub">Contribute on GitHub</a>
<div id="projects" class="clear">
<h2>Tonight's Pitches</h2>
<div class="row card-group">
<div v-for="(card, index) in pitchList" class='col-lg-4 col-md-6 col-sm-12 mb-4'>
<div class="card">
<div class="card-header">
<div class="container"><div class="row align-items-center">
<div class="col"><strong>{{ card.name }}</strong></div>
<div class="col-2"><button class="btn btn-sm btn-primary" v-bind:class="{ disabled: !isLoggedIn }" @click="demoteCard(index)"><i class="fas fa-arrow-alt-circle-down"></i></button></div>
</div></div>
</div>
<div class='card-body'>
<p class='card-text'>{{ card.desc | removeMd | firstParagraph | truncate(150) }}</p>
<button class="btn float-right btn-secondary" v-bind:id="'show-modal-' + card.id" @click="show(index)">Details <i class="fas fa-expand-arrows-alt"></i></button>
</div>
</div>
</div>
</div>
</div>
<transition name="modal">
<div class="modal-mask" v-if="showModal">
<div class="modal-dialog modal-lg" v-click-outside="hide" role="document">
<div class="modal-content modal-container container">
<div class="modal-header">
<h3 class="modal-title">{{ pitchDetails.name }}</h3>
<button type="button" class="close" @click="hide">×</button>
</div>
<div class="modal-body row">
<div class="col-4">
<img class="img-thumbnail rounded" v-if="pitchDetails.image" :src="pitchDetails.image" alt="">
</div>
<div class="col">
<div class="asks">
<strong>Asks:</strong> <span class="tag ask" v-for="ask in pitchDetails.asks">{{ ask }}</span>
</div>
<div class="tools">
<strong>Tools:</strong> <span class="tag tool" v-for="tool in pitchDetails.tools">{{ tool }}</span>
</div>
</div>
</div>
<div class="row">
<div class="col">
<p v-html="parseMd(pitchDetails.desc)"></p>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-link" role="button" target="_blank" v-bind:href="pitchDetails.shortUrl" style="text-decoration:inherit">Edit <i class="fas fa-external-link-alt"></i></a>
<a class="btn btn-primary" role="button" target="_blank" @click="hide">OK</a>
</div>
</div>
</div>
</div>
</transition>
</main>
<footer class="footer">
<nav class="navbar navbar-light">
<span class="navbar-text mr-4">Recent Pitches</span>
<form class="form-inline mt-3">
<button type="button" class="btn btn-sm btn-primary mr-2"
v-bind:class="{ disabled: !isLoggedIn }"
v-for="(card, index) in recentPitches"
@click="promoteCard(index)">
{{ card.name }} <i class="fas fa-arrow-alt-circle-up"></i>
</button>
</form>
</nav>
</footer>
</div>
<script src="dist/build.js"></script>
</body>
</html>