Skip to content

Commit

Permalink
Do not use the rounded box layout
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed Mar 28, 2024
1 parent 6efd568 commit 85ef340
Show file tree
Hide file tree
Showing 13 changed files with 166 additions and 145 deletions.
2 changes: 0 additions & 2 deletions bulma-annis/sass/annis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ $annis-color: #ecf0f6;

@use "../bulma/sass" with ($family-primary: '"Alegreya Sans", sans-serif',
$family-monospace: "Roboto Mono",
$body-background-color: $annis-color,
$background: $annis-color,
// https://colordesigner.io/color-scheme-builder#ECF0F6-FFE11A-e53935-0D6986-07485B
$link: #45a0a3,
$primary: #07485B,
Expand Down
6 changes: 5 additions & 1 deletion src/views/frequency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ async fn show_page(
Query(params): Query<FormParams>,
) -> Result<impl IntoResponse> {
let freq_def = if let Some(query) = params.query {
default_frequency_definition(&query, &state, &session).await
if query.is_empty() {
Ok(Vec::default())
} else {
default_frequency_definition(&query, &state, &session).await
}
} else {
Ok(Vec::default())
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ expression: body
<link rel="shortcut icon" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/favicon.ico">
<link rel="stylesheet" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/fonts.css" />
<link rel="stylesheet" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/annis.min.css" />
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/htmx-1.9.4.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/hyperscript-0.9.11.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/htmx-1.9.11.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/hyperscript-0.9.12.min.js"></script>
<title>ANNIS experiments:

Login

</title>
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<div class="navbar-brand">
<img src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -45,6 +47,7 @@ expression: body
href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;corpora">Corpora <span class="ml-1 tag is-small is-warning"
title=''>0</span></a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;export">Export</a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;frequency">Frequency</a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;about">About</a>
</div>
<div class="navbar-end">
Expand All @@ -63,14 +66,14 @@ expression: body
</div>
</div>
</nav>
<div class="box">
<section class="section">



<div class="notification is-info">Logged in as user "testuser"</div>



</div>
</section>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ expression: body
<link rel="shortcut icon" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/favicon.ico">
<link rel="stylesheet" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/fonts.css" />
<link rel="stylesheet" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/annis.min.css" />
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/htmx-1.9.4.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/hyperscript-0.9.11.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/htmx-1.9.11.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/hyperscript-0.9.12.min.js"></script>
<title>ANNIS experiments:

Login

</title>
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<div class="navbar-brand">
<img src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -45,6 +47,7 @@ expression: body
href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;corpora">Corpora <span class="ml-1 tag is-small is-warning"
title=''>0</span></a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;export">Export</a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;frequency">Frequency</a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;about">About</a>
</div>
<div class="navbar-end">
Expand All @@ -62,14 +65,14 @@ expression: body
</div>
</div>
</nav>
<div class="box">
<section class="section">



<div class="notification is-error">Empty authorization request.</div>



</div>
</section>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ expression: body
<link rel="shortcut icon" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/favicon.ico">
<link rel="stylesheet" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/fonts.css" />
<link rel="stylesheet" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/annis.min.css" />
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/htmx-1.9.4.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/hyperscript-0.9.11.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/htmx-1.9.11.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/hyperscript-0.9.12.min.js"></script>
<title>ANNIS experiments:

Login

</title>
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<div class="navbar-brand">
<img src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -45,6 +47,7 @@ expression: body
href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;corpora">Corpora <span class="ml-1 tag is-small is-warning"
title=''>0</span></a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;export">Export</a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;frequency">Frequency</a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;about">About</a>
</div>
<div class="navbar-end">
Expand All @@ -62,14 +65,14 @@ expression: body
</div>
</div>
</nav>
<div class="box">
<section class="section">



<div class="notification is-info">Logged out</div>



</div>
</section>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ expression: body
<link rel="shortcut icon" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/favicon.ico">
<link rel="stylesheet" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/fonts.css" />
<link rel="stylesheet" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/annis.min.css" />
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/htmx-1.9.4.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/hyperscript-0.9.11.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/htmx-1.9.11.min.js"></script>
<script src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/hyperscript-0.9.12.min.js"></script>
<title>ANNIS experiments:

Login

</title>
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<div class="navbar-brand">
<img src="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -45,6 +47,7 @@ expression: body
href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;corpora">Corpora <span class="ml-1 tag is-small is-warning"
title=''>0</span></a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;export">Export</a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;frequency">Frequency</a>
<a class="navbar-item" href="http:&#x2f;&#x2f;127.0.0.1:3000&#x2f;about">About</a>
</div>
<div class="navbar-end">
Expand All @@ -62,14 +65,14 @@ expression: body
</div>
</div>
</nav>
<div class="box">
<section class="section">



<div class="notification is-error">this is an error</div>



</div>
</section>
</body>
</html>
2 changes: 1 addition & 1 deletion static/annis.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/annis.min.css.map

Large diffs are not rendered by default.

Binary file added static/icons/Infinity-1s-28px.apng
Binary file not shown.
Binary file removed static/icons/progress-clock.png
Binary file not shown.
8 changes: 5 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
</title>
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<nav class="navbar is-light"
role="navigation"
aria-label="main navigation">
<div class="navbar-brand">
<img src="{{ url_prefix }}static/icons/annis_192.png"
width="52px"
Expand Down Expand Up @@ -65,9 +67,9 @@
</div>
</div>
</nav>
<div class="box">
<section class="section">
{% block content %}
{% endblock content %}
</div>
</section>
</body>
</html>
Loading

0 comments on commit 85ef340

Please sign in to comment.