-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.aspx
151 lines (147 loc) · 8.66 KB
/
default.aspx
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
<%@ Page Title="" Language="C#" MasterPageFile="~/User.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="medium_clone.Default" %>
<%@ MasterType VirtualPath="~/User.Master" %>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
<section id="explore">
<div class="container">
<div class="row">
<div class="col">
<% var last_post = data_table.Rows.Count - 1; %>
<div class="post">
<div class="post-img">
<a href="post/?<%= data_table.Rows[last_post]["id"].ToString() %>">
<div class="post-img-wrapper">
<img src="Content/assets/image_1.png"
alt="">
</div>
</a>
</div>
<div class="post-meta">
<div class="post-meta-user">
<div class="post-meta-user-img">
<a href="/user/?<%= data_table.Rows[last_post]["author_id"].ToString()%>">
<img src="https://images.unsplash.com/photo-1542103749-8ef59b94f47e?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80"
alt="">
</a>
</div>
<div class="post-meta-user-name">
<a href="/user/?<%= data_table.Rows[last_post]["author_id"].ToString()%>"><%= data_table.Rows[last_post]["author"].ToString() %> </a>
</div>
</div>
<div class="post-meta-title">
<h3><a href="/post/?<%= data_table.Rows[last_post]["id"].ToString() %>"><%= data_table.Rows[last_post]["title"].ToString() %> </a></h3>
</div>
<div class="post-meta-subtitle">
<h4><a href="/post/?<%= data_table.Rows[last_post]["id"].ToString() %>"><% if(data_table.Rows[last_post]["content"].ToString().Length > 145) { data_table.Rows[last_post]["content"].ToString().Substring(0, 145); }; %>...</a></h4>
</div>
<div class="post-meta-info">
<span><a href="/post/?<%= data_table.Rows[last_post]["id"].ToString() %>">Devamını Oku</a></span>
<span>·</span>
<span><%= data_table.Rows[last_post]["read_time"] %> dakika</span>
</div>
</div>
</div>
</div>
<%var k = data_table.Rows.Count - 2; %>
<%for (var i = 0; i < 2; i++)
{%>
<div class="col">
<% for (var j = 1; j < 5; j++)
{%>
<div class="post post-m">
<div class="post-img">
<a href="post/?<%= data_table.Rows[k]["id"].ToString() %>">
<div class="post-img-wrapper">
<img src="Content/assets/image_2.png"
alt="">
</div>
</a>
</div>
<div class="post-meta">
<div class="post-meta-user">
<div class="post-meta-user-img">
<a href="/user/?<%= data_table.Rows[k]["author_id"].ToString()%>">
<img src="<%= data_table.Rows[k]["avatar"] %>"
alt="">
</a>
</div>
<div class="post-meta-user-name">
<a href="/user/?<%= data_table.Rows[k]["author_id"].ToString()%>"><%= data_table.Rows[k]["author"].ToString() %></a>
</div>
</div>
<div class="post-meta-title">
<h3><a href="post/?<%= data_table.Rows[k]["id"].ToString() %>"><%= data_table.Rows[k]["title"] %> </a></h3>
</div>
<div class="post-meta-subtitle">
<h4><a href="post/?<%= data_table.Rows[k]["id"].ToString() %>"><%= data_table.Rows[k]["content"] %> </a></h4>
</div>
<div class="post-meta-info">
<span><a href="post/?<%= data_table.Rows[k]["id"].ToString() %>">Devamını Oku</a></span>
<span>·</span>
<span><%= data_table.Rows[k]["read_time"] %> dakika</span>
</div>
</div>
</div>
<%k--;} %>
</div>
<%} %>
</div>
</div>
</section>
<%-- trends --%>
<section id="trends">
<div class="container">
<div class="post-list">
<div class="post-list-title">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M23 6L13.5 15.5L8.5 10.5L1 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
<path d="M17 6H23V12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<h2>Son Yazılanlar</h2>
</div>
<!-- row -->
<% var l = 0; %>
<%for (var i = 0; i < 3; i++)
{ %>
<div class="row">
<!-- post -->
<% for (var j = 0; j < 3; j++)
{
%>
<div class="post post-s">
<div class="post-img">
<a href="post/?<%= data_table.Rows[l]["id"] %>">
<div class="post-img-wrapper">
<img src="https://images.unsplash.com/photo-1606415264244-51e5301beb8b?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=667&q=80"
alt="">
</div>
</a>
</div>
<div class="post-meta">
<div class="post-meta-user">
<div class="post-meta-user-img">
<a href="#">
<img src="<%= data_table.Rows[l]["avatar"] %>"
alt="">
</a>
</div>
<div class="post-meta-user-name">
<a href="post/?<%= data_table.Rows[l]["id"] %>"><%= data_table.Rows[l]["author"] %></a>
</div>
</div>
<div class="post-meta-title">
<h3><a href="post/?<%= data_table.Rows[l]["id"] %>"><%= data_table.Rows[l]["title"] %></a></h3>
</div>
<div class="post-meta-info">
<span><a href="post/?<%= data_table.Rows[l]["id"] %>">Devamını Oku</a></span>
<span>·</span>
<span><%= data_table.Rows[l]["read_time"] %> dakika</span>
</div>
</div>
</div>
<% l++; } %>
</div>
<%} %>
</div>
</div>
</section>
</asp:Content>