Skip to content

Commit fd0ff65

Browse files
authored
Add a login and learn more actions to the welcome screen (#2258)
remove the early adopter information as that is no longer true fixes #2176 <img width="552" height="566" alt="Screenshot 2025-12-02 at 9 00 28 AM" src="https://github.com/user-attachments/assets/1b819c51-bb02-484d-8b67-58a247997fdd" />
1 parent c01ca21 commit fd0ff65

File tree

3 files changed

+47
-8
lines changed

3 files changed

+47
-8
lines changed

app/assets/stylesheets/_welcome_portal.scss

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,45 @@
114114
}
115115
}
116116
}
117+
118+
.learn-more {
119+
display: inline-flex;
120+
justify-content: center;
121+
align-items: center;
122+
gap: 4px;
123+
color: $gray-100;
124+
text-align: center;
125+
text-decoration: none;
126+
127+
/* Body S Bold */
128+
font-family: "Libre Franklin";
129+
font-size: 16px;
130+
font-style: normal;
131+
font-weight: 600;
132+
line-height: 24px; /* 150% */
133+
border: none;
134+
background: $white;
135+
136+
&::after {
137+
background-image: asset_url("open-icon.svg");
138+
background-position: center center;
139+
background-repeat: no-repeat;
140+
background-size: contain;
141+
content: "";
142+
display: inline-block;
143+
height: 12px;
144+
margin-left: 8px;
145+
position: relative;
146+
width: 12px;
147+
}
148+
}
149+
.welcome-actions {
150+
display: flex;
151+
flex-direction: row;
152+
align-items: flex-start;
153+
gap: 4px;
154+
align-self: stretch;
155+
}
117156
}
118157
.welcome-right {
119158
display: flex;

app/views/welcome/index.html.erb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
<p>TigerData is a data management service for the Princeton research community that includes a suite of software tools and scalable, tiered storage to enable the organization, description, storage, sharing, and long-term sustainability of research and administrative data. </p>
1212
<p>It enables the things you want to do (with your data), and makes it easier to do the things you have to do.</p>
1313
</div>
14-
<%= button_to "Learn More", "https://tigerdata.princeton.edu", class: "pul-button pul-button-primary", id: "learn-more-button" %>
15-
16-
<div class="welcome-warn">
17-
<p>Log in is currently limited to early adopters. <%= link_to "Contact us", "mailto:[email protected]" %> for more information.</p>
14+
<div class="welcome-actions">
15+
<% unless Flipflop.disable_login? %>
16+
<%= button_to "Login", user_cas_omniauth_authorize_path, class: "pul-button pul-button-primary", id: "login-button" %>
17+
<% end %>
18+
<%= link_to "Learn More", "https://tigerdata.princeton.edu", class: "pul-button learn-more", id: "learn-more-button", target: "_blank" %>
1819
</div>
1920
</div>
2021
</div>

spec/system/welcome_spec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515

1616
it "shows the 'Learn More' button, which goes to the TigerData service page" do
1717
visit "/"
18-
expect(page).to have_button "Learn More"
19-
primary_button = find("#learn-more-button")
20-
expect(primary_button).to have_text "Learn More"
21-
expect(find(".welcome-text > .button_to")[:action]).to eq "https://tigerdata.princeton.edu/"
18+
expect(page).to have_button "Login"
19+
expect(page).to have_link "Learn More", href: "https://tigerdata.princeton.edu"
20+
expect(find("#login-button").ancestor("form")[:action]).to include "users/auth/cas"
2221
end
2322

2423
it "forwards to login page" do

0 commit comments

Comments
 (0)