Skip to content
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

restyled news page #961

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 81 additions & 7 deletions Css-Files/news.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ body{
#newsBox {
display: flex;
justify-content: center;
align-items: center;
align-items: center;
gap: 2rem;
flex-wrap: wrap;

Expand Down Expand Up @@ -271,7 +271,7 @@ footer {
.news-section h2 {
text-align: center;
margin-bottom: 30px;
color: #333;
color: #ffffff;
}

.news-container {
Expand All @@ -283,7 +283,7 @@ footer {
.news-item {
width: calc(33.33% - 20px);
margin-bottom: 30px;
background-color: #fff;
background-color: #022a2d ;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
Expand All @@ -292,6 +292,7 @@ footer {

.news-item:hover {
transform: translateY(-5px);
background-color: #55a5ea;
}

.news-item img {
Expand All @@ -304,20 +305,20 @@ footer {
padding: 15px;
margin: 0;
font-size: 18px;
color: #333;
color: #ffffff;
}

.news-item p {
padding: 0 15px 15px;
margin: 0;
font-size: 14px;
color: #666;
color: #ffffff;
}

.read-more {
display: inline-block;
margin: 0 15px 15px;
padding: 8px 15px;
align-items: center;
align-self: center;
background-color: #55a5ea;
color: #fff;
text-decoration: none;
Expand All @@ -330,6 +331,65 @@ footer {
color: white;
border: 1px solid greenyellow;
}
.button-icon {
display: flex;
width: 400px;
height: 100px;
cursor: pointer;
margin-left: 50px;
}

.icon {
background-color: #fff;
padding: 10px 10px 5px 10px;
}

.icon svg {
width: 25px;
height: 25px;
}

.cube {
transition: all 0.4s;
transform-style: preserve-3d;
width: 200px;
height: 20px;
}

.button-icon:hover {
border-color: #264923;
}

.button-icon:hover .cube {
transform: rotateX(90deg);
}

.side {
position: absolute;
height: 47px;
width: 200px;
display: flex;
font-size: 0.8em;
justify-content: center;
align-items: center;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: bold;
}

.top {
background: hwb(181 16% 46%);
color: #fff;
transform: rotateX(-90deg) translate3d(0, 13.5px, 2em);
width: 170px;
}

.front {
background: #55a5ea;
color: #fff;
transform: translate3d(0, 0, 1em);
width: 170px;
}

@media (max-width: 768px) {
.news-item {
Expand Down Expand Up @@ -532,6 +592,19 @@ form.php-email-form{
visibility: hidden;
}

.img img {
width: 90px;
height: auto;

}



.slideshow-container {
position: relative;
max-width: 100%;


.btn1 {
position: relative;
background-color: #3fbcc0a6;
Expand Down Expand Up @@ -593,4 +666,5 @@ form.php-email-form{

#s:hover::before {
width: 100%;

}
Binary file added assets/img/1m.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/AI.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/AI2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/consul.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/doc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/doctor.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/mentalc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/partner.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/personalised.webp
Binary file not shown.
Binary file added assets/img/researcher.webp
Binary file not shown.
Binary file added assets/img/tele.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/telemedicine.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions js/news.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
let slideIndex = 0;
showSlides();

function showSlides() {
let slides = document.getElementsByClassName("mySlides");


for (let i = 0; i < slides.length; i++) {
slides[i].style.opacity = 0;
}


slideIndex++;
if (slideIndex > slides.length) {
slideIndex = 1;
}

slides[slideIndex - 1].style.opacity = 1;


setTimeout(showSlides, 4000);
}
202 changes: 133 additions & 69 deletions news.html

Large diffs are not rendered by default.