Skip to content

Commit ac818bf

Browse files
committed
Improving projects page
1 parent 3d9c48f commit ac818bf

File tree

4 files changed

+76
-115
lines changed

4 files changed

+76
-115
lines changed

site_source_files/themes/selenium/layouts/projects/section.html

Lines changed: 47 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,41 @@ <h1>Selenium Projects</h1>
1919
<img class="product-logo" src="{{"images/selenium_logo_square_red.png" | relURL}}"/>
2020
</div>
2121
<h2>Selenium WebDriver</h2>
22-
<p>Selenium WebDriver can drive a browser natively either locally or on remote machines.</p>
22+
<p>Selenium WebDriver drives a browser natively, as a real user would, either locally or on remote machines.</p>
2323
</div>
24-
<div class="toggle-section">
25-
<b id="webdriverShow" class="toggle-button" onClick="showWebDriver()">+ Show more</b>
26-
</div>
27-
<div id="webdriverContent" class="content hide">
28-
<p>
29-
WebDriver drives a browser natively, as a user would, either locally
30-
or on a remote machine using the Selenium server,
31-
marks a leap forward in terms of browser automation.
24+
<div id="webdriverContent" class="content">
25+
<h3>Simple and concise</h3>
26+
<p>WebDriver is simple, it is designed as a concise and compact programming interface.</p>
27+
28+
29+
<h3>Works in all major browsers</h3>
30+
<p>Through a simple setup, WebDriver can be used with all major browsers. Automate real user interactions in
31+
Firefox, Safari, Edge, Chrome, Internet Explorer and more!
3232
</p>
3333
<p>
3434
Selenium WebDriver refers to both the language bindings
3535
and the implementations of the individual browser controlling code.
3636
This is commonly referred to as just <i>WebDriver</i>.
3737
</p>
38+
39+
<h3>WebDriver is a <a href="https://www.w3.org/TR/webdriver1/">W3C Recommendation</a>!</h3>
40+
<p>
41+
The W3C is an international community that works to develop Web standards. In
42+
June 2018, WebDriver became a W3C recommendation.
43+
</p>
3844
<p>
39-
Selenium WebDriver is a <a href="https://www.w3.org/TR/webdriver1/">W3C Recommendation</a>
45+
What does this mean? Major browser vendors (Mozilla, Google, Apple, Microsoft)
46+
support WebDriver and work constantly to improve the browsers<br>
47+
and browser controlling code, which leads to a more uniform behaviour across the different
48+
browsers, making your automation scripts more stable.
4049
</p>
4150

42-
<ul>
43-
<li>WebDriver is designed as a simple and more concise programming interface.</li>
44-
<li>WebDriver is a compact object-oriented API</li>
45-
<li>It drives the browser effectively.</li>
46-
</ul>
47-
48-
<p>For More information on Selenium WebDriver, please see the documentation and Remote Control to WebDriver Migration Notes.</p>
51+
<a href="https://selenium.dev/documentation/en/webdriver/">
52+
<div class="learn-more webdriver">
53+
<span>Learn More</span>
54+
</div>
55+
</a>
4956

50-
<div class="toggle-section">
51-
<b class="toggle-button" onClick="hideWebDriver()">- Show less</b>
52-
</div>
5357
</div>
5458
</div>
5559

@@ -61,10 +65,7 @@ <h2>Selenium WebDriver</h2>
6165
<h2>Selenium IDE</h2>
6266
<p>Selenium IDE is a Chrome and Firefox extension that makes it easy to record and playback tests in the browser.</p>
6367
</div>
64-
<div class="toggle-section">
65-
<b id="ideShow" class="toggle-button" onClick="showIDE()">+ Show more</b>
66-
</div>
67-
<div id="ideContent" class="content hide">
68+
<div id="ideContent" class="content">
6869
<h3>Web Ready</h3>
6970
<p>Simple, turn-key solution to quickly author reliable end-to-end tests. Works out of the box for any web app.</p>
7071

@@ -74,10 +75,11 @@ <h3>Easy Debugging</h3>
7475
<h3>Cross-browser Execution</h3>
7576
<p>Run your tests on any browser/OS combination in parallel using the Command-line Runner for Selenium IDE.</p>
7677

