-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding template engine and a couple of templates
- Loading branch information
1 parent
a6849c7
commit 7d1fdcc
Showing
7 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.gradle | ||
build/ | ||
.idea | ||
connection.txt | ||
jte-classes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.gradle | ||
build/ | ||
.idea | ||
connection.txt | ||
jte-classes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@import gg.jte.Content | ||
|
||
@param Content content | ||
|
||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" | ||
crossorigin="anonymous"> | ||
<title>Page analyzer 📊</title> | ||
</head> | ||
<body> | ||
<header class="bg-black text-white p-2 pt-3"> | ||
<p> | ||
<span class="px-3 fs-2">Page analyzer</span> | ||
<a href="/" class="pe-3 text-white">Main page</a> | ||
<a href="/list" class="text-white">Sites list</a> | ||
</p> | ||
</header> | ||
<main> | ||
${content} | ||
</main> | ||
<footer> | ||
<div class="border-top position-fixed top-100 start-50 translate-middle pb-5 w-100 bg-light text-dark"> | ||
<p class="text-center pt-3"> | ||
This site was created 📝 by | ||
<a href="https://github.com/roman-iork" class="text-black">Roman Iork</a> | ||
during studying 📖 at | ||
<a href="https://ru.hexlet.io" class="text-black">Hexlet</a> | ||
</p> | ||
</div> | ||
</footer> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" | ||
crossorigin="anonymous"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
@template.layout( | ||
content = @` | ||
<div class="bg-success text-white p-5 text-center"> | ||
<p class="fs-1">Page analyzer</p> | ||
<p class="fs-4">Check SEO information for free</p> | ||
<form> | ||
<input class="form-control-lg w-75" type="text" name="siteAddress" placeholder="Enter site address as in example below 👇"> | ||
<input class="form-control-lg bg-black text-white" type="submit" value="Check"> | ||
</form> | ||
<p class="fs-5">Example: https://mail.ru</p> | ||
</div> | ||
` | ||
) |