Compare commits

2 Commits

Author SHA1 Message Date
hari lee
988dba5c55 added new button 2023-10-31 12:50:53 +05:30
Harilee
9031b176da new changes 2023-10-30 14:00:03 +05:30
13 changed files with 425 additions and 158 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5502
}

View File

@@ -7,8 +7,11 @@
<h1>My First CSS Example</h1>
<p>This is a paragraph.</p>
<h1 class="center">Red and center-aligned heading</h1>
<p class="center">Red and center-aligned paragraph.</p>
<div class="center">
<h1 >Red and center-aligned heading</h1>
<p >Red and center-aligned paragraph.</p>
</div>
<p id="para1">Hello World!</p>
<p>This paragraph is not affected by the style.</p>
@@ -44,7 +47,7 @@
<!--Flex box horizontal-->
<div class="center_horizontal_flex_box">
<div class="center_vertical_flex_box">
<h1 style="color: blue;">This is a heading</h1>
<h1 style="color: blue; "">This is a heading</h1>

View File

@@ -94,5 +94,8 @@
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
<p>This would add five &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blank spaces.</p>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 B

View File

@@ -0,0 +1,91 @@
.department-section {
position: absolute;
top: 130%;
}
.department-title{
margin-left: 60px;
}
/* Style for the container of card items */
.department-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-right: 30px;
margin-left: 30px;
}
/* Style for each card */
.department-card {
width: 30%; /* 33.33% width for three cards with spacing */
margin-bottom: 20px;
padding: 5px;
}
.department-card img {
max-width: 100%;
}
.department-card h3 {
margin-left: 30px;
}
.department-card p {
margin-left: 30px;
}
.why-gg-section {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Full viewport height */
position: absolute;
top: 220%;
background-color: #EAF2FF;
margin-left: 60px;
margin-right: 60px;
margin-bottom: 100px;
}
/* Style for the card */
.card {
position: relative;
max-width: 100%;
}
/* Style for the image */
.card img {
width: 100%;
height: auto;
}
/* Style for the text on top of the image */
.card-text {
position: absolute;
top: 20px; /* Adjust the top position as needed */
left: 70%; /* Adjust the left position as needed */
color: black;
font-size: 24px;
font-weight: bold;
padding: 10px;
}
ul.custom-bullet {
list-style-image: url('img/tick_icon.png');
padding-left: 20px;
/* Add padding to adjust the distance between the bullet image and text */
}
/* Style for list items */
li {
margin: 10px 0; /* Adjust margin as needed */
}
.why-gg-list{
position:absolute;
left: 70%;
top: 80px;
}

View File

