Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature about view #47

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion src/main/scala/scatan/views/home/AboutView.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,50 @@ private class ScalaJSAboutView(container: String, requirements: View.Requirement
with AboutView:

override def element: Element = div(
cls := "about-view-container",
h1("About"),
p("This is a ScalaJS view"),
p(
"The goal of the project is to create a clone of the board game 'Settlers of Catan', a game for 3 or 4 players. "
),
p(
"In the game, each participant takes on the role of a settler trying to establish themselves on the island of Catan. "
),
p(
"The game is played on a board consisting of hexagonal tiles, which are arranged randomly at the beginning of the game. "
),
p(
"The primary objective is to accumulate essential resources, including wood, clay, wheat, wool, and ore, through the construction of strategically placed settlements, cities, and roads on the island. These resources are obtained based on the results of dice rolls and the location of the structures built."
),
h2("Built with"),
ul(
li("Scala 3"),
li("Scala.js"),
li("Laminar"),
li("ScalaTest")
),
h2("Authors"),
ul(
// add links to github profiles
li(
a(
cls := "about-link",
"Luigi Borriello",
href := "https://github.com/luigi-borriello00"
)
),
li(
a(
cls := "about-link",
"Manuel Andruccioli",
href := "https://github.com/manuandru"
)
),
li(
a(cls := "about-link", "Alessandro Mazzoli", href := "https://github.com/alemazzo")
)
),
button(
cls := "home-menu-button",
"Back",
onClick --> (_ => this.navigateBack())
)
Expand Down
13 changes: 13 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -336,3 +336,16 @@ body {
border-radius: 5px;
z-index: 1000;
}

.about-view-container{
color: white;
font-size: x-large;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 1em;
padding: 1em;
}

.about-link{
color: white;
text-decoration: none;
}