blockchain certifcate changes

This commit is contained in:
Ubuntu 2024-05-11 10:33:37 +00:00
parent 349034537e
commit 9e11ea778d
6 changed files with 170 additions and 233 deletions

BIN
kitchen_counter/lpp/certificate/certificate.pdf Executable file → Normal file

Binary file not shown.

View File

@ -15,7 +15,7 @@ basepath = BasePath()
# from .utils import render_to_pdf
def certificateGenrate(name,file_from,Hash):
def certificateGenrate(name,file_from,Hash,projectname="NAN",matic=0):
main = Certificate.objects.filter(user_name="MyNextFilm")
if main:
@ -35,7 +35,9 @@ def certificateGenrate(name,file_from,Hash):
"file_from": file_from,
"date": date.today(),
"hash": Hash,
"id": ids
"id": ids,
'Matic':matic,
'File_name':projectname,
}
template = get_template(
f'{basepath}/lpp/templates/lpp/blockchainCertificate.html')

View File

@ -1,235 +1,170 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{% load static %}
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- <html xmlns="http://www.w3.org/1999/xhtml"> -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Document</title>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Email Template</title>
<style>
body {
margin: 0;
padding: 0;
}
#background
{
left: 0px;
top: 0px;
position: relative;
margin-left: auto;
margin-right: auto;
width: 842px;
height: 1191px;
overflow: hidden;
z-index:0;
}
#Background
{
left: 0px;
top: 0px;
position: absolute;
width: 842px;
height: 1191px;
z-index:1;
}
#www11
{
left: 0px;
top: 0px;
position: absolute;
width: 842px;
height: 1191px;
z-index:2;
}
#sssqqq
{
left: -2px;
top: -7px;
position: absolute;
width: 847px;
height: 1198px;
z-index:3;
}
#Layer3
{
left: 278px;
top: 36px;
position: absolute;
width: 567px;
height: 179px;
z-index:4;
}
#CertificateID
{
left: 619px;
top: 106px;
position: absolute;
width: 184px;
height: 23px;
z-index:5;
}
#CertificateID1
{
left: 619px;
top: 116px;
position: absolute;
z-index: 5;
color: red;
}
#Layer2
{
left: 114px;
top: 55px;
position: absolute;
width: 173px;
height: 172px;
z-index:6;
}
#MNFLogoFinal
{
left: 148px;
top: 112px;
position: absolute;
width: 108px;
height: 59px;
z-index:7;
}
#CertificateOfProof
{
left: 109px;
top: 263px;
position: absolute;
width: 657px;
height: 51px;
z-index:8;
}
#Thisistocertifythat
{
left: 222px;
top: 358px;
position: absolute;
width: 445px;
height: 41px;
z-index:9;
}
#Layer1
{
left: -152px;
top: 460px;
position: absolute;
width: 1920px;
height: 1080px;
z-index:10;
}
#Praveshenter9303gmai
{
left: 300px;
top: 451px;
position: absolute;
width: 615px;
height: 50px;
z-index:11;
}
#hassuccessfullyuploa
{
left: 171px;
top: 550px;
position: absolute;
width: 518px;
height: 32px;
z-index:12;
}
#PPTConversion
{
left: 277px;
top: 581px;
position: absolute;
z-index: 13;
color: red;
font-size: x-large;
}
#OnIPFSADecentralized
{
left: 73px;
top: 701px;
position: absolute;
width: 719px;
height: 139px;
z-index:14;
}
#Dated
{
left: 361px;
top: 958px;
position: absolute;
width: 122px;
height: 29px;
z-index:15;
}
#Oct62023
{
left: 345px;
top: 973px;
position: absolute;
width: 185px;
height: 27px;
z-index:16;
}
#Toverifyyourcontent
{
left: 262px;
top: 1073px;
position: absolute;
width: 318px;
height: 26px;
z-index:17;
}
@import url("https://fonts.googleapis.com/css2?family=Lato&family=Poppins:wght@100;300;400;500;600;700;800&display=swap");
</style>
<body>
<div id="background">
<div id="Background"><img src="/home/ubuntu/mnf/MNF/static/media/Background.png"></div>
<div id="www11"><img src="/home/ubuntu/mnf/MNF/static/media/www11.png"></div>
<div id="sssqqq"><img src="/home/ubuntu/mnf/MNF/static/media/sssqqq.png"></div>
<div id="Layer3"><img src="/home/ubuntu/mnf/MNF/static/media/Layer3.png"></div>
<div id="CertificateID"><img src="/home/ubuntu/mnf/MNF/static/media/CertificateID.png"></div>
<div id="CertificateID1"><h1>{{id}}</h1></div>
<div id="Layer2"><img src="/home/ubuntu/mnf/MNF/static/media/Layer2.png"></div>
<div id="MNFLogoFinal"><img src="/home/ubuntu/mnf/MNF/static/media/MNFLogoFinal.png"></div>
<div id="CertificateOfProof"><img src="/home/ubuntu/mnf/MNF/static/media/CertificateOfProof.png"></div>
<div id="Thisistocertifythat"><img src="/home/ubuntu/mnf/MNF/static/media/Thisistocertifythat.png"></div>
<!-- <div id="Layer1"><img src="images/Layer1.png"></div> -->
<div id="Praveshenter9303gmai"><h1>{{name}}</h1></div>
<div id="hassuccessfullyuploa"><img src="/home/ubuntu/mnf/MNF/static/media/hassuccessfullyuploa.png"></div>
<div id="PPTConversion"><h1>{{file_from}}</h1></div>
<div id="OnIPFSADecentralized"><img src="/home/ubuntu/mnf/MNF/static/media/OnIPFSADecentralized.png"></div>
<div id="Dated"><img src="/home/ubuntu/mnf/MNF/static/media/Dated.png"></div>
<div id="Oct62023"><h1>{{date}}</h1></div>
<div id="Toverifyyourcontent"><img src="/home/ubuntu/mnf/MNF/static/media/Toverifyyourcontent.png"></div>
</head>
<body style="margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;font-size: 16px;">
<div style="max-width: 90vw; box-shadow: 0px 4px 27px 0px #00000040; margin: 16px auto;">
<img src="/home/mnfidea/mnf/MNF/app/static/media/HeaderImageCertificate.png" style="width: 100%;">
<table style="border-collapse: collapse;
display: flex;
justify-content: center;
margin: 0px 0 50px 0px">
<tr>
<td rowspan="4" style="text-align: center;">
<img src="/home/mnfidea/mnf/MNF/app/static/media/verticalLineGolden.png" alt="v-line" style="height: 300px;
width: 30px;
position: relative;
top: -70px; padding: 0 20px;">
</td>
<td>
<h2 style="font-family: Poppins;
font-size: 18px;
font-weight: 600;
text-align: center;
color: #252525;">Blockchain Protection Certificate no.{{id}}
</h2>
</td>
<td rowspan="4" style="text-align: center;">
<img src="/home/mnfidea/mnf/MNF/app/static/media/verticalLineGolden.png" alt="v-line" style="height: 300px;
width: 30px;
position: relative;
top: 70px; padding: 0 20px;">
</td>
</tr>
<tr>
<td style="font-family: Poppins;
font-size: 16px;
font-weight: 400;
text-align: center;
color: #252525;
line-height: 32px;
">This is to certify that
<span style="font-family: Poppins;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">{{File_Name}}
</span>
uploaded by
<span style="font-family: Poppins;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">{{name}}
</span>
/ created by
<span style="font-family: Poppins;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">
{{file_from}}
</span>
has been
uploaded on Polygon Blockchain on
<span style="font-family: Poppins;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">
{{date}}
</span>
for which My Next Film has paid ____ MATIC. This is
also to certify that the above file is accessible at the
<span style="font-family: Poppins;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">
transaction {{hash}}
</span>
Only Through the
combination of Public Key and Private Key exclusively known to the
<span style="font-family: Poppins;
font-size: 16px;
font-weight: 600;
text-align: center;
color: 252525;">
{{name}}
</span>
</td>
</tr>
<tr>
<td>
<p style="font-family: Poppins;
font-size: 12px;
font-weight: 500;
text-align: left;
color: #252525;
margin-bottom: -10px;
">Note:</p>
<p style="font-family: Poppins;
font-size: 10px;
font-weight: 400;
text-align: left;
color: #616161;
line-height:22px;
">The file resides on Decentralized Inter Planetary File System Storage. The location of the file
is encrypted and stored on Polygon Blockchain forever. The content is Transparent,
Decentralized, and Secured in a with Blockchain's Enhanced Security, Immutability, and
Crypto-Features.</p>
</td>
</tr>
<tr>
<td style="padding-left: 90px ; display: flex; justify-content: space-evenly;">
<div style="margin-left: -100px;">
<img src="/home/mnfidea/mnf/MNF/app/static/media/DoogleFilm.png" alt="doodle" style="width: 144.7px;
height: 121.06px;">
</div>
<div>
<p style="font-family: Poppins;
font-size: 12px;
font-weight: 600;
text-align: left;
color: #EE3C4D;
line-height: 0px;
">Disclaimer:-</p>
<p style="font-family: Poppins;
font-size: 10px;
font-weight: 400;
text-align: left;
color: #616161;
line-height: 22px;
">
<span style="font-family: Poppins;
font-size: 12px;
font-weight: 600;
text-align: left;
color: #252525;
">"MY NEXT FILM"</span> denies responsibility for risks associated with sharing data content
identifiers
(#) or Private Keys, Potentially leading to Unauthorized Disclosure and content theft. Users
shall exercise caution and evaluate the Necessity of Sharing. The company is not liable for
Consequences resulting from users sharing data content Identifiers (#) or Private keys.
</p>
</div>
</td>
<td></td>
</tr>
</table>
<div style="width: 100%; background: #33B0CA; height: 15px;"></div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB