Skip to content

Add minimal to starters #27

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

Merged
merged 11 commits into from
Jun 3, 2025
Merged

Add minimal to starters #27

merged 11 commits into from
Jun 3, 2025

Conversation

FranjoMindek
Copy link
Contributor

@FranjoMindek FranjoMindek commented May 14, 2025

The starter is currently broken due to non-starter related issue.
The contents is the same as old "basic" from waspc templates.

@FranjoMindek FranjoMindek marked this pull request as ready for review May 19, 2025 11:35
@infomiho infomiho self-requested a review May 19, 2025 12:08
@@ -0,0 +1,14 @@
app __waspAppName__ {
wasp: {
version: "^0.16.3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose will update this version to the latest version when we release a new Wasp version

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could also support some special keyword like "latest" to stop this requirement for us

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We wanted to pin the version of Wasp (that's why we tag the starters repo and open-saas repo) because the Wasp CLI changes over time and we have breaking changes sometimes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my head it was like, we always want to keep them up to date so it doesn't matter, but this way is definitely safer.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FranjoMindek somebody might have odler version of Wasp CLI and wants to pull in the starter -> in that case they want the older one!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot we could dynamically pull this. Changed to __waspVersion__

@@ -0,0 +1,89 @@
* {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be maybe cool to upgrade these styles, maybe to make the button look more modern or smth like that

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-05-20 at 15 52 11

Here are some styles from Bolt that are a drop in replacement:

Styles
:root {
  --primary-color: #ffcc00;
  --primary-hover: #e6b800;
  --background-color: #ffffff;
  --text-color: #1f2937;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

main {
  max-width: 800px;
  text-align: center;
  padding: 3rem;
}

.logo {
  margin-bottom: 2.5rem;
}

.logo img {
  max-width: 180px;
  height: auto;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: var(--text-color);
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

code {
  background-color: rgba(255, 204, 0, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #1a1a1a;
  border: 1px solid rgba(255, 204, 0, 0.2);
}

.buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.button-filled {
  background-color: var(--primary-color);
  color: #1a1a1a;
}

.button-filled:hover {
  background-color: var(--primary-hover);
}

.button-outline {
  border: 2px solid var(--primary-color);
  color: #1a1a1a;
  background-color: transparent;
}

.button-outline:hover {
  background-color: rgba(255, 204, 0, 0.1);
}

@media (max-width: 640px) {
  main {
    padding: 2rem;
  }
  
  .buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .welcome-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this:
image

Hover state:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to do hover animation on buttons, it looks weird when outlined and solid button are next to each other.
If they were in different sections yes, but next to each other they look weird, so I discarded that idea.

Copy link
Collaborator

@infomiho infomiho May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice!

it looks weird when outlined and solid button are next to each other.

It looked nice to me, but I'm no designer expert, so let's keep it simple :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But without this on hover animation problem different buttons do make sense.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can drop the on hover transition, I think that's fine 👍 or you can just put opacity to 90% to get a bit of an effect, that's a trick I use sometimes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I would remove the: "You just started a new app." subtitle.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah, baby

Copy link
Collaborator

@infomiho infomiho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some ideas

export function MainPage() {
return (
<main className="container">
<img className="logo" src="logo.svg" alt="wasp" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not import it from src like we had before? I guess the benefit is that Vite will warn you if the file is missing.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FranjoMindek one extra note on the public dir, it's unconventional to have stuff in the public dir and import it like this. Read on this in the Vite's docs: https://vite.dev/guide/assets#the-public-directory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved it to assets folder

Copy link
Member

@Martinsos Martinsos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please have others also approve, I did a quick/weak review.

@@ -0,0 +1,11 @@
.wasp/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have .gitignore file in skeleton, why not use that one? Ah, because this is on the starters repo? Ok got it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually since this repo will have multiple repos with same gititgnore, I should move it to root, and then skeleton takes care of that for templates. Then we won't be bothered by unstaged files, while also working fine.

But I will do that in a separate PR.

@@ -0,0 +1,14 @@
app __waspAppName__ {
wasp: {
version: "^0.16.3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FranjoMindek somebody might have odler version of Wasp CLI and wants to pull in the starter -> in that case they want the older one!

@FranjoMindek FranjoMindek requested a review from infomiho May 26, 2025 13:20
@FranjoMindek FranjoMindek self-assigned this May 27, 2025
Copy link
Collaborator

@infomiho infomiho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FranjoMindek FranjoMindek merged commit d262cc1 into dev Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants