diff --git a/server/src/main/assets/css/partials/_main.scss b/server/src/main/assets/css/partials/_main.scss index f9f82e988..b788f679c 100755 --- a/server/src/main/assets/css/partials/_main.scss +++ b/server/src/main/assets/css/partials/_main.scss @@ -647,55 +647,6 @@ main { padding: 6px 12px; } } - .overlay { - position: fixed; - z-index: 10; - top: 0; - bottom: 0; - left: 0; - right: 0; - background: rgba(0, 0, 0, 0.7); - transition: opacity 500ms; - visibility: hidden; - opacity: 0; - } - .overlay:target { - visibility: visible; - opacity: 1; - } - - .popup { - margin: 70px auto; - padding: 20px; - background: #fff; - border-radius: 5px; - width: 60%; - position: relative; - transition: all 5s ease-in-out; - } - - .popup h2 { - margin-top: 0; - color: #333; - font-family: Tahoma, Arial, sans-serif; - } - .popup .close { - position: absolute; - top: 20px; - right: 30px; - transition: all 200ms; - font-size: 30px; - font-weight: bold; - text-decoration: none; - color: #333; - } - .popup .close:hover { - color: #06D85F; - } - .popup .content { - max-height: 30%; - overflow: auto; - } } .artifact-project { margin-top: 10px; @@ -729,6 +680,58 @@ main { } } +.badge-showcase { + .overlay { + position: fixed; + z-index: 10; + top: 0; + bottom: 0; + left: 0; + right: 0; + background: rgba(0, 0, 0, 0.7); + transition: opacity 500ms; + visibility: hidden; + opacity: 0; + } + .overlay:target { + visibility: visible; + opacity: 1; + } + + .popup { + margin: 70px auto; + padding: 20px; + background: #fff; + border-radius: 5px; + width: 60%; + position: relative; + transition: all 5s ease-in-out; + } + + .popup h2 { + margin-top: 0; + color: #333; + font-family: Tahoma, Arial, sans-serif; + } + .popup .close { + position: absolute; + top: 20px; + right: 30px; + transition: all 200ms; + font-size: 30px; + font-weight: bold; + text-decoration: none; + color: #333; + } + .popup .close:hover { + color: #06D85F; + } + .popup .content { + max-height: 30%; + overflow: auto; + } +} + .documentation-link { ul { padding-left: 0; diff --git a/template/src/main/twirl/ch.epfl.scala.index.views/project/badges.scala.html b/template/src/main/twirl/ch.epfl.scala.index.views/project/badges.scala.html new file mode 100644 index 000000000..4c15884f4 --- /dev/null +++ b/template/src/main/twirl/ch.epfl.scala.index.views/project/badges.scala.html @@ -0,0 +1,30 @@ +@import ch.epfl.scala.index.model.Release +@(release: Release) +
+

Markdown Badge

+
+ + + +
+
+ +
+ +
\ No newline at end of file diff --git a/template/src/main/twirl/ch.epfl.scala.index.views/project/headproject.scala.html b/template/src/main/twirl/ch.epfl.scala.index.views/project/headproject.scala.html index 365416237..6c33e9b5e 100644 --- a/template/src/main/twirl/ch.epfl.scala.index.views/project/headproject.scala.html +++ b/template/src/main/twirl/ch.epfl.scala.index.views/project/headproject.scala.html @@ -52,28 +52,7 @@

GitHub } - - - -
- -
+ @for(github <- project.github) { @if(!github.topics.isEmpty) { diff --git a/template/src/main/twirl/ch.epfl.scala.index.views/project/project.scala.html b/template/src/main/twirl/ch.epfl.scala.index.views/project/project.scala.html index 6f7410cd6..858dcd6c8 100644 --- a/template/src/main/twirl/ch.epfl.scala.index.views/project/project.scala.html +++ b/template/src/main/twirl/ch.epfl.scala.index.views/project/project.scala.html @@ -31,6 +31,7 @@

[DEPRECATED]

} @documentation(release, project) + @badges(release) @install(release, project.cliArtifacts) @release.scastieURL.map(url => scastie(url)) @project.github.map(gh => statistic(gh, project.githubRepo, project.releaseCount, allDeps.reverseDependencies.size))