Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #24 from pixiv/feature/mp3-upload-terms-of-use
Browse files Browse the repository at this point in the history
MP3アップロード時に注意事項を表示
  • Loading branch information
abcang committed Jun 12, 2017
2 parents 644e3e9 + b0fbd61 commit 74981c1
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 7 deletions.
28 changes: 22 additions & 6 deletions app/javascript/mastodon/features/ui/components/music_modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,29 @@ class MusicModal extends React.PureComponent {
</div>

<div className='music-modal__action-bar'>
<div className="action-bar__checkarea">
<label>
<input type="checkbox" checked={this.state.isClickedWaring} onChange={this.handleChangeCheckbox} />
あなた自身が作成したコンテンツです
</label>
<div className='music-modal__upload'>
<input className='music-modal__checkbox-confirm' id="checkbox-confirm" type="checkbox" checked={this.state.isClickedWaring} onChange={this.handleChangeCheckbox} />
<div className='music-modal__checkbox-content'>
<label for="checkbox-confirm">
作品(画像、音源、楽曲、テキスト等を含む)のアップロードにおいて、下記の注意事項を守ることを誓います。
</label>
</div>
<div className='music-modal__submit-button'>
<Button disabled={!this.state.isClickedWaring || !this.state.imageURL} text="upload" onClick={this.handleUpload} />
</div>
</div>
<div className='music-modal__terms-of-use'>
1.この作品をインターネットで配信することが、第三者のいかなる権利も侵害しないこと。<br />
<br />
2.マストドンというソフトウェアの仕様上、この作品が自動で他の様々なマストドンインスタンスにも複製され、配信されることに同意すること。<br />
(前提として、マストドンのソフトウェアの規約上、複製された作品を第三者が商用利用する行為は禁止されています。権利を侵害する行為は関連法令により罰せられることがあります。)<br />
<br />
3.この楽曲のインターネットでの配信(インタラクティブ配信)に係る権利について、著作権等管理団体に管理委託または信託していないこと。<br />
<br />
4.楽曲のアップロード後に、当該楽曲のインターネットでの配信(インタラクティブ配信)に係る権利の管理を第三者に委託した場合は、管理委託・信託契約の効力発生日前に、当サービスからアップロードした作品を削除すること。<br />
<br />
5.他人の作品を許可なくアップロードしたことにより、当サービスまたは第三者に損害を与えたときは、当該アップロード者が一切の責任を負うものとし、当社はその一切の責任を負いません。
</div>
<Button disabled={!this.state.isClickedWaring || !this.state.imageURL} text="upload" onClick={this.handleUpload} />
</div>
</div>
);
Expand Down
49 changes: 48 additions & 1 deletion app/javascript/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3506,7 +3506,7 @@ button.icon-button.active i.fa-retweet {
justify-content: space-between;
}

.music-modal__action-bar, .confirmation-modal__action-bar {
.confirmation-modal__action-bar {
display: flex;
background: $ui-secondary-color;
padding: 10px;
Expand All @@ -3524,6 +3524,53 @@ button.icon-button.active i.fa-retweet {
}
}

.music-modal__action-bar {
background: $ui-secondary-color;
padding: 10px;
text-align: center;
font-size: 12px;

& > div {
margin: 10px 8px;
}
}

.music-modal__upload {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
text-align: center;
}

.music-modal__checkbox-confirm {
margin: 0 8px 0 0;
width: 10px;
}

.music-modal__checkbox-content {
flex: 1;
text-align: left;
font-size: 11px;
line-height: 1.4;
margin-right: 8px;
}

.music-modal__submit-button {
width: 85px;
}

.music-modal__terms-of-use {
border-radius: 4px;
height: 100px;
background-color: rgba(0, 0, 0, 0.1);
text-align: left;
line-height: 1.4;
font-size: 10px;
overflow-y: scroll;
padding: 16px;
}

.boost-modal,
.confirmation-modal {
background: lighten($ui-secondary-color, 8%);
Expand Down

0 comments on commit 74981c1

Please sign in to comment.