Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi6799 authored Feb 19, 2024
0 parents commit 85f4228
Show file tree
Hide file tree
Showing 25 changed files with 1,585 additions and 0 deletions.
87 changes: 87 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-24ddc0f5d75046c5622901739e7c5dd533143b0c8e959d652212380cedb1ea36.svg)](https://classroom.github.com/a/6Eq2rehk)

student name: Chakradhar Abhinay Mocherla
NUid:002825781
Faculty: prof. Amuthan Arulraj
Assignment -4
The goal of this assignment is to learn about CSS positioning, Grid layout / Flexbox, and SCSS features like variables, mixins, inheritance, loops, functions, math operations, etc.

## Files and Descriptions

### `main.scss`

- **Description**: This is the main SCSS file where other SCSS files are imported and compiled.
- **Commands/Procedure**: Use a CSS preprocessor like SASS to compile this file into a standard CSS file. Example: `sass main.scss main.css`

### `_variables.scss`

- **Description**: Defines color variables, font variables, spacing, media query breakpoints, and more.
- **Attributes/Concepts Covered**:
- Variable declarations
- **Usage**: Import this file into other SCSS files to maintain consistency in variable usage.

### `_mixins.scss`

- **Description**: Contains mixins for reusability of styles, such as box shadows, text styling, and transitions.
- **Attributes/Concepts Covered**:
- Mixins for reuse
- **Usage**: Include this file in other SCSS files and use mixins for consistent styling.

### `_header.scss`

- **Description**: Contains styles for the header section of the web page, including navigation and logo.
- **Attributes/Concepts Covered**:
- CSS positioning for layout
- Box shadow
- Flexbox for layout
- **Usage**: Used for styling the header section of the web page.

### `_navbar.scss`

- **Description**: Contains styles for the navigation bar, including the logo and links.
- **Attributes/Concepts Covered**:
- CSS positioning for layout
- Flexbox for alignment
- **Usage**: Used for styling the navigation bar.

### `_hotel.scss`

- **Description**: Styles for the hotel section, including images, ratings, and reviews.
- **Attributes/Concepts Covered**:
- Nested styling
- Flexbox for layout
- **Usage**: Used for styling the hotel section.

### `_reviews.scss`

- **Description**: Contains styles for reviews, including review items and text.
- **Attributes/Concepts Covered**:
- CSS positioning for layout
- Flexbox for alignment
- Box shadow for styling
- **Usage**: Used for styling the reviews section.

### `_footer.scss`

- **Description**: Styles for the footer section, including logos, social media links, and lists.
- **Attributes/Concepts Covered**:
- Flexbox for alignment
- Box shadow for styling
- **Usage**: Used for styling the footer section.

### `_colors.scss`

- **Description**: Defines color variables used in other SCSS files.
- **Attributes/Concepts Covered**:
- Variable declarations
- **Usage**: Import this file to ensure consistent color usage throughout styles.

## Compilation and Usage

1. Install SASS: If not already installed, use `npm install -g sass` to install SASS.

2. Compilation: Compile the main `.scss` file into a CSS file. Example: `sass main.scss main.css`.

3. Importing Files: Import the necessary `.scss` files into `main.scss` to use their styles.

4. Usage: Apply the compiled `main.css` to your HTML file to style your web page.
1 change: 1 addition & 0 deletions colors.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions colors.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$color_1: grey;
$color_2: #db9797;
$color_3: #fff;
$color_4: #f00;
$color_5: #888;
$color_6: #555;
$color_7: #f8f8ff;
$background-color_1: #0074cc;
$background-color_2: #aecae3;
$background-color_3: #333;
$background-color_4: #008080;
$background-color_5: #006666;
45 changes: 45 additions & 0 deletions footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

// _footer.scss

footer {
display: flex;
justify-content: space-around;
background-color: $background-color_3;
color: $color_3;
padding: 20px 0;
text-align: center;
}

.footer-logo {
width: 80px;
height: 80px;
margin-top: 40px;
}

.social-media {
margin-top: 20px;

a {
display: inline-block;
margin: 0 10px;
font-size: 24px;
color: $color_3;
text-decoration: none;
}
}

.footer-list {
list-style: none;
padding: 0;
margin: 20px;

li {
margin-bottom: 5px;
}
}

.link-color {
color: $color_7;
}


4 changes: 4 additions & 0 deletions header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
header {
box-shadow: rgba(50, 50, 93, 0.2509803922) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
height: 70px;
}/*# sourceMappingURL=header.css.map */
49 changes: 49 additions & 0 deletions header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@


body {
margin: 0px;
}

.container {
margin-inline: 50px;
}

hr {
margin: 50px;
color: $color_1;
}

header {
box-shadow: #32325d40 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
height: 70px;
}

nav.navbar {
margin-top: 20px;
}

.navbar-logo {
display: flex;
align-items: center;
justify-content: space-between;

div {
display: flex;
align-items: center;

img {
margin-right: 4px;
}

.logo {
width: 120px;
}
}
}

.hotellocation {
span {
color: $color_2;
}
}

145 changes: 145 additions & 0 deletions hotel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
// _hotel.scss

.hotellocation {
span {
color: $color_2;
}

.hotelimage {
> div {
& :nth-child(1) {
> img {
width: 100%;
height: 100%;
}
}
& :nth-child(2) {
display: flex;
flex-wrap: wrap;
> img {
width: 50%;
height: 50%;
}
}
}
}
}

.hotelimage {
> div {
width: 50%;
}
}

.hotelrating {
display: flex;
align-items: center;
justify-content: space-between;

div {
display: flex;
align-items: center;
}
}

.rate {
font-size: 30px;
}

.hotelrating2 {
display: flex;
margin-bottom: 10px;
}

.hotelrating4 {
span {
border-bottom: 1px solid black;
}

strong {
padding-right: 4px;
}
}

.review1 {
display: flex;
margin-bottom: 50px;
}

.review {
display: flex;
flex-direction: column;
width: 100px;
height: 100px;
border-radius: 10px;
background: $background-color_2;
margin-top: 20px;

.span1 {
font-size: 38px;
margin-bottom: 10px;
margin-left: 10px;
}

img {
width: 100px;
}
}

.span2 {
margin-left: 10px;
font-weight: 600;
}

.span4 {
margin-left: 10px;
}

.reviewgap {
margin-left: 10px;
}

.hotelimage2 {
display: flex;
align-items: center;
justify-content: space-between;
height: 100px;
border-bottom: 1px solid black;
margin-bottom: 20px;

> div {
display: flex;
align-items: center;

& :nth-child(1) {
width: 23%;
justify-content: space-between;
}

img {
border-radius: 10px;
}

& :nth-child(2) {
width: 15%;
justify-content: space-between;
}
}

button {
background-color: $background-color_1;
color: $color_3;
border: none;
padding: 10px 20px;
cursor: pointer;
}

span {
font-weight: bold;
margin-top: 10px;
}
}




Loading

0 comments on commit 85f4228

Please sign in to comment.