@@ -0,0 +1,141 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="middle_part.css" />
<link rel="stylesheet" href="/nav_bar/nav_bar.css" />
<link rel="stylesheet" href="/top_header/top_header.css" />
</head>
<body>
<div>
<div class="header-container">
<div>
<img class="logo" src="/nav_bar/img/logo.png" alt="logo image" />
</div>
<!--This is the top nav bar-->
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="#aboutus">About Us</a>
<a href="#doctors">Doctors</a>
<a href="#department">Department</a>
<a href="#newsandmedia">New and Media</a>
<a href="#career">Career</a>
<a href="#contactus">Contact Us</a>
</div>
<!--Ending of top nav bar-->
</div>
<!--starting of the rest of the header code-->
<div class="top-header-container">
<div class="img_container">
<img
class="doctor_img"
src="/top_header/img/doctor_img.png"
alt="doc image"
/>
</div>
<div class="title_1">
<h1>Love & Care to Humanity</h1>
<h3>Fastest-Growing Multi Speciality Hospital in South Kerala</h3>
</div>
</div>
<!--ending of the doctor image code-->
<!--starting of the book appointment tab code-->
<div class="book-appointment">
<h4>Book an Appoinment</h4>
<div class="input-container">
<input type="text" placeholder="Full name" class="rounded-input" />
<input type="text" placeholder="Phone number" class="rounded-input" />
<input type="text" placeholder="Select Date" class="rounded-input" />
</div>
<div class="input-container">
<input
type="text"
placeholder="Select Department"
class="rounded-input"
/>
<input
type="text"
placeholder="Select Doctor"
class="rounded-input"
/>
<button class="book-appointment-button">Book Appointment</button>
</div>
</div>
<!--ending of book apointment section-->
<!--starting of middle section with department list-->
<div class="department-section">
<div class="department-title">
<h1>Our Departments</h1>
</div>
<div class="department-container">
<div class="department-card">
<!-- Card 1 Content -->
<img
class="doctor_img"
src="img/department_1.png"
alt="doc image"
/>
<h3>Hepatobiliary Surgery</h3>
<p>
The Hepatobiliary and Transplantology Unit of GG Hospital offers a
comprehensive...
</p>
</div>
<div class="department-card">
<!-- Card 2 Content -->
<img
class="doctor_img"
src="img/department_1.png"
alt="doc image"
/>
<h3>Medical Oncology</h3>
<p>
GG Hospital is the best affordable hospital in South Kerala which
is NABH accredited hospital...
</p>
</div>
<div class="department-card">
<!-- Card 3 Content -->
<img
class="doctor_img"
src="img/department_1.png"
alt="doc image"
/>
<h3>ENT, Head & Neck Skull Surgery</h3>
<p>
The ENT Department in GG Hospital provides a wide range of
treatment modalities including...
</p>
</div>
</div>
</div>
<!--ending of the department list-->
<div class="why-gg-section">
<div class="card">
<img src="img/doctors_img.png" alt="Image" />
<div class="card-text">Why GG Hospital?</div>
<div class="why-gg-list">
<ul class="custom-bullet">
<li>Multi-super specialty hospital in South Kerala.</li>
<li>Achieved the unique reputation</li>
<li>Multi-super specialty hospital in South Kerala.</li>
<li>Multi-super specialty hospital in South Kerala.</li>
<li>Achieved the unique reputation</li>
<li>Multi-super specialty hospital in South Kerala.</li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -5,7 +5,7 @@ body {
.topnav {
overflow: hidden;
background-color: #FFFF;
background-color: #ffff;
}
.topnav a {
@@ -19,6 +19,7 @@ body {
.topnav a:hover {
color: red;
background-color: aliceblue;
}
.topnav a.active {

View File

@@ -11,8 +11,8 @@
</div>
<!--This is the top nav bar-->
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="#aboutus">About Us</a>
<a href="#home">Home</a>
<a class="active" href="#aboutus">About Us</a>
<a href="#doctors">Doctors</a>
<a href="#department">Department</a>
<a href="#newsandmedia">New and Media</a>

40
split_screen.html Normal file
View File

@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<style>
/* Create a two-column layout */
.container {
display: flex;
width: 100%;
}
/* Style for the left column (half) */
.left-column {
flex: 1;
padding: 20px;
background-color: #f0f0f0;
}
/* Style for the right column (half) */
.right-column {
flex: 2;
padding: 20px;
background-color: #e0e0e0;
}
</style>
</head>
<body>
<div class="container">
<div class="left-column">
<!-- Items for the left half of the screen -->
<h2>Left Half</h2>
<p>This is the left half of the screen.</p>
</div>
<div class="right-column">
<!-- Items for the right half of the screen -->
<h2>Right Half</h2>
<p>This is the right half of the screen.</p>
</div>
</div>
</body>
</html>

View File

@@ -1,50 +1,11 @@
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
body::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
.topnav {
margin-top: 30px;
overflow: hidden;
background-color: #FFFF;
}
.topnav a {
float: left;
color: black;
text-align: end;
padding: 14px 16px;
text-decoration: none;
font-size: 15px;
}
.topnav a:hover {
color: red;
}
.topnav a.active {
color: red;
}
.logo {
width: 200px;
height: 50px;
padding-right: 480px;
padding-left: 30px;
}
.header-container{
display: flex;
align-items: center;
}
.doctor_img {
width: 95vw;
margin-left: 30px;
margin-right: 30px;
margin-top: 50px;
}
.title_1 {
@@ -59,20 +20,17 @@ body {
color: rgb(181, 181, 181);
font-size: 10;
font-weight: lighter;
}
.book-appointment {
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
width: 75%;
position: absolute;
top: 110%;
left: 50%;
transform: translate(-50%, -50%);
top: 105%;
left: 12%;
margin-bottom: 100px;
}
h4 {
@@ -80,11 +38,10 @@ body {
padding-top: 10px;
}
.rounded-input {
border: 1px solid #ccc;
border-radius: 10px; /* Adjust this value to change the radius */
padding: 5px;
padding: 10px;
width: 30%;
height: 35px; /* Set the width of each input field */
margin: 1%; /* Add some margin for spacing */
@@ -97,17 +54,35 @@ body {
margin-bottom: 10px; /* Add some margin for spacing */
}
/* Style for the "Book Appointment" button */
.book-appointment-button {
background-color: #17C1A3;
background-color: #17c1a3;
border-color: white;
color: white;
border-radius: 10px;
padding: 5px;
width: 30%;
height: 50px;
padding: 15px;
width: 33%;
height: 55px;
margin: 1%;
cursor: pointer;
outline: none;
border: none;
}
/* Style for the "Book Appointment" button */
.small {
background-color: #17c1a3;
color: white;
border-radius: 10px;
padding: 15px;
width: 15%;
height: 55px;
margin: 1%;
cursor: pointer;
outline: none;
border: none;
}
.book-appointment-div {
margin-left: 80px;
}

View File

@@ -3,6 +3,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="top_header.css" />
<link rel="stylesheet" href="/nav_bar/nav_bar.css" />
</head>
<body>
<div>
@@ -26,36 +27,45 @@
<!--starting of the rest of the header code-->
<div class="top-header-container">
<div class="img_container">
<img class="doctor_img" src="img/doctor_img.png" alt="doc image" />
</div>
<div class="title_1">
<h1>Love & Care to Humanity</h1>
<h3>Fastest-Growing Multi Speciality Hospital in South Kerala</h1>
<h3>Fastest-Growing Multi Speciality Hospital in South Kerala</h3>
</div>
<div class="book-appointment-div">
<button class="book-appointment-button small">
Book Appointment
</button>
</div>
</div>
<div class="book-appointment">
<h4>Book an Appoinment</h4>
<div class="input-container">
<input type="text" placeholder="Full name" class="rounded-input">
<input type="text" placeholder="Phone number" class="rounded-input">
<input type="text" placeholder="Select Date" class="rounded-input">
<input type="text" placeholder="Full name" class="rounded-input" />
<input type="text" placeholder="Phone number" class="rounded-input" />
<input type="text" placeholder="Select Date" class="rounded-input" />
</div>
<div class="input-container">
<input type="text" placeholder="Select Department" class="rounded-input">
<input type="text" placeholder="Select Doctor" class="rounded-input">
<input
type="text"
placeholder="Select Department"
class="rounded-input"
/>
<input
type="text"
placeholder="Select Doctor"
class="rounded-input"
/>
<button class="book-appointment-button">Book Appointment</button>
</div>
</div>
</div>
</body>
</html>