diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..86ff2225e8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ + + +pipeline { + agent any + stages { + stage('Build') { + steps { + sh 'npm install' + // sh 'npx create-react-app client_02' + } + } + stage('Test') { + steps { + sh './jenkins/scripts/test.sh' + } + } + stage('Deliver') { + steps { + sh './jenkins/scripts/deliver.sh' + input message: 'Finished using the web site? (Click "Proceed" to continue)' + sh './jenkins/scripts/kill.sh' + } + } + + } +} + diff --git a/jenkins/scripts/deliver.sh b/jenkins/scripts/deliver.sh index 21ddafd83f..8dd02e7127 100755 --- a/jenkins/scripts/deliver.sh +++ b/jenkins/scripts/deliver.sh @@ -27,3 +27,7 @@ echo 'Now...' echo 'Visit http://localhost:3000 to see your Node.js/React application in action.' echo '(This is why you specified the "args ''-p 3000:3000''" parameter when you' echo 'created your initial Pipeline as a Jenkinsfile.)' + + + cd client_02 +npm start diff --git a/src/App.css b/src/App.css index c5c6e8a68a..de562762fe 100644 --- a/src/App.css +++ b/src/App.css @@ -6,12 +6,17 @@ animation: App-logo-spin infinite 20s linear; height: 80px; } +/* GreenTwin-Logo */ +.GreenTwin-logo { + animation: GreenTwin-logo-spin infinite 20s linear; + height: 120px; +} .App-header { - background-color: #222; + background-color: #FFFFF0; height: 150px; padding: 20px; - color: white; + color: skyblue; } .App-title { @@ -26,3 +31,9 @@ from { transform: rotate(0deg); } to { transform: rotate(360deg); } } + +/* GreenTwin-Logo */ +@keyframes GreenTwin-logo-spin { + from { transform: rotate(0deg); } + to { transform: rotate(-360deg); } +} diff --git a/src/App.js b/src/App.js index 203067e4d7..85c3f63238 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,6 @@ import React, { Component } from 'react'; import logo from './logo.svg'; +import gtw_logo from './gtw_logo.svg'; import './App.css'; class App extends Component { @@ -8,7 +9,8 @@ class App extends Component {
logo -

Welcome to React

+ GreenTwin-logo +

Welcome to my own React (7. Nov. 2024)

To get started, edit src/App.js and save to reload. diff --git a/src/gtw_logo.svg b/src/gtw_logo.svg new file mode 100644 index 0000000000..5350c643ed --- /dev/null +++ b/src/gtw_logo.svg @@ -0,0 +1,482 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +