-
Notifications
You must be signed in to change notification settings - Fork 3
/
Recipe.aspx
65 lines (60 loc) · 2.42 KB
/
Recipe.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
<%@ Page Title="Recipe" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="Recipe.aspx.cs" Inherits="Recipehub.Recipe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
<link rel="stylesheet" href="stylesheets/RecipePage.css">
<link rel="stylesheet" href="stylesheets/user_link.css">
<style>
.main
{
max-width: 700px;
box-shadow: 0 0 10px rgba(28, 1, 1, 0.7);
margin: 50px auto;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="container main">
<div class="user-info rec-owner">
<div>
<a href="Profile Page.aspx?usrid=<%= user_id %>">
<img src="<%= user_pic %>" alt="user picture" />
</a>
</div>
<span>
<a href="Profile Page.aspx?usrid=<%= user_id %>"><%= username %></a>
<span class="prod-date">
<%= rec_date %>
</span>
</span>
</div>
<div class="img">
<img src="<%= rec_pic %>" alt="recipe-photo" class="recipe-img">
</div>
<div class="recipe-info">
<div class="title">
<h3 class="heading"><%= prod_name %><%= err %></h3>
<hr class="saperatore">
</div>
<%
string prntTime = $"<div class='time'><i class='fa-solid fa-clock'></i> {time} min</div>";
string prntCost = $"<div class='price'><i class='fa-solid fa-hand-holding-dollar'></i> {cost} EGP</div>";
if(time != 0)
Response.Write(prntTime);
if(cost != 0)
Response.Write(prntCost);
%>
<div class="Jam Ingredients">
<p class="headlines">Ingredients:</p>
<p class="paragraph"><%= ingredients %></p>
</div>
<div class="Method">
<p class="headlines">Method:</p>
<p class="paragraph"><%= method %></p>
</div>
<%
string print = $"<p class='headlines'>link :<a class='video-link' href='{video}' target='_blank' title='Go to the video'> Recipe video </a></p>";
if(video != "")
Response.Write(print);
%>
</div>
</div>
</asp:Content>