diff --git a/public/index.html b/public/index.html index aa069f2..ecb183a 100644 --- a/public/index.html +++ b/public/index.html @@ -3,7 +3,7 @@
- + div { + transition: transform 400ms ease-in-out; + } + button.plus { + z-index: 1; + div { + transform: rotate(0deg); + } + } + button.cross { + z-index: 1; + transform: translate(-25vw, 0); + div { + transform: rotate(225deg); + } + } + button.done { + transform: translate(25vw, 0); + z-index: 0; + } + button.gone { + transform: translate(0, 0); + z-index: 0; + } + } +} +.add-song-menu { display: flex; flex-direction: column; align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); + gap: 5px; + input { + max-width: 100%; + } +} +.entry { + position: relative; + padding: 15px; + background-color: var(--color-primary); + outline: inherit; + border: none; + .edit { + position: absolute; + right: 12px; + top: 2px; + font-size: 8pt !important; + } + .delete { + position: absolute; + right: 1px; + top: -6px; + font-size: 15pt !important; } } diff --git a/src/App.tsx b/src/App.tsx index a53698a..77dcc4c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,24 +1,94 @@ -import React from 'react'; +import React, { useEffect, useState } from 'react'; import logo from './logo.svg'; import './App.css'; -function App() { +type Entry =[string, string, string]; + +const songlib: Entry[] = [ + [ "https://tabs.ultimate-guitar.com/tab/sdp/ne-leiche-chords-1869475", "SDP", "Ne Leiche" ], + [ "https://tabs.ultimate-guitar.com/tab/gloria-gaynor/i-will-survive-chords-154172", "Gloria Gaynor", "I will survive" ], + [ "https://tabs.ultimate-guitar.com/tab/sting/englishman-in-new-york-chords-2220", "Sting", "Englishman in New York"], +]; + +const App: React.FC = () => { + const [store, setStore] = useState
- Edit src/App.tsx
and save to reload.
-