THIS IS AN ALPHA RELEASE
parent
62078e04b8
commit
3e358f04fc
|
@ -8,7 +8,7 @@ import Prelude (Unit, pure, unit, ($))
|
||||||
-- import Data.Tuple (Tuple(..))
|
-- import Data.Tuple (Tuple(..))
|
||||||
import Effect.Aff.Class (class MonadAff)
|
import Effect.Aff.Class (class MonadAff)
|
||||||
import Halogen as H
|
import Halogen as H
|
||||||
-- import Halogen.HTML as HH
|
import Halogen.HTML as HH
|
||||||
-- import Halogen.HTML.Events as HE
|
-- import Halogen.HTML.Events as HE
|
||||||
-- import Halogen.HTML.Properties as HP
|
-- import Halogen.HTML.Properties as HP
|
||||||
|
|
||||||
|
@ -39,28 +39,45 @@ initialState :: forall input. input -> State
|
||||||
initialState _ = unit
|
initialState _ = unit
|
||||||
|
|
||||||
render :: forall m. State -> H.ComponentHTML Action () m
|
render :: forall m. State -> H.ComponentHTML Action () m
|
||||||
render _ = Bulma.section_small [ Bulma.h1 "Welcome on netlib.re"
|
render _ = HH.div_
|
||||||
, Bulma.subtitle "Free domain names"
|
[ Bulma.hero_danger
|
||||||
, Bulma.hr
|
"THIS IS AN ALPHA RELEASE"
|
||||||
, render_description
|
"Come back later!"
|
||||||
, render_why_and_contact
|
, Bulma.section_small
|
||||||
, Bulma.hr
|
[ Bulma.h1 "Welcome to netlib.re"
|
||||||
, render_how_and_code
|
, Bulma.subtitle "Free domain names"
|
||||||
]
|
, Bulma.hr
|
||||||
|
, render_description
|
||||||
|
, render_second_line
|
||||||
|
, render_why_and_contact
|
||||||
|
, Bulma.hr
|
||||||
|
, render_how_and_code
|
||||||
|
]
|
||||||
|
]
|
||||||
where
|
where
|
||||||
title = Bulma.h3
|
title = Bulma.h3
|
||||||
p = Bulma.p
|
p = Bulma.p
|
||||||
b x = Bulma.column_ [ Bulma.box x ]
|
b x = Bulma.column_ [ Bulma.box x ]
|
||||||
|
|
||||||
render_description = Bulma.columns_ [ render_basics, render_updates ]
|
render_description = Bulma.columns_ [ render_basics, render_no_expert ]
|
||||||
render_basics
|
render_basics
|
||||||
= b [ title "What is provided?"
|
= b [ title "What is provided?"
|
||||||
, p "Reserve a domain name in <something>.netlib.re for free."
|
, p "Reserve a domain name in <something>.netlib.re for free."
|
||||||
, p "Manage your own DNS zone."
|
, p "Manage your own DNS zone."
|
||||||
, Bulma.hr
|
]
|
||||||
, p "No need to be an expert! This website will help you through your configuration."
|
render_no_expert
|
||||||
, Bulma.hr
|
= b [ title "No need to be an expert!"
|
||||||
, p "We don't provide housing, just a name."
|
, p """
|
||||||
|
This website will help you through your configuration, as much as we can.
|
||||||
|
"""
|
||||||
|
]
|
||||||
|
render_second_line = Bulma.columns_ [ render_no_housing, render_updates ]
|
||||||
|
render_no_housing
|
||||||
|
= b [ title "No housing, just a name"
|
||||||
|
, p """
|
||||||
|
We don't provide housing for your services or websites,
|
||||||
|
just a name.
|
||||||
|
"""
|
||||||
]
|
]
|
||||||
render_updates
|
render_updates
|
||||||
= b [ title "Automatic updates"
|
= b [ title "Automatic updates"
|
||||||
|
|
|
@ -407,6 +407,15 @@ hero _title _subtitle
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
hero_danger :: forall w i. String -> String -> HH.HTML w i
|
||||||
|
hero_danger _title _subtitle
|
||||||
|
= HH.section [ HP.classes (C.hero <> C.is_danger <> C.is_small) ]
|
||||||
|
[ HH.div [ HP.classes C.hero_body ]
|
||||||
|
[ HH.p [ HP.classes C.title ] [ HH.text _title ]
|
||||||
|
, HH.p [ HP.classes C.subtitle ] [ HH.text _subtitle ]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
header :: forall w i. String -> String -> HH.HTML w i
|
header :: forall w i. String -> String -> HH.HTML w i
|
||||||
header = hero
|
header = hero
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue