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

Minor wording change for "Download" link #23

Merged
merged 1 commit into from
Mar 14, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 4 additions & 3 deletions client/pages/post/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import Header from "../../components/header";
import VisibilityBadge from "../../components/visibility-badge";
import { ThemeProps } from "../_app";
import PageSeo from "components/page-seo";
import Head from "next/head";
import styles from './styles.module.css';

const Post = ({ theme, changeTheme }: ThemeProps) => {
const [post, setPost] = useState<any>()
Expand Down Expand Up @@ -83,10 +85,10 @@ const Post = ({ theme, changeTheme }: ThemeProps) => {
<Document skeleton={true} />
</>}
{!isLoading && post && <>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<div className={styles.header}>
<Text h2>{post.title} <VisibilityBadge visibility={post.visibility} /></Text>
<Button auto onClick={download}>
Download as Zip
Download as ZIP archive
</Button>
</div>
{post.files.map(({ id, content, title }: { id: any, content: string, title: string }) => (
Expand All @@ -106,4 +108,3 @@ const Post = ({ theme, changeTheme }: ThemeProps) => {
}

export default Post

11 changes: 11 additions & 0 deletions client/pages/post/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.header {
display: flex;
justify-content: space-between;
align-items: center;
}

@media screen and (max-width: 650px) {
.header {
flex-direction: column;
}
}