77-
78-
<div class="toggle-section">
79-
<b class="toggle-button" onClick="hideIDE()">- Show less</b>
80-
</div>
78+
<a href="https://selenium.dev/selenium-ide/">
79+
<div class="learn-more ide">
80+
<span>Learn More</span>
81+
</div>
82+
</a>
8183
</div>
8284
</div>
8385

@@ -87,17 +89,25 @@ <h3>Cross-browser Execution</h3>
8789
<img class="product-logo" src="{{"images/selenium_grid_logo_square.png" | relURL}}"/>
8890
</div>
8991
<h2>Selenium Grid</h2>
90-
<p>Selenium Grid takes Selenium Remote Control to another level by running tests on may servers at the same time,</br>cutting down on the time it takes to test multiple browsers or operating systems.</p>
91-
</div>
92-
<div class="toggle-section">
93-
<b id="gridShow" class="toggle-button" onClick="showGrid()">+ Show more</b>
92+
<p>Selenium Grid takes WebDriver to another level by running tests on many machines at the same time,
93+
</br>cutting down on the time it takes to test on multiple browsers and operating systems.</p>
9494
</div>
95-
<div id="gridContent" class="content hide">
96-
<p>With the release of Selenium 2.0, the Selenium Server now has built-in Grid functionality. To see the how to configure this, please see the wiki.</p>
95+
<div id="gridContent" class="content">
96+
<h3>Multiple browsers, versions, and operating systems</h3>
97+
<p>Grid helps you to run your automation scripts across multiple combinations of browsers, versions and operating systems.</p>
98+
99+
<h3>Reduce execution time</h3>
100+
<p>
101+
Speed up execution and cut down overall run time of your automation scripts.
102+
You still need scripts that can run in parallel though!
103+
</p>
104+
105+
<a href="https://selenium.dev/documentation/en/grid/">
106+
<div class="learn-more grid">
107+
<span>Learn More</span>
108+
</div>
109+
</a>
97110

98-
<div class="toggle-section">
99-
<b class="toggle-button" onClick="hideGrid()">- Show less</b>
100-
</div>
101111
</div>
102112
</div>
103113

@@ -110,65 +120,3 @@ <h2>Selenium Grid</h2>
110120
</body>
111121

112122
{{ partial "footer.html" . }}
113-
114-
<script>
115-
function showWebDriver() {
116-
const webdriverContent = document.getElementById("webdriverContent");
117-
const webdriverButton = document.getElementById("webdriverShow");
118-
119-
webdriverContent.className = 'content'
120-
webdriverButton.className = 'toggle-button hide'
121-
}
122-
function hideWebDriver() {
123-
const webdriverContent = document.getElementById("webdriverContent");
124-
const webdriverButton = document.getElementById("webdriverShow");
125-
126-
webdriverContent.className = 'content hide'
127-
webdriverButton.className = 'toggle-button'
128-
}
129-
130-
function showGrid() {
131-
const webdriverContent = document.getElementById("gridContent");
132-
const webdriverButton = document.getElementById("gridShow");
133-
134-
webdriverContent.className = 'content'
135-
webdriverButton.className = 'toggle-button hide'
136-
}
137-
function hideGrid() {
138-
const webdriverContent = document.getElementById("gridContent");
139-
const webdriverButton = document.getElementById("gridShow");
140-
141-
webdriverContent.className = 'content hide'
142-
webdriverButton.className = 'toggle-button'
143-
}
144-
145-
function showIDE() {
146-
const webdriverContent = document.getElementById("ideContent");
147-
const webdriverButton = document.getElementById("ideShow");
148-
149-
webdriverContent.className = 'content'
150-
webdriverButton.className = 'toggle-button hide'
151-
}
152-
function hideIDE() {
153-
const webdriverContent = document.getElementById("ideContent");
154-
const webdriverButton = document.getElementById("ideShow");
155-
156-
webdriverContent.className = 'content hide'
157-
webdriverButton.className = 'toggle-button'
158-
}
159-
160-
function showRemoteControl() {
161-
const webdriverContent = document.getElementById("remoteControlContent");
162-
const webdriverButton = document.getElementById("remoteControlShow");
163-
164-
webdriverContent.className = 'content'
165-
webdriverButton.className = 'toggle-button hide'
166-
}
167-
function hideRemoteControl() {
168-
const webdriverContent = document.getElementById("remoteControlContent");
169-
const webdriverButton = document.getElementById("remoteControlShow");
170-
171-
webdriverContent.className = 'content hide'
172-
webdriverButton.className = 'toggle-button'
173-
}
174-
</script>

