mirror of https://github.com/shuang854/Turtle
added about page, made more CSS styling
parent
9abcfd4015
commit
85ac020a5d
@ -0,0 +1,21 @@
|
||||
.about-grid {
|
||||
margin-top: 50px;
|
||||
max-width: 500px;
|
||||
font-size: 20px;
|
||||
font-style: bold;
|
||||
color: var(--ion-color-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.externals-row {
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.about-icons {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
padding: 0;
|
||||
top: 0;
|
||||
cursor: pointer;
|
||||
color: var(--ion-color-secondary);
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
import { IonCol, IonGrid, IonIcon, IonRow, IonRouterLink } from '@ionic/react';
|
||||
import { logoGithub } from 'ionicons/icons';
|
||||
import { Icon } from '@iconify/react';
|
||||
import discordIcon from '@iconify/icons-simple-icons/discord';
|
||||
|
||||
import React from 'react';
|
||||
import './About.css';
|
||||
|
||||
type AboutProps = {
|
||||
pane: string;
|
||||
};
|
||||
|
||||
const About: React.FC<AboutProps> = ({ pane }) => {
|
||||
return (
|
||||
<IonGrid style={{ display: pane === 'about' ? null : 'none' }} class="about-grid">
|
||||
<IonRow>
|
||||
<IonCol>
|
||||
<span>Any feedback is welcome! </span>
|
||||
<span role="img" aria-label="Turtle">
|
||||
🐢🐢
|
||||
</span>
|
||||
</IonCol>
|
||||
</IonRow>
|
||||
<IonRow class="externals-row">
|
||||
<IonCol size="3"></IonCol>
|
||||
<IonCol size="3">
|
||||
<IonRouterLink href="https://github.com/shuang854/Turtle" target="_blank">
|
||||
<IonIcon icon={logoGithub} class="about-icons"></IonIcon>
|
||||
</IonRouterLink>
|
||||
</IonCol>
|
||||
<IonCol size="3">
|
||||
<Icon icon={discordIcon} className="about-icons"></Icon>
|
||||
</IonCol>
|
||||
<IonCol size="3"></IonCol>
|
||||
</IonRow>
|
||||
</IonGrid>
|
||||
);
|
||||
};
|
||||
|
||||
export default About;
|
||||
Loading…
Reference in New Issue