This repository was archived by the owner on May 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html.erb
101 lines (100 loc) · 2.74 KB
/
index.html.erb
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
<!DOCTYPE html>
<html>
<head>
<title>Magic: the Gathering Arena Promo Codes</title>
<meta charset="utf-8">
<meta name="theme-color" content="#171717">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
<meta name="description" content="Magic: the Gathering Arena promotional codes">
<meta property="og:image" content="https://mtga.codes/social.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1280">
<meta property="og:image:height" content="640">
<meta property="og:type" content="website">
<meta property="og:url" content="https://mtga.codes">
<meta property="og:title" content="Magic: the Gathering Arena Promo Codes">
<meta property="og:description" content="Magic: the Gathering Arena promotional codes">
<link rel="shortcut icon" href="/favicon.png" type="image/png">
<style>
* {
box-sizing: border-box !important;
}
body {
padding: 0;
margin: 0;
background: #222;
color: #fff;
font-family: sans-serif;
}
.content {
background: #171717;
max-width: 600px;
margin: 0 auto;
padding: 10px;
}
.logo {
display: block;
width: 250px;
margin: 10px auto 20px auto;
}
section .title {
text-align: center;
margin: 0 -10px 30px -10px;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 14px;
font-weight: bold;
border-top: 3px solid #222;
border-bottom: 3px solid #222;
padding: 15px 0;
}
/* Code Entry */
.codes > :not(:first-child) {
text-align: center;
margin-bottom: 40px;
}
/* Code */
.codes > :not(:first-child) > :first-child {
font-size: 24px;
font-family: monospace;
color: #f53;
margin-bottom: 3px;
text-shadow: 1px 1px #000;
letter-spacing: 0.5px;
}
/* Description */
.codes > :not(:first-child) > :nth-child(2) {
font-size: 16px;
}
/* Timespan */
.codes > :not(:first-child) > :nth-child(3) {
font-size: 14px;
color: #ccc;
}
/* Description, Timespan */
.codes > :not(:first-child) > :not(:first-child) {
line-height: 150%;
}
.codes.expired > :not(:first-child) * {
color: #777;
}
</style>
</head>
<body>
<div class="content">
<img src="logo.png" class="logo">
<section class="codes">
<div class="title">Active Promo Codes</div>
<% codes.reject(&:is_expired).each do |code| %>
<%= render('code.html.erb', code: code) %>
<% end %>
</section>
<section class="codes expired">
<div class="title">Expired Promo Codes</div>
<% codes.select(&:is_expired).each do |code| %>
<%= render('code.html.erb', code: code) %>
<% end %>
</section>
</div>
</body>
</html>