Skip to content

Commit

Permalink
Removed run-time generation and linked to GitLab CI instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeychernyshev committed Feb 26, 2024
1 parent 539e2c1 commit dbbc3f4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 21 deletions.
22 changes: 6 additions & 16 deletions src/homepage/HomePageMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,18 @@ const HomePageMenu = function () {
<div id="wholeMenu">
<img id="logobanner" src="images/background_and_menus/logobanner.svg" />

{intro ? (
<Intro onClose={hideIntro} />
) : (
<RepoInputForm
callback={startGeneration}
initialError={generationError}
/>
)}
<Intro onClose={hideIntro} />

<footer>
<div id="feedback">
<a href="https://github.com/GitTerraGame/GitTerra/issues/new?template=feedback.md&amp;labels=feedback">
<a
href="https://github.com/GitTerraGame/GitTerra/issues/new?template=feedback.md&amp;labels=feedback"
target="_blank"
rel="noreferrer"
>
How can we make this game better?
</a>
</div>
{intro || (
<div id="about">
<a href="#" id="aboutlink" onClick={showIntro}>
About Git Terra
</a>
</div>
)}
</footer>
</div>
);
Expand Down
22 changes: 17 additions & 5 deletions src/homepage/Intro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ const Intro = ({ onClose }) => (
<p>GitTerra is a game for developers played by building software!</p>

<div id="startbox">
<button id="start" onClick={onClose}>
<a
id="start"
href="https://gitlab.com/gitterra/GitTerra"
target="_blank"
rel="noreferrer"
>
🏗️ Start Building Your City 🏗️
</button>
</a>
</div>

<p>
Expand All @@ -23,9 +28,16 @@ const Intro = ({ onClose }) => (
time, and so many more we can imagine together with you!
</p>
<p>
Right now, you can already get a city generated based on your repository,
just enter the URL of the public code repository on GitHub and the city
will rise!
Right now, you can already get a city generated based on your repository
using a{" "}
<a
href="https://gitlab.com/gitterra/GitTerra"
target="_blank"
rel="noreferrer"
>
CI/CD pipeline code with GitLab
</a>
. We are working on adding GitHub support as well.
</p>
</div>
);
Expand Down
9 changes: 9 additions & 0 deletions src/homepage/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ body {
display: block;
}

#mainMenu a,
#intro a {
color: rgb(219, 239, 254);
}

#start {
background-color: white;
border: 3px solid white;
Expand All @@ -61,6 +66,10 @@ body {
border-radius: 0.5em;
}

a#start {
color: #2e3091;
}

#start:hover {
background-color: #f0f0f0;
border-color: #f0f0f0;
Expand Down

0 comments on commit dbbc3f4

Please sign in to comment.