Skip to content

Commit

Permalink
fix linter check
Browse files Browse the repository at this point in the history
Signed-off-by: Gilbert Kwan <[email protected]>
  • Loading branch information
gkwan-ibm committed Oct 7, 2024
1 parent b49a5c0 commit a972eb7
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 73 deletions.
2 changes: 1 addition & 1 deletion finish/frontendUI/src/main/webapp/content/eventForm.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<body jsf:id="body">
<ui:composition>
<div class="forms">
<div class="forms_title" style="line-height: 0;">
<div class="forms-title" style="line-height: 0;">
<h2>Create An Event</h2>
</div>
<br />
Expand Down
8 changes: 4 additions & 4 deletions finish/frontendUI/src/main/webapp/content/mainPage.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<h:outputText class="list tab"
value="&#8226; &#8201; Create a new event" />
<br />
<div id="listOfevents">
<div class="forms_title" style="line-height: 0;">
<div id="list-of-events">
<div class="forms-title" style="line-height: 0;">
<h2>Current Events</h2>
</div>
<br />
Expand Down Expand Up @@ -56,15 +56,15 @@
</h:column>
<h:column>
<f:facet name="header"></f:facet>
<h:commandLink class="eventsLink" value="Update"
<h:commandLink class="events-link" value="Update"
action="#{eventBean.editEvent()}">
<f:actionListener binding="#{eventBean.setSelectedId(event.getInt('id'))}" />
<f:ajax execute="mainform" render=":content header" />
</h:commandLink>
</h:column>
<h:column>
<f:facet name="header"></f:facet>
<h:commandLink class="eventsLink" value="Delete"
<h:commandLink class="events-link" value="Delete"
action="#{eventBean.submitDeletetoService()}">
<f:actionListener binding="#{eventBean.setSelectedId(event.getInt('id'))}" />
<f:ajax execute="mainform" render=":content header" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<body jsf:id="body">
<ui:composition>
<div class="forms">
<div class="forms_title" style="line-height: 0;">
<div class="forms-title" style="line-height: 0;">
<h2>Update An Event</h2>
</div>
<br />
Expand Down
61 changes: 30 additions & 31 deletions finish/frontendUI/src/main/webapp/stylesheet.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
body {
padding: 0;
margin: 0;
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
}

#header-container {
Expand All @@ -11,7 +11,7 @@ body {
}

#header {
background: #1D1F3C;
background: #1d1f3c;
height: 100%;
}

Expand All @@ -36,24 +36,24 @@ body {
min-height: 40px;
width: 90%;
background-color: #f7f7f7;
border: solid #1D1F3C;
border: solid #1d1f3c;
border: 2%;
font-size: 1.1vw;
margin-left: 5%;
margin-top: 8%;
padding: 0;
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
}

.button:hover {
background-color: #1D1F3C;
background-color: #1d1f3c;
color: white;
cursor: pointer;
border: none;
}

.button:focus {
background-color: #1D1F3C;
background-color: #1d1f3c;
color: white;
outline: 0;
border: none;
Expand Down Expand Up @@ -81,55 +81,54 @@ body {
}

.forms {
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
width: 50%;
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
text-align: center;
}

.forms input[type=text], input[type=email], input[type=password] {
.forms input[type='text'], input[type='email'], input[type='password'] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
margin: 8px 0;
text-align: center;
font-size: 1vw;
}

.forms input[type=submit], input[type=reset] {
.forms input[type='submit'], input[type='reset'] {
width: 100%;
background-color: #1D1F3C;
background-color: #1d1f3c;
color: white;
padding: 14px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1.1vw;
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
}

.forms input[type=submit]:hover {
.forms input[type='submit']:hover {
background-color: #45498c;
}

.forms input[type=reset]:hover {
.forms input[type='reset']:hover {
background-color: #45498c;
}

.forms input[type=submit]:focus {
.forms input[type='submit']:focus {
outline: 0;
}

.forms input[type=reset]:focus {
.forms input[type='reset']:focus {
outline: 0;
}

.forms_title {
.forms-title {
border-bottom: 2px solid black;
font-size: 1vw;
}
Expand Down Expand Up @@ -159,7 +158,7 @@ label {
}

#title h1 {
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
text-align: center;
text-decoration: underline;
color: white;
Expand Down Expand Up @@ -201,41 +200,41 @@ h1.list {

.table td:nth-child(1) {
text-align: right;
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
}

.table td:nth-child(2) {
text-align: left;
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
}

#listOfevents {
font-family: 'Asap', sans-serif;
#list-of-events {
font-family: "Asap", sans-serif;
width: 70%;
border-radius: 5px;
background-color: #f2f2f2;
padding: 10px;
text-align: center;
}

.eventsLink {
.events-link {
color: #0080ff;
cursor: pointer;
min-width: 100%;
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
}

.eventsLink:focus {
.events-link:focus {
outline: 0;
}

.eventsLink:hover {
.events-link:hover {
color: black;
cursor: pointer;
}

.event-table {
font-family: 'Asap', sans-serif;
font-family: "Asap", sans-serif;
table-layout: fixed;
word-wrap: break-word;
width: 100%;
Expand All @@ -258,12 +257,12 @@ h1.list {
text-align: center;
}

.formSpacing {
.form-spacing {
margin-top: 1%;
margin-bottom: 1%;
}

.select_events {
.select-events {
border-radius: 5px;
text-align-last: center;
text-align: center;
Expand All @@ -273,6 +272,6 @@ h1.list {
margin-bottom: 1%;
}

.columnEvents {
.column-events {
font-size: 0.9vw;
}
}
2 changes: 1 addition & 1 deletion start/frontendUI/src/main/webapp/content/eventForm.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<body jsf:id="body">
<ui:composition>
<div class="forms">
<div class="forms_title" style="line-height: 0;">
<div class="forms-title" style="line-height: 0;">
<h2>Create An Event</h2>
</div>
<br />
Expand Down
8 changes: 4 additions & 4 deletions start/frontendUI/src/main/webapp/content/mainPage.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<h:outputText class="list tab"
value="&#8226; &#8201; Create a new event" />
<br />
<div id="listOfevents">
<div class="forms_title" style="line-height: 0;">
<div id="list-of-events">
<div class="forms-title" style="line-height: 0;">
<h2>Current Events</h2>
</div>
<br />
Expand Down Expand Up @@ -56,15 +56,15 @@
</h:column>
<h:column>
<f:facet name="header"></f:facet>
<h:commandLink class="eventsLink" value="Update"
<h:commandLink class="events-link" value="Update"
action="#{eventBean.editEvent()}">
<f:actionListener binding="#{eventBean.setSelectedId(event.getInt('id'))}" />
<f:ajax execute="mainform" render=":content header" />
</h:commandLink>
</h:column>
<h:column>
<f:facet name="header"></f:facet>
<h:commandLink class="eventsLink" value="Delete"
<h:commandLink class="events-link" value="Delete"
action="#{eventBean.submitDeletetoService()}">
<f:actionListener binding="#{eventBean.setSelectedId(event.getInt('id'))}" />
<f:ajax execute="mainform" render=":content header" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<body jsf:id="body">
<ui:composition>
<div class="forms">
<div class="forms_title" style="line-height: 0;">
<div class="forms-title" style="line-height: 0;">
<h2>Update An Event</h2>
</div>
<br />
Expand Down
Loading

0 comments on commit a972eb7

Please sign in to comment.