Commit bcc8f416 authored by Clint Mourlevat's avatar Clint Mourlevat

Adding Vanity Model

parent d7c8f900
......@@ -59,6 +59,13 @@ namespace Stratis.Guru.Controllers
return View();
}
[HttpPost]
[Route("vanity")]
public IActionResult Vanity(Vanity vanity)
{
return View();
}
[Route("generator")]
public IActionResult Generator()
{
......
namespace Stratis.Guru.Models
{
public class Vanity
{
public string Prefix { get; set; }
public string Email { get; set; }
}
}
\ No newline at end of file
@model Vanity
@{
ViewBag.Title = "Vanity Address Generator";
Layout = "_Layout";
}
<section class="welcome-area" id="welcome-1">
<div class="header-token">
<form class="header-token" method="post" asp-controller="Home" asp-action="Vanity">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 align-self-center text-center">
<h1><strong>Vanity </strong>Address Generator</h1>
<p>Generate a vanity address with a prefix that you define, by example <span class="text-warning">STRAT</span>nhRnMqJNoeDiCFUnaug7TKHJocwDd</p>
<a href="https://github.com/clintnetwork/stratis-guru-v2" target="_blank" class="btn-secondary-box"><i class="fa fa-github"></i> Browse Source on Github</a>
<div class="row">
<div class="col-md-8 offset-2">
<div class="input-group mb-3 input-group-lg mt-4 pl-5 pr-5">
<input type="text" class="form-control bg-dark" asp-for="Prefix" placeholder="Enter prefix">
<div class="input-group-prepend">
<span class="input-group-text bg-dark text-white" id="basic-addon1">SR2ZXnhRnMqJNoeDiCFUnaug7TKHJocwDd</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 offset-2">
<div class="form-group mb-3 mt-4 pl-5 pr-5">
<label class="text-left text-white">You will receive the private key by email.</label>
<input type="text" class="form-control bg-dark" asp-for="Email" placeholder="Enter your email address"/>
</div>
</div>
</div>
<button type="submit" href="https://github.com/clintnetwork/stratis-guru-v2" target="_blank" class="btn-secondary-box mt-4"><i class="fa fa-github"></i> Browse Source on Github</button>
</div>
</div>
</div>
</div>
</form>
</section>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment