Skip to content

Commit

Permalink
Layout updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Aug 2, 2023
1 parent 64ebe8b commit d573def
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 52 deletions.
1 change: 0 additions & 1 deletion components/layout/AppLayout.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Container } from 'react-basics';
import Head from 'next/head';
import { useRouter } from 'next/router';
import NavBar from 'components/layout/NavBar';
import UpdateNotice from 'components/common/UpdateNotice';
import useRequireLogin from 'hooks/useRequireLogin';
Expand Down
1 change: 1 addition & 0 deletions components/layout/AppLayout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
min-height: 0;
height: calc(100vh - 60px);
overflow-y: auto;
padding-bottom: 60px;
}
27 changes: 4 additions & 23 deletions components/layout/Footer.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,12 @@
import { Row, Column } from 'react-basics';
import { FormattedMessage } from 'react-intl';
import { CURRENT_VERSION, HOMEPAGE_URL, REPO_URL } from 'lib/constants';
import { labels } from 'components/messages';
import { CURRENT_VERSION, HOMEPAGE_URL } from 'lib/constants';
import styles from './Footer.module.css';

export function Footer() {
return (
<footer className={styles.footer}>
<Row>
<Column defaultSize={12} lg={11} xl={11}>
<div>
<FormattedMessage
{...labels.poweredBy}
values={{
name: (
<a href={HOMEPAGE_URL}>
<b>umami</b>
</a>
),
}}
/>
</div>
</Column>
<Column className={styles.version} defaultSize={12} lg={1} xl={1}>
<a href={REPO_URL}>{`v${CURRENT_VERSION}`}</a>
</Column>
</Row>
<a href={HOMEPAGE_URL}>
<b>umami</b> {`v${CURRENT_VERSION}`}
</a>
</footer>
);
}
Expand Down
12 changes: 4 additions & 8 deletions components/layout/Footer.module.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
.footer {
display: flex;
flex-direction: row;
justify-content: flex-end;
font-size: var(--font-size-sm);
text-align: center;
line-height: 30px;
margin: 60px 0;
margin: 40px 0;
}

.footer a {
color: var(--font-color100);
}

.version {
text-align: right;
padding-right: 10px;
white-space: nowrap;
}
2 changes: 1 addition & 1 deletion components/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import styles from './Header.module.css';
export function Header() {
return (
<header className={styles.header}>
<Row>
<Row className={styles.row}>
<Column>
<Link href="https://umami.is" target="_blank" className={styles.title}>
<Icon size="lg">
Expand Down
17 changes: 6 additions & 11 deletions components/layout/Header.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
.header {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
padding: 30px 30px 0 30px;
height: 100px;
}

.row {
align-items: center;
}

.title {
Expand Down Expand Up @@ -35,18 +40,8 @@
}

@media only screen and (max-width: 768px) {
.header {
padding: 0 30px;
}

.buttons,
.links {
display: none;
}

.title {
flex: 1;
padding: 0.5rem;
margin-bottom: 0.5rem;
}
}
7 changes: 0 additions & 7 deletions components/layout/Page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,4 @@
flex-direction: column;
background: var(--base50);
position: relative;
padding: 30px;
}

@media only screen and (max-width: 768px) {
.page {
padding: 10px 0;
}
}
2 changes: 2 additions & 0 deletions components/layout/PageHeader.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
align-content: center;
align-self: stretch;
flex-wrap: wrap;
height: 100px;
}

.header a {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "umami",
"version": "2.4.0",
"version": "2.4.1",
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
"author": "Mike Cao <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit d573def

Please sign in to comment.