Skip to content

Commit

Permalink
Added a simple footer
Browse files Browse the repository at this point in the history
  • Loading branch information
TinySnow committed Aug 13, 2023
1 parent b349674 commit 7ee0030
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
16 changes: 16 additions & 0 deletions src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Link from "antd/es/typography/Link";
import React from "react";

interface FooterProps {}

const Feeter: React.FC<FooterProps> = () => {
return (
<Feeter>
<div>
<Link href="https://github.com/TinySnow/Typeseter">Github</Link>
</div>
</Feeter>
);
};

export default Feeter;
18 changes: 16 additions & 2 deletions src/pages/pure-text/pure-text.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,26 @@
}

.contentStyle {
margin-bottom: 5%;
@media screen and (max-width: 576px) {
margin-bottom: 5%;
}
@media screen and (max-width: 768px) {
margin-bottom: 5%;
}
@media screen and (max-width: 992px) {
margin-bottom: 4%;
}
@media screen and (max-width: 1200px) {
margin-bottom: 3%;
}
@media screen and (max-width: 1600px) {
margin-bottom: 3%;
}
}

.footerStyle {
text-align: center;
background: #7dbcea;
background: #dfedf7;
}

.handleBotton {
Expand Down
8 changes: 6 additions & 2 deletions src/pages/pure-text/pure-text.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React, { useState } from "react";
import type { CollapseProps } from "antd";
import { Layout, Col, Row, Button, Collapse } from "antd";
import style from "./pure-text.less";
import { In } from "@/components/input";
import { PureSetting } from "@/components/pure-setting";
import { Option } from "@/models/option";
import { typeset } from "@/utils/typeset";
import Feeter from "@/components/footer";
import Link from "antd/es/typography/Link";

const { Header, Footer, Content } = Layout;

Expand Down Expand Up @@ -90,7 +91,10 @@ const PureText = () => {
onChange={handleTextChange}
/>
</Content>
<Footer className={style.footerStyle}>Footer</Footer>
<Footer className={style.footerStyle}>
{/* <Feeter /> */}
<Link href="https://github.com/TinySnow/Typeseter">Github</Link>
</Footer>
</Layout>
);
};
Expand Down

0 comments on commit 7ee0030

Please sign in to comment.