Skip to content

Instantly share code, notes, and snippets.

@u88803494
u88803494 / App.css
Created November 21, 2019 15:12
React 簡單 Blog
.nav {
display: flex;
padding: 0 10px;
background: aqua;
height: 65px;
position: fixed;
top: 0;
left: 0;
right: 0;
opacity: 0.9;
@u88803494
u88803494 / App.css
Created November 17, 2019 09:28
[Week21] hw2 五子棋
.game {
margin: 10px auto;
padding: 20px;
}
.game__info {
text-align: center;
}
.game__state {
@u88803494
u88803494 / Board.js
Created November 16, 2019 08:35
五子棋 切版跟可以放子
import React from 'react';
import { boardSize } from './App';
const RenderPieces = ({ pieces, handleMove, movement }) => (
<div className="game__pieces">
<div className={`game__pieces--${pieces}`}
onClick={() => handleMove(movement)} />
</div>
)
@u88803494
u88803494 / App.css
Created November 5, 2019 06:45
[Week19] 的 todolist 改寫
body {
font-family: Arial, "文泉驛正黑", "WenQuanYi Zen Hei", "儷黑 Pro", "LiHei Pro", "微軟正黑體", "Microsoft JhengHei", sans-serif;
}
.todolist__done {
margin-top: 0.5rem;
}
.todolist__content {
font-size: 19px;
@u88803494
u88803494 / app.css
Last active November 2, 2019 07:02
職缺報報新增關注清單跟重新整理還在
.App {
text-align: center;
}
.job {
border: 1px solid grey;
width: 60%;
margin: auto;
padding: 10px 0;
position: relative;
@u88803494
u88803494 / app.js
Created November 1, 2019 07:13
職缺報報新增切換功能
import React from 'react';
import './App.css';
class Jobs extends React.Component {
constructor(props) {
super(props)
}
render() {
const { job } = this.props
@u88803494
u88803494 / app.css
Last active October 28, 2019 14:15
職缺報報
.App {
text-align: center;
}
.job {
border: 1px solid grey;
width: 60%;
margin: auto;
padding: 10px 0;
}
@u88803494
u88803494 / app.js
Created October 28, 2019 11:23
完成版提交驗證跟提交前驗證
import React from 'react';
import './App.css';
const CheckBox = ({ value, label, checked, onChange, onBlur }) => (
<span>
<input
type="checkbox"
value={value}
name="time"
checked={checked}
@u88803494
u88803494 / app.js
Created October 27, 2019 03:56
優化後的 form
import React from 'react';
import './App.css';
const CheckBox = ({ value, label, checked, onChange }) => (
<span>
<input
type="checkbox"
value={value}
name="time"
checked={checked}
@u88803494
u88803494 / app.js
Created October 27, 2019 03:10
尚未優化的 form
import React from 'react';
import './App.css';
const CheckBox = ({ value, label, checked, onChange }) => {
<span>
<input
type="checkbox"
value={value}
name="time"
checked={checked}