site_source_files/themes/selenium/static/css/about.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88

99
.metadata p {
10-
border-bottom: 1px solid rgb(148, 156, 161, 0.45);
10+
border-bottom: 1px solid rgb(148, 156, 161);
1111
padding-bottom: 50px;
1212
}
1313

site_source_files/themes/selenium/static/css/index.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ the text under the Hero Image*/
9797
is the line that separates the content*/
9898

9999
.getting-started-topic:not(:last-child) {
100-
border-right: 1px solid rgb(148, 156, 161, 0.45);
100+
border-right: 1px solid rgb(148, 156, 161);
101101
padding-right: 70px;
102102
}
103103

@@ -126,7 +126,7 @@ is the line that separates the content*/
126126
.news-metadata {
127127
flex: 1;
128128
border-top: 1px;
129-
border-top-color: rgb(148, 156, 161, 0.45);
129+
border-top-color: rgb(148, 156, 161);
130130
border-top-style: solid;
131131
margin: 10px 30px 30px 30px;
132132
}
@@ -142,7 +142,7 @@ is the line that separates the content*/
142142
.news-description {
143143
flex: 2;
144144
border-top: 1px;
145-
border-top-color: rgb(148, 156, 161, 0.45);
145+
border-top-color: rgb(148, 156, 161);
146146
border-top-style: solid;
147147
margin: 10px 30px 30px 30px;
148148
padding: 10px;
@@ -293,7 +293,7 @@ is the line that separates the content*/
293293
.getting-started-topic:not(:last-child) {
294294
border-right: none;
295295
padding-right: 0;
296-
border-bottom: 1px solid rgb(148, 156, 161, 0.45);
296+
border-bottom: 1px solid rgb(148, 156, 161);
297297
margin-bottom: 50px;
298298
}
299299

site_source_files/themes/selenium/static/css/projects.css

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@
2828
border-left-width: 5px;
2929
}
3030

31+
.product-container a {
32+
text-decoration: none;
33+
}
34+
35+
.learn-more {
36+
display: flex;
37+
font-weight: bold;
38+
width: 85px;
39+
border-bottom: 2px solid;
40+
transition: 0.3s;
41+
}
42+
3143
.product-container.webdriver {
3244
border-left-color: #cf0a2c;
3345
}
@@ -40,6 +52,10 @@
4052
color: #cf0a2c;
4153
}
4254

55+
.learn-more.webdriver {
56+
color: #cf0a2c;
57+
}
58+
4359
.product-container.grid {
4460
border-left-color: #645d9c;
4561
}
@@ -52,6 +68,11 @@
5268
color: #645d9c;
5369
}
5470

71+
.learn-more.grid {
72+
color: #645d9c;
73+
}
74+
75+
5576
.product-container.ide {
5677
border-left-color: #0033a0;
5778
}
@@ -64,16 +85,8 @@
6485
color: #0033a0;
6586
}
6687

67-
.product-container.remoteControl {
68-
border-left-color: #ef4b0a;
69-
}
70-
71-
.product-container.remoteControl h2 {
72-
color: #ef4b0a;
73-
}
74-
75-
.product-container.remoteControl b {
76-
color: #ef4b0a;
88+
.learn-more.ide {
89+
color: #0033a0;
7790
}
7891

7992
.product-logo-container {
@@ -88,7 +101,7 @@
88101
}
89102

90103
.intro {
91-
border-bottom: 1px solid rgb(148, 156, 161, 0.45);
104+
border-bottom: 1px solid rgb(148, 156, 161);
92105
}
93106

94107
.toggle-section {

0 commit comments

Comments
 (0)