浏览代码

:pencil: Add selected mechs list

DricomDragon 7 月之前
父节点
当前提交
acf08eef2c
共有 2 个文件被更改,包括 51 次插入4 次删除
  1. 16 0
      dev-front/src/App.css
  2. 35 4
      dev-front/src/App.tsx

+ 16 - 0
dev-front/src/App.css

@@ -27,4 +27,20 @@ header {
 .custom-squad {
     /* Take the remaining width */
     flex-grow: 1;
+}
+
+.mech-members {
+    display: flex;
+}
+
+.mech-member {
+    flex: 1;
+    margin: 0 8px;
+
+    display: flex;
+    flex-direction: column;
+}
+
+.mech-description {
+    flex: 1;
 }

+ 35 - 4
dev-front/src/App.tsx

@@ -31,10 +31,41 @@ function App() {
 
                 <article className='custom-squad'>
                     <h2>Custom squad</h2>
-                    <p>
-                        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. 
-                    </p>
+                    <div className='mech-members'>
+                        <div className='mech-member'>
+                            <h3>Mech 1</h3>
+                            <div className='mech-description'>
+                                <img src={logo} alt='Mech picture'/>
+                                <ul className='mech-stats'>
+                                    <li>Stat1 = Prime</li>
+                                    <li>Stat2 = 3</li>
+                                </ul>
+                            </div>
+                            <button>Remove</button>
+                        </div>
+                        <div className='mech-member'>
+                            <h3>Mech 2</h3>
+                            <div className='mech-description'>
+                                <img src={logo} alt='Mech picture'/>
+                                <ul className='mech-stats'>
+                                    <li>Stat1 = Prime</li>
+                                    <li>Stat2 = 3</li>
+                                </ul>
+                            </div>
+                            <button>Remove</button>
+                        </div>
+                        <div className='mech-member'>
+                            <h3>Mech 3</h3>
+                            <div className='mech-description'>
+                                <img src={logo} alt='Mech picture'/>
+                                <ul className='mech-stats'>
+                                    <li>Stat1 = Prime</li>
+                                    <li>Stat2 = 3</li>
+                                </ul>
+                            </div>
+                            <button>Remove</button>
+                        </div>
+                    </div>
                 </article>
 
             </main>