From 8bdc14b90c94656c9b2623bffce1d05309e5697c Mon Sep 17 00:00:00 2001 From: Jiwon <87058411+raipen@users.noreply.github.com> Date: Sun, 2 Apr 2023 21:54:14 +0900 Subject: [PATCH] Style: sample data button and return input button (#36) --- summe/package.json | 2 +- summe/src/component/InputLink.css | 27 +++++++++--------- summe/src/component/InputLink.jsx | 4 +-- summe/src/component/button/Button.css | 17 +++-------- .../component/button/Return2InputButton.jsx | 3 +- summe/src/page/main/Main.jsx | 28 ++++++++++--------- 6 files changed, 38 insertions(+), 43 deletions(-) diff --git a/summe/package.json b/summe/package.json index 79dda02..a73b653 100644 --- a/summe/package.json +++ b/summe/package.json @@ -39,5 +39,5 @@ "last 1 safari version" ] }, - "proxy": "http://192.168.35.200:8080/" + "proxy": "http://localhost:8080/" } diff --git a/summe/src/component/InputLink.css b/summe/src/component/InputLink.css index ca5a5d9..04b2b59 100644 --- a/summe/src/component/InputLink.css +++ b/summe/src/component/InputLink.css @@ -1,42 +1,43 @@ +.inputWrapper{ + width: 100%; + max-width: 1200px; + min-width: 300px; + display: flex; + margin: auto; +} + .inputLink { - width: 30%; margin: 3px 10px; background-color: transparent; height: 30px; - width: calc(50% - 4px); - max-width: 800px; - min-width: 50px; border: 2px solid rgba(0, 0, 0, 0.23); border-radius: 7px; + flex-grow: 1; } .inputLink:hover { box-shadow: 1px 1px 3px #b0bec5; /* 그림자 효과 */ } -.selected { +.typeButton.selected { background-color: #cfd8dc; - width: 60px; - height: 30px; - border-radius: 7px; - margin: 2px; - border: 1px solid #b0bec5; } -.selected:hover { +.typeButton.selected:hover { box-shadow: 1px 1px 3px #607d8b; /* 그림자 효과 */ } -.notselected { +.typeButton { /* background-color: #eceff1; */ background-color: white; width: 60px; height: 30px; border-radius: 7px; margin: 2px; + flex-grow: 0; border: 1px solid #b0bec5; } -.notselected:hover { +.typeButton:hover { box-shadow: 1px 1px 3px #b0bec5; /* 그림자 효과 */ } diff --git a/summe/src/component/InputLink.jsx b/summe/src/component/InputLink.jsx index 8c4ff97..6e671f7 100644 --- a/summe/src/component/InputLink.jsx +++ b/summe/src/component/InputLink.jsx @@ -5,7 +5,7 @@ export default function InputLink({ input, setInput}) { let urlTypes = ["github", "tistory", "velog", "notion"]; return ( -