Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add landing page #113

Merged
merged 19 commits into from Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -157,7 +157,7 @@
</dependencies>

<build>
<plugins>
<plugins>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

убери пробел

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/main/resources/static/favicon.ico
Binary file not shown.
102 changes: 102 additions & 0 deletions src/main/resources/static/landing.html
@@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="en">

<head>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

используй уже готовый блок head как тут

если надо что добавить измены этот файл

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

если я правильно понял, то из папки static нет доступа к шаблонам thymeleaf. то есть тег у меня так просто пустой становится в итоге

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kacetal с этим не получилось, не понимаю, как правильно сделать. если я правильно понял, то из папки static нет доступа к шаблонам thymeleaf. Если я так же копирую, тег у меня пустой становится.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну надо не использовать папку статик

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Клади в шаблоны

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

надо использовать WebJar как это сделано в других файлах

integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hexlet Correction</title>
</head>

<body>
<div class="container-fluid d-flex flex-column p-0 m-0">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark text-light mb-5 mt-0">
<div class="container-fluid">Hexlet Typo Reporter</div>
</nav>
<div class=" bg-light mx-auto mt-0">
<main class="bg-light p-3">
<h1 class="display-1">Hexlet-correction</h1>
<p class="display-6">Сервис для отправки сообщений об ошибках в тексте на Вашем сайте</p>
<div class="row">
<div class="d-flex justify-content-evenly m-3 border">
<img class="w-70" src="./assets/hexlet-correction screen2 (edited).png" alt="modal window example" />
<p class="fs-4 m-2 p-2">Добавьте на страницу <b>виджет</b>, через который пользователи смогут сообщать
об
опечатках
</p>
</div>
<div class="d-flex justify-content-evenly m-3 border">
<div class="fs-4 m-2 p-2">
<p>Отслеживайте ошибки и их <b>статус</b></p>
<a class="btn btn-primary border" href="https://hexlet-correction.herokuapp.com/" target="_blank">Перейти
в
сервис</a>
</div>
<img class="w-50" src="./assets/hexlet-correction screen.png" alt="app screenshot with typo statuses" />
</div>
</div>
</main>
</div>
<footer class="d-flex p-3 bg-dark border text-light">
<div class="container-xl">
<div class="row justify-content-lg-around">
<div class="col-sm-6 col-md-3 col-lg-auto">
<a class="text-dark px-0 py-0 text-decoration-none " href="https://ru.hexlet.io">
<p class="h3 mb-2 text-light">© Hexlet</p>
</a>
<ul class="nav flex-column">
<li class="nav-item"><a class="nav-link px-0 py-1 text-light"
href="https://sicp.hexlet.io/ru/pages/about">О
проекте</a></li>
<li class="nav-item"><a class="nav-link px-0 py-1 text-light" target="_blank"
href="https://github.com/Hexlet/hexlet-sicp">Исходный код</a></li>
<li class="nav-item"><a class="nav-link px-0 py-1 text-light" target="_blank"
href="https://slack-ru.hexlet.io/">Slack
#hexlet-volunteers</a></li>
</ul>
</div>
<div class="col-sm-6 col-md-3 col-lg-auto">
<p class="h5 mb-3">Помощь</p>
<ul class="nav flex-column">
<li class="nav-item"><a class="nav-link px-0 py-1 text-light" href="https://ru.hexlet.io/blog">Блог</a>
</li>
<li class="nav-item"><a class="nav-link px-0 py-1 text-light" href="https://ru.hexlet.io/knowledge">База
знаний</a></li>
<li class="nav-item"><a class="nav-link px-0 py-1 text-light"
href="https://ru.hexlet.io/pages/recommended-books">Рекомендуемые книги</a></li>
</ul>
</div>
<div class="col-sm-6 col-md-3 col-lg-auto">
<p class="h5 mb-3">Другие open-source проекты</p>
<ul class="nav flex-column">
<li class="nav-item"><a class="nav-link px-0 py-1 text-light"
href="https://github.com/Hexlet/hexlet-cv">Хекслет-резюме</a></li>
<li class="nav-item"><a class="nav-link px-0 py-1 text-light"
href="https://github.com/Hexlet/hexlet-editor">Хекслет-редактор</a></li>
<li class="nav-item"><a class="nav-link px-0 py-1 text-light"
href="https://github.com/Hexlet/hexlet-friends">Друзья Хекслета</a></li>
</ul>
</div>
<div class="col-sm-6 col-md-3 col-lg-auto">
<p class="h5 mb-3">Дополнительно</p>
<ul class="nav flex-column">
<li class="nav-item"><a class="nav-link px-0 py-1 text-light" href="https://ru.code-basics.com/">Code
Basics</a></li>
<li class="nav-item"><a class="nav-link px-0 py-1 text-light"
href="https://codebattle.hexlet.io/">Кодбаттл</a></li>
<li class="nav-item"><a class="nav-link px-0 py-1 text-light" href="https://guides.hexlet.io/">Гайды
Хекслета</a></li>
</ul>
</div>
</div>
</div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webJar

integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8"
crossorigin="anonymous"></script>
</body>

</html>