質問編集履歴

2

コードの追加

2020/05/13 03:16

投稿

rr2
rr2

スコア3

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,41 @@
26
26
 
27
27
  ```html
28
28
 
29
+ <!DOCTYPE html>
30
+
31
+ <html>
32
+
33
+ <head>
34
+
29
- <meta name="viewport" content="width=device-width, initial-scale=1">
35
+ <meta name="viewport" content="width=device-width, initial-scale=1">
36
+
37
+ <title>App</title>
38
+
39
+ <%= csrf_meta_tags %>
40
+
41
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
42
+
43
+ <%= javascript_include_tag 'application' %>
44
+
45
+ <%= javascript_include_tag 'https://kit.fontawesome.com/3b011d839e.js' %>
46
+
47
+ <%= javascript_include_tag 'https://code.jquery.com/jquery-1.12.3.min.js' %>
48
+
49
+ <%= javascript_include_tag 'https://cdnjs.cloudflare.com/ajax/libs/jquery-sidebar/3.3.2/jquery.sidebar.min.js' %>
50
+
51
+ </head>
52
+
53
+ <body>
54
+
55
+ <%= render 'layouts/notifications' %>
56
+
57
+ <%= yield %>
58
+
59
+ </body>
60
+
61
+ </html>
62
+
63
+
30
64
 
31
65
  ```
32
66
 

1

コードの追加

2020/05/13 03:16

投稿

rr2
rr2

スコア3

test CHANGED
File without changes
test CHANGED
@@ -30,6 +30,210 @@
30
30
 
31
31
  ```
32
32
 
33
+ ```html
34
+
35
+ <div class="wrapper select">
36
+
37
+ <div class="select__box">
38
+
39
+ <div class="select__box__left">
40
+
41
+ <%= image_tag '767652_m 2.JPG' %>
42
+
43
+ </div>
44
+
45
+ <div class="select__box__right">
46
+
47
+ <div class="select__box__right__sign-in">
48
+
49
+ <%= link_to "Sign In", new_user_session_path %>
50
+
51
+ </div>
52
+
53
+ <div class="select__box__right__sign-up">
54
+
55
+ <%= link_to "Sign Up", new_user_registration_path, class:'left__box' %>
56
+
57
+ </div>
58
+
59
+ </div>
60
+
61
+ </div>
62
+
63
+ </div>
64
+
65
+ ```
66
+
67
+ ```css
68
+
69
+ * {
70
+
71
+ box-sizing: border-box;
72
+
73
+ }
74
+
75
+
76
+
77
+
78
+
79
+ .wrapper{
80
+
81
+ width: 100vw;
82
+
83
+ height: 100vh;
84
+
85
+ }
86
+
87
+
88
+
89
+ .select{
90
+
91
+ background: #43C6AC; /* fallback for old browsers */
92
+
93
+ background: -webkit-linear-gradient(to right, #43C6AC, #F8FFAE); /* Chrome 10-25, Safari 5.1-6 */
94
+
95
+ background: linear-gradient(to right, #43C6AC, #F8FFAE); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
96
+
97
+ }
98
+
99
+ .select__box{
100
+
101
+ background-color: white;
102
+
103
+ margin: 0 auto;
104
+
105
+ width: 1110px;;
106
+
107
+ height: calc(100vh - 100px);
108
+
109
+ margin-top: 50px;
110
+
111
+ display: flex;
112
+
113
+ &__left{
114
+
115
+ width: 50%;
116
+
117
+ height: 100%;
118
+
119
+ }
120
+
121
+ &__left img{
122
+
123
+ // width:auto;
124
+
125
+ // height:auto;
126
+
127
+ width:100%;
128
+
129
+ height:100%;
130
+
131
+ opacity: 0.5;
132
+
133
+ }
134
+
135
+ &__right{
136
+
137
+ width: 50%;
138
+
139
+ height: 100%;
140
+
141
+ position: relative;
142
+
143
+ background-color: #F5F5F5;
144
+
145
+ }
146
+
147
+ }
148
+
149
+ @media(max-width:600px){
150
+
151
+ .select__box__left img{
152
+
153
+ display: none;
154
+
155
+ }
156
+
157
+ }
158
+
159
+
160
+
161
+
162
+
163
+ .select__box__right__sign-in{
164
+
165
+ background-color: #B0E0E6;
166
+
167
+ height: 50px;
168
+
169
+ width: 300px;
170
+
171
+ border-radius: 40px;
172
+
173
+ text-align: center;
174
+
175
+ position: absolute;
176
+
177
+ top: 320px;
178
+
179
+ left: 150px;
180
+
181
+ }
182
+
183
+ .select__box__right__sign-in a,
184
+
185
+ .select__box__right__sign-up a{
186
+
187
+ color: white;
188
+
189
+ line-height: 50px;
190
+
191
+ font-weight: bold;
192
+
193
+ font-size: 20px;
194
+
195
+ }
196
+
197
+ .select__box__right__sign-up{
198
+
199
+ background-color: #43BFA0;
200
+
201
+ height: 50px;
202
+
203
+ width: 300px;
204
+
205
+ border-radius: 40px;
206
+
207
+ text-align: center;
208
+
209
+ position: absolute;
210
+
211
+ top: 390px;
212
+
213
+ left: 150px;
214
+
215
+ }
216
+
217
+
218
+
219
+
220
+
221
+ .select__box__right__sign-up :hover,
222
+
223
+ .select__box__right__sign-in :hover{
224
+
225
+ text-decoration: none;
226
+
227
+ color: white;
228
+
229
+ }
230
+
231
+ ```
232
+
233
+
234
+
235
+ reset.cssはYUI3を使用しています。
236
+
33
237
 
34
238
 
35
239