-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (55 loc) · 2.7 KB
/
index.html
File metadata and controls
55 lines (55 loc) · 2.7 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
<!doctype html>
<html class="no-js" lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>OGP tags generator</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bulma@0.6.1/css/bulma.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
<link href="./css/gen.css" rel="stylesheet">
<meta property="og:title" content="Open Graph Generator" />
<meta property="og:description" content="Basic generator for OpenGraph" />
</head>
<body>
<div id="app">
<section class="hero is-bold is-dark is-fullheight">
<div class="hero-body">
<div class="container">
<h1 class="title">Open Graph Generator</h1>
<transition name="slide-fade">
<h2 class="subtitle" v-if="title && desc">Here's your Open Graph code!</h2>
</transition>
<h2 class="subtitle" v-if="title != '' && desc == ''">Needs more description.</h2>
<h2 class="subtitle" v-else-if="desc != '' && title == ''">How 'bout a bit of title?</h2>
<h2 class="subtitle" v-else-if="desc == '' && title == ''">Enter some text and watch magic happen</h2>
<div class="field">
<p>Title</p>
<input class="input" type="text" v-model="title">
<br/>
<p>Description</p>
<input class="input" type="text" v-model="desc">
</div>
<p>Results</p>
<pre><code><p v-if="title && desc">
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ desc }}" />
</code></pre></p>
<small>Made by <a href="https://tilda.github.io">tilda</a> with <a href="https://vuejs.org">vue.js</a> and coffee. <a href="https://github.com/tilda/ogp-gen">Source code</a></small>
</div>
</div>
</section>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
var app = new Vue({
el: "#app",
data: {
title: "",
desc: ""
}
})
</script>
</body>
</html>