<!DOCTYPE html>
<html lang="en">
<head>
    <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>Search for "{{term}}"</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Smooch+Sans:wght@300;400;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="/css/styles.css">
</head>
<body>
    <main id="mainPageMain">
        <section class="searchSection">
            <h4>Search term: "{{term}}"</h4>
            <h5>Searching for {{#showUsers}}users{{#showGoods}} and {{/showGoods}}{{/showUsers}}{{#showGoods}}goods{{/showGoods}}</h5>
            <a href="/">&gt;&gt;&gt; Go home</a>
        </section>
        <section class="searchDataSection">
            {{#showUsers}}
            <h3>Found users:</h3>
            <div class="categories">
                {{#users}}
                <a class="categoryCard" href="/user/{{guid}}">
                    <img src="{{photo}}&{{guid}}" alt="{{fullName}} photo">
                    <p>
                        {{fullName}}
                    </p>
                </a>
                {{/users}}
                {{^users}}
                No users found for this search!
                {{/users}}
            </div>

            {{#showGoods}}
            <br>
            <hr>
            <br>
            {{/showGoods}}
            {{/showUsers}}
            
            {{#showGoods}}
            <h3>Found goods:</h3>
            <div class="goodsSearches">
                {{#goods}}
                <div class="goodsCard">
                    <h3>{{title}} # {{id}}</h3>
                    <p class="description">Category: {{category}}</p>
                    <a class="goodsLink" href="/goods/{{guid}}">More info...</a>
                </div>
                {{/goods}}
                {{^goods}}
                No goods found for this search!
                {{/goods}}
            </div>
            {{/showGoods}}
        </section>
    </main>
</body>
</html>