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