Skip to content

Commit

Permalink
fix: Make big button as CSS class (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina authored Aug 16, 2023
1 parent 281097f commit e3d379c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ rules:
react/react-in-jsx-scope: "off"
simple-import-sort/imports: "error"
simple-import-sort/exports: "error"
react/no-unknown-property: ["error", { ignore: ["class"] }]
9 changes: 3 additions & 6 deletions assets/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ p {
line-height: 1.6;
}

a {
.big-button {
text-decoration: none;
}

button {
text-align: center;
cursor: pointer;
display: block;
padding: 18px;
margin: 0 auto;
font-size: 250%;
font-weight: bold;
border: 0;
Expand All @@ -26,6 +23,6 @@ button {
box-shadow: #777 4px 4px 16px;
}

button:active {
.big-button:active {
box-shadow: unset;
}
9 changes: 7 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ export const Index = ({ requestUrl }: { requestUrl: string }): JSX.Element => {
OAuth を利用しており,
下記のボタンから当サービスでのトークンの利用を認可していただくことで登録処理を開始できます.
</p>
<a href={redirectUrl} referrerPolicy="no-referrer" rel="noopener">
<button>アカウント情報を登録する</button>
<a
class="big-button"
href={redirectUrl}
referrerPolicy="no-referrer"
rel="noopener"
>
アカウント情報を登録する
</a>
</Layout>
);
Expand Down

0 comments on commit e3d379c

Please sign in to comment.