forked from GivFNZ/my-website
style: responsive: remove drawer outline, fix image and hide avatar
This commit is contained in:
parent
7a57574486
commit
bf9f73bfe1
@ -14,4 +14,7 @@ border-radius: 50%;
|
|||||||
width: 2rem;
|
width: 2rem;
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
@media(max-width: 640px){
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
`
|
`
|
@ -1,4 +1,4 @@
|
|||||||
import styled, { keyframes } from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
export const Drawer = styled.button`
|
export const Drawer = styled.button`
|
||||||
all: unset;
|
all: unset;
|
||||||
@ -13,6 +13,10 @@ display: none;
|
|||||||
&::after {
|
&::after {
|
||||||
content: "☰";
|
content: "☰";
|
||||||
}
|
}
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
@media(max-width: 640px){
|
@media(max-width: 640px){
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ export default function Header() {
|
|||||||
<HeaderContainer>
|
<HeaderContainer>
|
||||||
<HomeLink href="/">
|
<HomeLink href="/">
|
||||||
<AvatarHeader src="https://avatars.githubusercontent.com/u/53719063?v=4" alt="Giv's Gh picture" />
|
<AvatarHeader src="https://avatars.githubusercontent.com/u/53719063?v=4" alt="Giv's Gh picture" />
|
||||||
Giv's Website
|
<span>Giv's Website</span>
|
||||||
</HomeLink>
|
</HomeLink>
|
||||||
<nav>
|
<nav>
|
||||||
<NavLink href="#about">{t("about")}</NavLink>
|
<NavLink href="#about">{t("about")}</NavLink>
|
||||||
|
@ -5,4 +5,7 @@ export const MainContainer = styled.div`
|
|||||||
margin: 3rem;
|
margin: 3rem;
|
||||||
background-color: ${props => props.theme["gray-700"]};
|
background-color: ${props => props.theme["gray-700"]};
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
@media(max-width: 640px){
|
||||||
|
margin: 0 0 3rem 0;
|
||||||
|
}
|
||||||
`
|
`
|
@ -6,6 +6,7 @@ import { IconContainer, IconLink, HomeLabel, TopSection } from './styles';
|
|||||||
import { MainContainer } from '../../components/MainContent/styles';
|
import { MainContainer } from '../../components/MainContent/styles';
|
||||||
import { Avatar } from '../../components/Avatar/avatar';
|
import { Avatar } from '../../components/Avatar/avatar';
|
||||||
import { t } from 'i18next';
|
import { t } from 'i18next';
|
||||||
|
import { Paragraph } from '../../components/Paragraph/styles';
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const typedElement = useRef(null);
|
const typedElement = useRef(null);
|
||||||
@ -27,9 +28,9 @@ export default function Home() {
|
|||||||
<MainContainer>
|
<MainContainer>
|
||||||
<TopSection>
|
<TopSection>
|
||||||
<Avatar src="https://avatars.githubusercontent.com/u/53719063?v=4" alt="Giv's Gh picture" />
|
<Avatar src="https://avatars.githubusercontent.com/u/53719063?v=4" alt="Giv's Gh picture" />
|
||||||
<strong>
|
<Paragraph>
|
||||||
<span ref={typedElement} />
|
<span ref={typedElement} />
|
||||||
</strong>
|
</Paragraph>
|
||||||
</TopSection>
|
</TopSection>
|
||||||
<HomeLabel>
|
<HomeLabel>
|
||||||
{t("checkSocialLinks")}
|
{t("checkSocialLinks")}
|
||||||
|
@ -27,7 +27,7 @@ span{
|
|||||||
font-size: 2.3rem;
|
font-size: 2.3rem;
|
||||||
}
|
}
|
||||||
@media (max-width: 448px) {
|
@media (max-width: 448px) {
|
||||||
display: block;
|
flex-direction: column;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
`
|
`
|
Loading…
x
Reference in New Issue
Block a user