diff --git a/index.html b/index.html index c7de7aa..ff413fe 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@
@@ -128,16 +123,34 @@ - + + - + diff --git a/scripts.js b/scripts.js index fb07423..7454685 100644 --- a/scripts.js +++ b/scripts.js @@ -37,7 +37,9 @@ function generateLink() { raplaUser = url.searchParams.get('user'); raplaFile = url.searchParams.get('file'); } else { - $('#full-link').text('Please provide either a course or a RaPla Link!'); + $('#linkModalTitle').text('Oh No!'); + $('#raplalinkcontainer--link').text('Please provide either a course or a RaPla Link!'); + $('#raplalinkcontainer--closeButton').text('Gonna Do that!'); return; } } else { @@ -58,7 +60,10 @@ function generateLink() { base_url += '&wahl=' + selectedElectiveModule; base_url += '&pflicht=' + selectedProfileModule; + $('#linkModalTitle').text('Your RaPla Link 🥳 '); + $('#raplalinkcontainer--link').text('Here is the link that you can use for importing RaPla into your iCloud etc. calendar (click to copy)'); $('#full-link').text(base_url); + $('#raplalinkcontainer--closeButton').text('Thank you for using'); } let courseLinks = { diff --git a/styles.css b/styles.css index 225cd67..6dcb799 100644 --- a/styles.css +++ b/styles.css @@ -13,6 +13,7 @@ body { height: 100vh; font-family: Nunito, sans-serif; display: flex; + flex-direction: column; justify-content: center; align-items: center; } @@ -25,6 +26,11 @@ body { height: 10%; } +.raplalinkcontainer--nav__subtext { + font-weight: 100; + font-size: 0.75em; + text-align: center; +} @@ -88,8 +94,5 @@ body { color: #222222; } -.raplalinkcontainer--link { - padding: 1.3em; -}