-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
145 lines (145 loc) · 6.88 KB
/
home.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ちえぴったん | トップ</title>
<meta name="name" content="content">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/home.css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/vue.min.js"></script>
<script src="js/home.js"></script>
</head>
<body>
<!-- header -->
<div class="container" id="header">
<div class="row" id="header-wrapper">
<div class="col-xs-4 col-md-4 col-lg-4" id="icon-notice">
<a href="home.html"><img src="img/icon/notice.png" alt="notice_icon" /></a>
</div>
<div class="col-xs-4 col-md-4 col-lg-4" id="logo-img">
<div class="centering">
<a href="home.html"><img src="img/logo-02.png" alt="logo" /></a>
</div>
</div>
<div class="col-xs-4 col-md-4 col-lg-4" id="icons">
<a href="create.html"><img src="img/icon/ticket.png" alt="ticket_icon" /></a>
<a href="search.html"><img src="img/icon/search.png" alt="search_icon" /></a>
</div>
</div>
</div>
<div class="container" id="main">
<!-- user info -->
<div id="userinfo" class="row">
<div class="row centering">
<img id="userimg" src="{{userinfo.profile_img_url}}" alt="userimg" />
</div>
<div class="row">
<a href="reviewlist.html?id={{userinfo.id}}">
<div class="col-xs-8 col-md-8 col-lg-8 centering">
<strong>{{userinfo.review_ave >= 1.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave >= 2.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave >= 3.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave >= 4.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave >= 5.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave}}</strong>
</div>
</a>
</div>
<div class="row">
<div class="col-xs-8 col-md-8 col-lg-8 centering">
<span>{{userinfo.last_name}} {{userinfo.first_name}}</span>
</div>
</div>
<div class="row">
<div class="col-xs-8 col-md-8 col-lg-8 centering">
<span>{{userinfo.username}}</span>
</div>
</div>
<a href="setting.html"><img id="setting" src="img/icon/settings.png" alt="settingicon" /></a>
</div>
<!-- menu -->
<div id="links" class="row">
<div class="row">
<div class="col-xs-4 col-md-4 col-lg-4">
<div class="centering">
<button class="btn_1" onclick="location.href='teached.html?user_id='+{{userinfo.id}}" type="button" name="button"><img src="img/icon/teach.png" alt="teach"/></button>
</div>
</div>
<div class="col-xs-4 col-md-4 col-lg-4">
<div class="centering">
<button class="btn_1" onclick="location.href='learned.html?user_id='+{{userinfo.id}}" type="button" name="button"><img src="img/icon/learn.png" alt="teach"/></button>
</div>
</div>
<div class="col-xs-4 col-md-4 col-lg-4">
<div class="centering">
<button class="btn_1" onclick="location.href='favorite.html?user_id='+{{userinfo.id}}" type="button" name="button"><img src="img/icon/save.png" alt="teach"/></button>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-8 col-md-8 col-lg-8 centering">
<div id="tabs" class="row">
<div class="col-xs-6 col-md-6 col-lg-6">
<button v-on:click="isT = true" id="teach_ticket_btn" type="button" class="l_btn {{isT ? 'yellow_back':'white_back'}}">
<img src="" alt="" /><strong>教えよう!</strong>
</button>
</div>
<div class="col-xs-6 col-md-6 col-lg-6">
<button v-on:click="isT = false" id="learn_ticket_btn" type="button" class="l_btn {{isT ? 'white_back':'yellow_back'}}">
<img src="" alt="" /><strong>学ぼう!</strong>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- contents -->
<div id="contents-wrapper" class="row">
<div id="contents-title" class="row">
<span>{{isT ? 'あなたにオススメの':'発行中の'}}</span><img src="img/teach-plz-i.png" alt="teach_logo" />
</div>
<div id="contents" class="row">
<div class="row ticket" v-for="ticket in tickets">
<a href="{{isT ? 'detail.html?ticket_id=' : 'detail2.html?ticket_id='}}{{ticket.id}}">
<div class="ticket_img col-xs-4 col-md-4 col-lg-4" style="background-image:url({{ticket.header_img_url}});">
<!-- background img -->
</div>
<div class=" ticket-info col-xs-8 col-md-8 col-lg-8">
<div class="title row">
<strong>{{ticket.title}}</strong>
</div>
<div class="row">
<div class="t-info col-xs-6 col-md-6 col-lg-6">
<img src="img/icon/price.png" alt="price"/><span> {{ticket.price}}円</span>
</div>
<div class="t-info col-xs-6 col-md-6 col-lg-6">
<img src="img/icon/time.png" alt="price"/><span> {{ticket.time}}h</span>
</div>
</div>
<div class="row">
<div class="t-info col-xs-12 col-md-12 col-lg-12">
<img src="img/icon/location.png" alt="location"/><span> {{ticket.skype ? 'Skype':''}} {{ticket.offline_place}}</span>
</div>
</div>
<div class="row">
<div class="accountimage col-xs-5 col-md-5 col-lg-5">
<img src="{{ticket.user.profile_img_url}}" alt="" /><strong>{{ticket.user.username}}</strong>
</div>
<div class="date col-xs-4 col-md-4 col-lg-4">
<strong>{{ticket.updated_at.substr(0,10)}}</strong>
</div>
<div class="apply col-xs-3 col-md-3 col-lg-3">
<img src="img/icon/person.png" alt="person" /><strong>{{ticket.stocked_num}}</strong>
</div>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</body>
</html>