Skip to content

Commit

Permalink
Depuración de algunas partes y modificaciones al readme.org
Browse files Browse the repository at this point in the history
  • Loading branch information
rolojf committed Feb 15, 2021
1 parent 3292125 commit bb462a9
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 134 deletions.
20 changes: 14 additions & 6 deletions README.org
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
* Instalación base
Para incorporar las últimas mejoras entre releases, este subdirectorio ~websites/base-elm-pages~ hace referencia a ~base/elm-pages~, que es clonado de tal cual excepto una modificación:
* Notas particulares de la instalación del framework: elm-pages
** Para la inInstalación base
Para incorporar las últimas mejoras entre releases, en package.json se hace referencia al subdirectorio ~base/elm-pages~, que es clonado de tal cual excepto una modificación:

En ~websites/base-elm-pages/elm.json~ agregué referencia a ~elm-pages/src~ así:
Y en en ~elm.json~ agregué referencia a ~elm-pages/src~ así:
#+begin_src json
"source-directories": [
"src",
"gen",
"../elm-pages/src"
],
#+end_src
E instalé manualmente las dependencias que me pidió elm.

Adicionalmente instalé manualmente las dependencias que pide elm-pages.

En package.json también

#+begin_src json
"devDependencies": {
"elm-tooling": "^0.6.3",
Expand All @@ -21,10 +23,16 @@ En package.json también
}
#+end_src

** Corrigiendo errorores al ejecutar ~$npx elm-pages-beta~:
*** Corrigiendo errorores al ejecutar ~$npx elm-pages-beta~:
Hay que instalar global "elm-optimize-level2"

** Actualizaciones en lo futuro
*** Actualizaciones en lo futuro
Podemos actualizar el directorio clonado ~elm-pages~ para incorporar los cambios en este framework.
Independientemente podemos actualizar los archivos npm y los archivos de elm.

* Página de solarpaq.com
Es un *SPA* hecho con ~elm-pages~ es público el repositorio, por si sirve les comparto la forma en que implanté y personalicé elm-pages.
Pero por [[https://www.notion.so/Tailwind-UI-License-644418bb34ad4fa29aac9b82e956a867][licencia]], estoy usando https://tailwindui.com/components y no permite copiar el diseño visula de la aplicación.

This is an *SPA* made with [[https://github.com/dillonkearns/elm-pages/][elm-pages]] with [[https://elm-lang.org/][elm programming language]]. Shared as a public repository if you what to check out how I used elm-pages for my needs. But regarding the visual layout of the web pages, it is done with https://tailwindui.com/components and it's [[https://www.notion.so/Tailwind-UI-License-644418bb34ad4fa29aac9b82e956a867][licence]] doesn't allow to be copied as a template for other to use in their site.

95 changes: 43 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"autoprefixer": "^10.2.4",
"elm-pages": "file:../elm-pages",
"node-sass": "4.14.1",
"tailwindcss": "^2.0.2"
"tailwindcss": "^2.0.3"
},
"devDependencies": {
"elm-oembed": "0.0.6",
"elm-tooling": "^1.1.0",
"elm-tooling": "^1.2.0",
"nodemon": "^2.0.7",
"npm-run-all": "^4.1.5"
}
Expand Down
16 changes: 0 additions & 16 deletions src/FontAwesome.elm

This file was deleted.

60 changes: 2 additions & 58 deletions src/Shared.elm
Original file line number Diff line number Diff line change
Expand Up @@ -216,37 +216,6 @@ incrementView model =
[ Html.text <| "Shared count: " ++ String.fromInt model.counter ]



-- navbarLinks stars currentPath =
-- (navbarLinks stars currentPath)


highlightableLink :
PagePath Pages.PathKey
-> Directory Pages.PathKey Directory.WithIndex
-> String
-> Html msg
highlightableLink currentPath linkDirectory displayName =
let
isHighlighted =
currentPath |> Directory.includes linkDirectory
in
Html.a
[ Attr.href
(linkDirectory
|> Directory.indexPath
|> PagePath.toString
)
, class <|
if isHighlighted then
"highlited"

else
"nada"
]
[ Html.text displayName ]


myNav :
Model
->
Expand Down Expand Up @@ -324,7 +293,8 @@ myHiddenBlock modelo =
[ class "hidden md:block" ]
[ div
[ class "ml-4 flex items-center md:ml-6" ]
[ div -- Profile dropdown --
[ div
-- Profile dropdown --
[ class "ml-3 relative" ]
[ div
[]
Expand Down Expand Up @@ -479,32 +449,6 @@ ligasChulas esMovil page menus =
menus



{-
[ Html.a
[ Attr.href "#"
, class <| "text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md font-medium" ++ extraClases
]
[ Html.text "Team" ]
, Html.a
[ Attr.href "#"
, class <| "text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md font-medium" ++ extraClases
]
[ Html.text "Projects" ]
, Html.a
[ Attr.href "#"
, class <| "text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md font-medium" ++ extraClases
]
[ Html.text "Calendar" ]
, Html.a
[ Attr.href "#"
, class <| "text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md font-medium" ++ extraClases
]
[ Html.text "Reports" ]
]
-}


menuItems : String -> List (Html msg)
menuItems clases =
[ Html.a
Expand Down

0 comments on commit bb462a9

Please sign in to comment.