From 4d50b00952b3c4a9e89b44af8a78bfaca0bde37f Mon Sep 17 00:00:00 2001 From: Pascal Date: Sun, 24 Apr 2022 14:07:55 -0500 Subject: [PATCH] [mod][add] changed to pure-css and added fontawesome --- package.json | 40 ++++++++++- src/components/global/finder/finder.riot | 92 +++++++++++++----------- src/components/includes/word/wordle.riot | 36 +++++----- src/index.html | 20 +++--- src/style.css | 30 +++++++- 5 files changed, 142 insertions(+), 76 deletions(-) diff --git a/package.json b/package.json index bd89205..71cc22f 100644 --- a/package.json +++ b/package.json @@ -1 +1,39 @@ -{"dependencies":{"@riotjs/hot-reload":"^6.0.0","@riotjs/lazy":"^2.0.1","@riotjs/route":"^8.0.0","riot":"^6.0.2"},"name":"wordle_finder","version":"1.0.0","description":"Find available Words with current Input","main":"index.js","devDependencies":{"@riotjs/compiler":"^6.0.1","@riotjs/register":"^5.0.0","@riotjs/webpack-loader":"^6.0.0","chai":"^4.3.4","css-loader":"^6.2.0","esm":"^3.2.25","html-webpack-plugin":"^5.3.2","jsdom":"^16.6.0","jsdom-global":"^3.0.2","mini-css-extract-plugin":"^2.1.0","mocha":"^9.2.2","nyc":"^15.1.0","webpack":"^5.47.1","webpack-cli":"^4.7.2","webpack-dev-server":"^3.11.2"},"scripts":{"test":"nyc --require esm --require jsdom-global/register --require @riotjs/register mocha src/**/*.spec.js","cov":"nyc report --reporter=text-lcov","cov-html":"nyc report --reporter=html","build":"webpack --mode production","prepublishOnly":"npm test","start":"webpack serve --mode development --hot --port 3000"},"author":"pdevq","license":"MIT"} \ No newline at end of file +{ + "dependencies": { + "@riotjs/hot-reload": "^6.0.0", + "@riotjs/lazy": "^2.0.1", + "@riotjs/route": "^8.0.0", + "riot": "^6.0.2" + }, + "name": "wordle_finder", + "version": "1.0.0", + "description": "Find available Words with current Input", + "main": "index.js", + "devDependencies": { + "@riotjs/compiler": "^6.0.1", + "@riotjs/register": "^5.0.0", + "@riotjs/webpack-loader": "^6.0.0", + "chai": "^4.3.4", + "css-loader": "^6.2.0", + "esm": "^3.2.25", + "html-webpack-plugin": "^5.3.2", + "jsdom": "^16.6.0", + "jsdom-global": "^3.0.2", + "mini-css-extract-plugin": "^2.1.0", + "mocha": "^9.2.2", + "nyc": "^15.1.0", + "webpack": "^5.47.1", + "webpack-cli": "^4.7.2", + "webpack-dev-server": "^3.11.2" + }, + "scripts": { + "test": "nyc --require esm --require jsdom-global/register --require @riotjs/register mocha src/**/*.spec.js", + "cov": "nyc report --reporter=text-lcov", + "cov-html": "nyc report --reporter=html", + "build": "webpack --mode production", + "prepublishOnly": "npm test", + "start": "webpack serve --mode development --hot --host 0.0.0.0 --port 3000" + }, + "author": "pdevq", + "license": "MIT" +} \ No newline at end of file diff --git a/src/components/global/finder/finder.riot b/src/components/global/finder/finder.riot index e6868a4..b989f26 100644 --- a/src/components/global/finder/finder.riot +++ b/src/components/global/finder/finder.riot @@ -1,28 +1,35 @@ -
-
- +
+
+
-
- - - +
+
-
-
-
- +
+
-
-
-
- toggle_active(word) } word={ word.word } btn_class={ word.active ? 'active' : 'inactive' }/> +
+
+ +
+
+ +
+ +
+
+
+
+ toggle_active(word) } word={ word.word } + btn_class={ word.active ? 'active' : 'inactive' }/> +
+
- - + + -
-
-
-
-
-
-
-
+
+
+
+
+
diff --git a/src/style.css b/src/style.css index d716a94..54f2bee 100644 --- a/src/style.css +++ b/src/style.css @@ -29,9 +29,9 @@ .word { cursor: pointer; - margin: 2px; - float: left; - width: 60px; + padding: 10px; + margin: 5px; + font-size: 1.1em; text-align: center; font-weight: bold; } @@ -42,4 +42,28 @@ background-color: #cccccc; color: #a1a1a1; } +.char-container { + margin: 0 auto; + width: 250px; +} +.word-container { + margin: 0 auto; + width: 600px; +} +.finder { + text-align: center; + margin-top: 50px; + max-width: 640px; +} + +.form-input { + font-size: 1.25em; +} + +.margin-0-5 { + margin: 0.5em; +} +.margin-0-25 { + margin: 0.25em; +}