1- import Button from 'components/Button '
2- import React , { useState , useEffect } from 'react '
1+ import React from 'react '
2+ import { Card } from '@alifd/next '
33import { Theme } from '../../../styles/theme'
44import Reset from '../components/Reset'
55
6- import * as T from 'typings'
7-
86const styles = {
97 flexColumn : {
108 display : 'flex' as 'flex' ,
@@ -25,23 +23,13 @@ const styles = {
2523 fontSize : '1rem' ,
2624 lineHeight : '1rem' ,
2725 padding : '10px 0.4rem' ,
26+ marginBottom : '0.5rem' ,
2827 } ) ,
2928 content : {
3029 padding : '0.5rem' ,
31- } ,
32- menu : { } ,
33- menuItem : {
3430 display : 'flex' as 'flex' ,
35- border : '1px solid rgb(173, 173, 173)' ,
36- borderRadius : '5px' ,
37- padding : '0.5rem' ,
38- } ,
39- menuItemHeader : {
40- fontWeight : 'bold' as 'bold' ,
41- } ,
42- menuItemContent : { } ,
43- menuItemButton : {
44- marginLeft : 'auto' as 'auto' ,
31+ flexDirection : 'column' as 'column' ,
32+ gap : '1rem' ,
4533 } ,
4634}
4735
@@ -56,20 +44,37 @@ const SettingsPage = (props: Props) => {
5644 < div > Settings</ div >
5745 </ div >
5846 < div css = { styles . content } >
59- < div css = { styles . menu } >
60- < div css = { styles . menuItem } >
61- < div css = { styles . flexColumn } >
62- < div css = { styles . menuItemHeader } > Reset Tutorial</ div >
63- < div css = { styles . menuItemContent } >
64- This will reset the whole tutorial and change the source files back to the first level and first task
65- checkpoint. This will reset the whole tutorial and change the source files back to the first level and
66- first task checkpoint. This will reset the whole tutorial and change the source files back to the first
67- level and first task checkpoint.
68- </ div >
47+ < Card free >
48+ < Card . Header title = "About" />
49+ < Card . Divider />
50+ < Card . Content >
51+ < div >
52+ CodeRoad is an open source VSCode extension that allows you to < strong > create</ strong > and{ ' ' }
53+ < strong > play</ strong > interactive coding tutorials inside VSCode.
6954 </ div >
70- < Reset style = { styles . menuItemButton } warning onReset = { props . onReset } />
71- </ div >
72- </ div >
55+ </ Card . Content >
56+ < Card . Divider />
57+ < Card . Actions >
58+ < a href = "https://github.com/coderoad/coderoad-vscode" > GitHub</ a >
59+ < a href = "mailto:coderoadapp@gmail.com" style = { { marginLeft : '0.5rem' } } >
60+ Email
61+ </ a >
62+ </ Card . Actions >
63+ </ Card >
64+ < Card free >
65+ < Card . Header title = "Reset Tutorial" />
66+ < Card . Divider />
67+ < Card . Content >
68+ This will reset the whole tutorial and change the source files back to the first level and first task
69+ checkpoint. This will reset the whole tutorial and change the source files back to the first level and first
70+ task checkpoint. This will reset the whole tutorial and change the source files back to the first level and
71+ first task checkpoint.
72+ </ Card . Content >
73+ < Card . Divider />
74+ < Card . Actions >
75+ < Reset warning onReset = { props . onReset } />
76+ </ Card . Actions >
77+ </ Card >
7378 </ div >
7479 </ div >
7580 )
0 commit comments