Skip to content
Snippets Groups Projects
Commit 0b9faed3 authored by Lucy Hao's avatar Lucy Hao :moyai:
Browse files

fix font and padding

parent b6d7504d
No related branches found
No related tags found
No related merge requests found
Pipeline #310622 passed
......@@ -383,7 +383,7 @@ a {
}
}
p {
font-size: 1.5rem;
font-size: 2vw;
@media only screen and (max-width: 768px) {
margin-top: 1rem;
font-size: 15px;
......
......@@ -12,6 +12,17 @@ const Img = styled.img`
height: auto;
}
`;
const Text = styled.div`
p {
font-size: 2vw;
@media only screen and (max-width: 768px) {
margin-top: 1rem;
font-size: 15px;
}
}
`;
const ImageText = ({ header, text, side, alt, image, pad, gif, component }) => {
return (
<div
......@@ -32,10 +43,10 @@ const ImageText = ({ header, text, side, alt, image, pad, gif, component }) => {
triggerOnce={true}
duration={1500}
>
<div className="landing-text">
<Text>
{header ? header() : ""}
{text()}
</div>
</Text>
</Slide>
<Slide
......
export default function Links({ header, content, contentTitles }) {
return (
<details>
<summary>
<h4>{header}</h4>
</summary>
{content.map((l, i) => (
<p>
<a href={l}>{contentTitles[i]}</a>
</p>
))}
</details>
<>
<details>
<summary>
<h4>{header}</h4>
</summary>
{content.map((l, i) => (
<p>
<a href={l}>{contentTitles[i]}</a>
</p>
))}
</details>
<br />
</>
);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment