|
2 | 2 | <html> |
3 | 3 |
|
4 | 4 | <head> |
| 5 | + <title>TailwindCSS to SASS Converter</title> |
| 6 | + |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> |
| 8 | + |
| 9 | + <!-- Roboto Font --> |
5 | 10 | <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> |
6 | | - <link href="https://cdn.jsdelivr.net/npm/@mdi/font@6.x/css/materialdesignicons.min.css" rel="stylesheet"> |
| 11 | + |
| 12 | + <!-- Vuetify --> |
7 | 13 | <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet"> |
8 | | - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> |
9 | 14 |
|
| 15 | + <!-- Monaco Editor --> |
10 | 16 | <link rel="stylesheet" data-name="vs/editor/editor.main" |
11 | 17 | href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.26.1/min/vs/editor/editor.main.min.css"> |
12 | 18 |
|
13 | | - <title> |
14 | | - TailwindCSS to SASS Converter |
15 | | - </title> |
16 | | - |
17 | 19 | <style> |
18 | 20 | [v-cloak]>* { |
19 | 21 | display: none |
|
33 | 35 | <body> |
34 | 36 | <div id="app"> |
35 | 37 | <v-app v-cloak> |
36 | | - <!-- Must have the app property --> |
37 | 38 | <v-toolbar class="pa-0"> |
38 | 39 | <v-row> |
39 | 40 | <v-col cols="2"></v-col> |
|
81 | 82 | </v-app> |
82 | 83 | </div> |
83 | 84 |
|
| 85 | + <!-- VueJS --> |
84 | 86 | <script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js"></script> |
| 87 | + |
| 88 | + <!-- Vuetify --> |
85 | 89 | <script src="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.js"></script> |
| 90 | + |
| 91 | + <!-- twcss-to-sass --> |
86 | 92 | <script src="https://unpkg.com/@egoistdeveloper/twcss-to-sass@latest/dist/twcss-to-sass.js"></script> |
87 | 93 |
|
| 94 | + <!-- Monaco Editor --> |
88 | 95 | <script> |
89 | 96 | var require = { |
90 | 97 | paths: { |
|
96 | 103 | <script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.26.1/min/vs/editor/editor.main.nls.js"></script> |
97 | 104 | <script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.26.1/min/vs/editor/editor.main.js"></script> |
98 | 105 |
|
| 106 | + <!-- App --> |
99 | 107 | <script> |
100 | 108 | const isBrowserDarkTheme = window.matchMedia('(prefers-color-scheme: dark)').matches; |
101 | 109 |
|
|
115 | 123 | }, |
116 | 124 |
|
117 | 125 | methods: { |
| 126 | + /** load monaco code editors */ |
118 | 127 | loadEditors: function () { |
119 | 128 | const defaultTemplate = |
120 | 129 | `<div class="bg-white">\n\t<div class="flex justify-center items-center min-h-screen min-w-full">\n\t\t<div class="flex relative">\n\t\t\t<div class="w-72 h-40 bg-green-400 transform transition-all skew-x-12 -skew-y-12 absolute rounded-lg">\n\t\t\t\tMy Text 1\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>`; |
|
0 commit comments